﻿* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: url("../assets/curseur.svg") 16 16, auto;
}

a,
button,
input,
textarea,
select,
[role="button"] {
    cursor: url("../assets/curseur.svg") 16 16, pointer !important;
}

@font-face {
    font-family: "Casko Luxury";
    src:
        url("../fonts/CaskoLuxury-Regular.woff") format("woff"),
        url("../fonts/CaskoLuxury-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #090512;
    --bg-deep: #06030d;
    --panel: rgba(27, 16, 48, 0.78);
    --panel-strong: rgba(20, 11, 38, 0.92);
    --line: rgba(216, 180, 254, 0.22);
    --text: #f6f0ff;
    --muted: #b9a9d8;
    --accent: #a855f7;
    --accent-light: #d8b4fe;
    --accent-hot: #f0abfc;
}

/*police par dÃ©fault du document*/
body {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 1em;
    color: var(--text);
    background:
        radial-gradient(ellipse at 18% 12%, rgba(216, 180, 254, 0.1), transparent 32%),
        radial-gradient(ellipse at 82% 18%, rgba(168, 85, 247, 0.1), transparent 30%),
        radial-gradient(ellipse at 24% 78%, rgba(240, 171, 252, 0.05), transparent 34%),
        radial-gradient(ellipse at 86% 82%, rgba(88, 28, 135, 0.14), transparent 36%),
        conic-gradient(from 138deg at 48% 44%, rgba(246, 240, 255, 0.025), transparent 15%, rgba(168, 85, 247, 0.045), transparent 34%, rgba(216, 180, 254, 0.025), transparent 62%, rgba(88, 28, 135, 0.08), transparent 82%),
        linear-gradient(135deg, #010004 0%, #05020b 34%, #0d0419 68%, #020105 100%);
    background-attachment: fixed;
    background-size: 130% 130%, 145% 145%, 150% 150%, 140% 140%, 180% 180%, 160% 160%;
    animation: ambientGradient 22s ease-in-out infinite alternate;
}

.cursor-halo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
    background:
        radial-gradient(circle, rgba(216, 180, 254, 0.26) 0%, rgba(168, 85, 247, 0.16) 28%, rgba(88, 28, 135, 0.06) 52%, transparent 72%);
    filter: blur(10px);
    transition: opacity 0.45s ease;
}

.cursor-halo.is-visible {
    opacity: 1;
}

@keyframes ambientGradient {
    0% {
        background-position: 0% 0%, 100% 10%, 12% 100%, 100% 90%, 50% 50%, 0% 0%;
    }

    50% {
        background-position: 18% 12%, 86% 0%, 0% 82%, 92% 100%, 44% 58%, 48% 34%;
    }

    100% {
        background-position: 30% 4%, 72% 18%, 18% 74%, 76% 88%, 56% 44%, 100% 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body {
        animation: none;
    }

    .cursor-halo {
        display: none;
    }

    .grille_images:target {
        animation: none;
    }

    .hero h1,
    .hero h1 .title-role,
    .hero-name {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/*enlever le soulignÃ© pour tout les liens*/
a,
a:hover,
a:visited,
a:link,
a:focus,
a:active {
    text-decoration: none;
    color: var(--muted);
}


/*grille de base du site commence ici*/
.wrapper {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    width: 100%;
    min-height: 100vh;

}


header {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 2;
    grid-column-end: 9;
    position: sticky;
    top: 16px;
    z-index: 100;
    width: fit-content;
    max-width: calc(100% - 28px);
    margin: 16px auto 0;
    padding: 0;

}

main {
    grid-row-start: 2;
    grid-row-end: 9;
    grid-column-start: 2;
    grid-column-end: 9;
    padding: 56px 40px 64px;

}

footer {
    grid-row-start: 9;
    grid-row-end: 10;
    grid-column-start: 1;
    grid-column-end: 10;
    min-height: 200px;
}

/*grille de base du site fini ici*/

.close-menu {
    display: none;
    /* Initialement cachÃ© */
    position: fixed;
    /* Position fixe par rapport Ã  la fenÃªtre du navigateur */
    top: 20px;
    /* Espace du haut */
    right: 20px;
    /* Espace du cÃ´tÃ© droit */
    font-size: 2em;
    /* Taille similaire au menu hamburger */
    font-weight: bold;
    /* Gras */
    color: var(--text);
    /* Couleur grise */
    background: none;
    /* Pas de fond */
    border: none;
    /* Pas de bordure */
    cursor: pointer;
    /* Style du curseur en pointeur */
    z-index: 1010;
    /* S'assure qu'il est au-dessus du menu dÃ©ployÃ© */
}

.actif {
    font-weight: 500;
    color: var(--text) !important;
}

.entete {
    display: flex;
    justify-content: space-between;
    /* Trois colonnes: logo, espace, Ã©lÃ©ments de menu */
    align-items: center;
    /* alignÃ© au bas des cellules */
    gap: 18px;
    width: auto;
    margin: 0 auto;
    padding: 6px 56px;
    background: rgba(68, 42, 104, 0.42);
    border: 1px solid rgba(216, 180, 254, 0.3);
    border-radius: 999px;
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.entete img {
    display: block;
    width: 68px;
    object-fit: contain;
    filter: invert(1) drop-shadow(0 0 18px rgba(216, 180, 254, 0.26));
}

.item1,
.item1 a {
    display: flex;
    align-items: center;
}

.menu1 {
    display: flex;
    justify-content: center;
    /* Alignement Ã  droite des Ã©lÃ©ments de menu */
    gap: 12px;
    /* Espace entre les Ã©lÃ©ments de menu, ajustez selon vos besoins */
    font-size: 0.9em;
    align-items: center;
    margin-left: auto;
    margin-right: 24px;
}

.menu1 a {
    text-decoration: none;
    /* EnlÃ¨ve le soulignement */
    color: var(--text);
    /* DÃ©finit la couleur des liens */
    text-align: center;
    padding: 10px 28px;
    border-radius: 999px;
    /*background: rgba(9, 5, 18, 0.72);*/
    border: 1px solid rgba(216, 180, 254, 0.22);
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    /* Assure que le texte est centrÃ© si la largeur est spÃ©cifiÃ©e */
}


a {
    text-decoration: none;
    color: var(--muted);
}

a:hover {
    color: var(--text);
    /* couleur au survol */
}

h1 {
    font-family: "Casko Luxury", "DM Sans", serif;
    font-weight: 400;
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.03;
    letter-spacing: 0;
    margin-bottom: 78px;
    color: var(--text);
    text-shadow: 0 0 32px rgba(216, 180, 254, 0.24);
}

h1 .title-role {
    display: block;
    margin-top: 16px;
    font-family: "DM Sans", sans-serif !important;
    font-size: clamp(1.05rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.hero-name {
    display: inline-block;
    color: var(--text);
    transform-origin: center bottom;
    animation: heroNameBounce 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.hero-name:hover {
    color: var(--accent-light);
    text-shadow: 0 0 24px rgba(216, 180, 254, 0.46);
    animation: heroNameHover 0.55s ease both;
}

@keyframes heroNameBounce {
    0% {
        opacity: 0;
        transform: translateY(18px) rotate(-4deg) scale(0.98);
        filter: blur(6px);
    }

    55% {
        opacity: 1;
        transform: translateY(-6px) rotate(2deg) scale(1.02);
        filter: blur(0);
    }

    78% {
        transform: translateY(2px) rotate(-1deg) scale(0.995);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroNameHover {
    0% {
        transform: translateY(0) rotate(0) scale(1);
    }

    35% {
        transform: translateY(-5px) rotate(-2deg) scale(1.015);
    }

    68% {
        transform: translateY(2px) rotate(1.2deg) scale(0.998);
    }

    100% {
        transform: translateY(0) rotate(0) scale(1);
    }
}

.hero {
    min-height: clamp(460px, 62vh, 680px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0 86px;
    text-align: center;
}

.hero-content {
    width: min(920px, 100%);
    margin: 0 auto;
}

.hero-kicker {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 18px;
    color: var(--accent-light);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 24px;
    transform-origin: center;
    animation: heroTitleReveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
    transition: text-shadow 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.hero h1 .title-role {
    opacity: 0;
    transform: translateY(8px);
    animation: heroRoleReveal 0.7s ease 0.48s both;
    transition: color 0.35s ease, transform 0.35s ease;
}

.hero h1:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    text-shadow:
        0 0 24px rgba(216, 180, 254, 0.34),
        0 0 58px rgba(168, 85, 247, 0.2);
}

.hero h1:hover .title-role {
    color: var(--accent-light);
    transform: translateY(1px);
}

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroRoleReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.28rem);
    font-weight: 400;
    line-height: 1.7;
}

.mobile-break {
    display: none;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    border: 1px solid rgba(216, 180, 254, 0.32);
    border-radius: 999px;
    background: rgba(9, 5, 18, 0.44);
    color: var(--text) !important;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-button-primary {
    background: rgba(168, 85, 247, 0.72);
    border-color: rgba(246, 240, 255, 0.5);
}

.hero-button:hover {
    background: rgba(27, 16, 48, 0.88);
    border-color: rgba(246, 240, 255, 0.58);
    transform: translateY(-2px);
}

h2 {
    font-family: "Casko Luxury", "DM Sans", serif;
    font-weight: 400;
    color: var(--text);
}

/*style de la grille d'images*/
/* Configuration du conteneur de la grille */
.grille_images {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* DÃ©finit une grille de 12 colonnes */
    gap: 14px;
    /* Espacement uniforme entre les Ã©lÃ©ments de la grille */
    padding: 18px;
    /* Espace uniforme autour des bords de la grille */
    overflow: hidden;
    background: rgba(9, 5, 18, 0.52);
    border: 1px solid rgba(216, 180, 254, 0.16);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    scroll-margin-top: 110px;
}

.grille_images:target {
    animation: gridReveal 0.7s ease both;
}

@keyframes gridReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grille_projets {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* DÃ©finit une grille de 12 colonnes */
    gap: 60px;
    /* Espacement uniforme entre les Ã©lÃ©ments de la grille */
    padding: 28px;
    /* Espace uniforme autour des bords de la grille */
    overflow: hidden;
    background: rgba(9, 5, 18, 0.52);
    border: 1px solid rgba(216, 180, 254, 0.16);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.grille_projets p {
    margin-bottom: 34px;
    font-weight: 400;
    text-align: justify;
    color: var(--muted);
    line-height: 1.7;
}

.grille_projets h3 {
    margin-top: 34px;
    margin-bottom: 8px;
    color: var(--accent-light);
    font-weight: 700;

}

.grille_projets h3:first-child {
    margin-top: 0;
}

.grille_projets small {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #9f8cc4;

}

.about-panel {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 48px;
    align-items: center;
    width: min(100%, 960px);
    margin-right: auto;
    margin-left: auto;
    padding: 38px;
    background: rgba(9, 5, 18, 0.52);
    border: 1px solid rgba(216, 180, 254, 0.16);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.about-photo {
    width: min(100%, 240px);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    justify-self: center;
    overflow: hidden;
    border: 3px solid rgba(246, 240, 255, 0.82);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 24%, rgba(216, 180, 254, 0.42), transparent 36%),
        linear-gradient(135deg, rgba(168, 85, 247, 0.42), rgba(9, 5, 18, 0.88));
    box-shadow:
        0 0 0 8px rgba(216, 180, 254, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.32);
    filter:grayscale(60%);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo-expo {
    width: min(100%, 320px);
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    filter: none;
    overflow: visible;
    perspective: 900px;
}

.about-flip-inner {
    position: relative;
    display: block;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.about-flip-card:hover .about-flip-inner,
.about-flip-card:focus-visible .about-flip-inner,
.about-flip-card:active .about-flip-inner {
    transform: rotateY(180deg);
}

.about-flip-face {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    backface-visibility: hidden;
}

.about-flip-front img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-flip-back {
    --expo-pink: #fac7ff;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 34px;
    background:
        radial-gradient(circle at 24% 18%, rgba(250, 199, 255, 0.32), transparent 34%),
        linear-gradient(135deg, rgba(44, 20, 78, 0.96), rgba(13, 6, 28, 0.98));
    transform: rotateY(180deg);
}

.about-flip-logo {
    display: block;
    width: min(74%, 180px);
    aspect-ratio: 114.1 / 117.3;
    background: var(--expo-pink);
    -webkit-mask: url("../assets/BECHARD_Zachary_Logo.svg") center / contain no-repeat;
    mask: url("../assets/BECHARD_Zachary_Logo.svg") center / contain no-repeat;
    filter: drop-shadow(0 0 18px rgba(250, 199, 255, 0.34));
}

.about-content h2 {
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.about-content p {
    max-width: 680px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.75;
}

/* Styles communs pour les images */
.im {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    /* Maintient un ratio carrÃ© pour toutes les images */
    object-fit: cover;
    /* Assure que les images couvrent l'espace sans dÃ©formation */
    box-sizing: border-box;
    /* Pour inclure les marges et les paddings dans la largeur/hauteur */
    display: block;
    /* Ã‰limine l'espace supplÃ©mentaire sous l'image */
}

.im {
    border-radius: 8px;
    border: 1px solid rgba(216, 180, 254, 0.18);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card,
.project-detail-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.project-media-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-main-image,
.project-gallery-thumb,
.project-lightbox button {
    font: inherit;
}

.project-main-image,
.project-gallery-thumb {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.project-main-image {
    width: 100%;
    border-radius: 8px;
}

.project-main-image:focus-visible,
.project-gallery-thumb:focus-visible,
.project-lightbox button:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
}

.project-main-image:hover .im,
.project-main-image:focus-visible .im {
    filter: brightness(1.08);
    transform: scale(1.01);
    box-shadow: 0 22px 60px rgba(168, 85, 247, 0.24);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 10px;
}

.project-gallery[hidden] {
    display: none;
}

.project-gallery-thumb {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.project-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.project-gallery-thumb:hover img,
.project-gallery-thumb:focus-visible img {
    filter: brightness(1.08);
    transform: scale(1.06);
}

.lightbox-open {
    overflow: hidden;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 72px 88px;
    background: rgba(6, 3, 13, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.project-lightbox.is-open {
    display: flex;
}

.project-lightbox img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.project-lightbox button {
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    text-shadow: 0 0 18px rgba(216, 180, 254, 0.34);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.project-lightbox button:hover {
    background: transparent;
    color: var(--accent-light);
    text-shadow: 0 0 26px rgba(216, 180, 254, 0.54);
}

.project-lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    font-size: 7rem !important;
    line-height: 0.85;
}

.project-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 148px;
    height: 160px;
    border-radius: 8px;
    font-size: clamp(8rem, 12vw, 13rem) !important;
    line-height: 0.85;
    transform: translateY(-50%);
}

.project-lightbox-nav:hover {
    transform: translateY(-50%);
}

.project-lightbox-prev {
    left: 22px;
}

.project-lightbox-next {
    right: 22px;
}

.project-card a {
    display: block;
    position: relative;
    height: 100%;
    color: var(--text);
}

.project-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(9, 5, 18, 0.08) 0%, rgba(9, 5, 18, 0.46) 46%, rgba(6, 3, 13, 0.94) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-tags {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100% - 28px);
    pointer-events: none;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(246, 240, 255, 0.48);
    border-radius: 999px;
    background: rgba(27, 16, 48, 0.58);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.project-card-title {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    color: var(--text);
    font-family: "Casko Luxury", "DM Sans", serif;
    font-size: clamp(1rem, 2vw, 2.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.project-card:hover a::after,
.project-card:focus-within a::after,
.project-card:hover .project-card-title,
.project-card:focus-within .project-card-title {
    opacity: 1;
}

.project-card:hover .project-card-title,
.project-card:focus-within .project-card-title {
    transform: translateY(0);
}

.project-card:hover .im,
.project-card:focus-within .im {
    filter: blur(2px);
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 22px 60px rgba(168, 85, 247, 0.22);
}

/* Positionnement individuel des images */
/* PremiÃ¨re ligne : deux carrÃ©s et un rectangle */
.im1 {
    grid-column: 1 / 4;
    /* Le premier carrÃ© occupe 3 colonnes */
    grid-row: 1 / 3;
    /* S'Ã©tend sur 2 rangÃ©es pour former un carrÃ© */
}

.im2 {
    grid-column: 4 / 7;
    /* Le deuxiÃ¨me carrÃ©, Ã  cÃ´tÃ© du premier */
    grid-row: 1 / 3;
}

.im3 {
    grid-column: 7 / 13;
    /* Un grand rectangle occupant le reste de la ligne */
    grid-row: 1 / 5;
}

/* DeuxiÃ¨me ligne : deux carrÃ©s sous les premiers */
.im4 {
    grid-column: 1 / 4;
    /* Continue avec un autre carrÃ© sous le .im1 */
    grid-row: 3 / 5;
}

.im5 {
    grid-column: 4 / 7;
    /* CarrÃ© sous le .im2 */
    grid-row: 3 / 5;
}

/* TroisiÃ¨me ligne : commence par un rectangle, suivi de deux carrÃ©s */
.im6 {
    grid-column: 1 / 7;
    /* Grand rectangle occupant la moitiÃ© gauche */
    grid-row: 5 / 9;
}

.im7 {
    grid-column: 7 / 10;
    /* CarrÃ© Ã  droite du rectangle */
    grid-row: 5 / 7;
}

.im8 {
    grid-column: 10 / 13;
    /* Un autre carrÃ© Ã  cÃ´tÃ© du .im7 */
    grid-row: 5 / 7;
}

/* QuatriÃ¨me ligne : deux carrÃ©s sous ceux de la troisiÃ¨me ligne */
.im9 {
    grid-column: 7 / 10;
    /* CarrÃ© sous le .im7 */
    grid-row: 7 / 9;
}

.im10 {
    grid-column: 10 / 13;
    /* CarrÃ© sous le .im8 */
    grid-row: 7 / 9;
}

/* Remplissage de la derniÃ¨re ligne avec quatre carrÃ©s */
.im11,
.im13 {
    grid-column: 1 / 4;
    /* .im11 et .im13 sont placÃ©s Ã  gauche, .im13 est ajoutÃ© */
    grid-row: 9 / 11;
    /* Ils s'Ã©tendent tous les deux sur 2 rangÃ©es */
}

.im12,
.im14 {
    grid-column: 4 / 7;
    /* .im12 et .im14 sont placÃ©s Ã  droite */
    grid-row: 9 / 11;
}

.im13 {
    grid-column: 7 / 10;
    /* Positionnement corrigÃ© pour .im13 */
}

.im14 {
    grid-column: 10 / 13;
    /* Positionnement corrigÃ© pour .im14 */
}


.pied {
    padding-left: 5%;
    padding-right: 5%;
    color: var(--muted);


}

.sociaux a {
    color: var(--muted);
    font-size: 30px;
}

.sociaux a:hover {
    color: var(--accent-light);
    font-size: 30px;
}

.sociaux p {
    margin-top: 10px;
    margin-bottom: 30px;
    color: var(--muted);
    text-align: center;
    color: var(--muted);
    font-size: 0.8em;
}

.sociaux {
    display: flex;
    flex-direction: column;
    /* Organise les Ã©lÃ©ments verticalement */
    align-items: center;
    /* Centre les Ã©lÃ©ments verticalement */
    text-align: center;
    /* Centre le texte pour les sous-Ã©lÃ©ments */
    padding: 20px 0;
}

.icons-wrapper {
    display: flex;
    justify-content: center;
    /* Centre les icÃ´nes horizontalement */
    flex-wrap: wrap;
    /* Permet aux icÃ´nes de passer Ã  la ligne si nÃ©cessaire */
    gap: 10px;
    /* Espacement entre les icÃ´nes */
    width: 100%;
    /* Assure que le wrapper prend toute la largeur */
}

.fa {
    font-size: 2em;
    /* Ajuste la taille des icÃ´nes */
    padding: 8px;
    /* Ajuste l'espacement autour des icÃ´nes */
    color: var(--muted);
    /* Couleur des icÃ´nes */
}

.fa:hover {
    color: var(--accent-light);
    /* Couleur des icÃ´nes au survol */
}

/* Styles spÃ©cifiques pour les crÃ©dits */
.credits {
    margin-top: 10px;
    /* Ajoute un espace entre les icÃ´nes et les crÃ©dits */
    font-size: 1em;
    /* Ajuste la taille de la police pour les crÃ©dits */
    width: 100%;
    /* Assure que les crÃ©dits prennent toute la largeur et restent centrÃ©s */
}

/* Styles pour le bouton menu hamburger */
.hamburger-menu {
    display: none;
    /* CachÃ© par dÃ©faut, sera affichÃ© sur mobile */
    align-items: center;
    justify-content: center;
}

.hamburger-menu button {
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 1.35em;
    /* Taille de l'icÃ´ne du menu hamburger */
    color: var(--accent-light);
    padding: 4px 6px;
}

.hamburger-menu button .fa-bars {
    cursor: pointer;
}

/* Micro-interaction au survol des images: flou lÃ©ger, changement d'opacitÃ© et lÃ©gÃ¨re mise Ã  l'Ã©chelle */
.im:hover {
    filter: blur(2px);
    /* Ajoute un flou lÃ©ger */
    opacity: 0.9;
    /* LÃ©gÃ¨re rÃ©duction de l'opacitÃ© */
    transform: scale(1.05);
    /* LÃ©gÃ¨re mise Ã  l'Ã©chelle pour donner un effet de zoom discret */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 22px 60px rgba(168, 85, 247, 0.22);
    /* Transition douce pour l'effet */
}

/* Media Query pour les Ã©crans mobiles */

.menu1 a:hover {
    background: rgba(27, 16, 48, 0.96);
    border-color: rgba(246, 240, 255, 0.38);
    color: var(--text);
    transform: translateY(-1px);
}

.menu1 a.actif,
.menu1 a.actif:visited,
.menu1 a.actif:link {
    background: rgba(168, 85, 247, 0.62);
    border-color: rgba(216, 180, 254, 0.5);
    color: var(--text) !important;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.header-socials .fa {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(216, 180, 254, 0.32);
    border-radius: 50%;
    background: rgba(216, 180, 254, 0.18);
    color: var(--text);
    font-size: 1.05rem;
    box-shadow: inset 0 -10px 18px rgba(168, 85, 247, 0.16);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-socials .fa:hover {
    background: var(--accent-light);
    border-color: rgba(246, 240, 255, 0.68);
    color: var(--bg);
    transform: translateY(-1px);
}

.footer-socials {
    display: none;
}

@media (min-width: 1201px) {
    header {
        width: min(760px, calc(100% - 28px));
    }

    .entete {
        display: grid;
        grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
        align-items: center;
        padding: 6px 28px;
    }

    .item1 {
        justify-self: start;
    }

    .menu1 {
        justify-self: center;
        margin: 0;
    }

    .header-socials {
        justify-self: end;
        margin-left: 0;
    }
}

@media (max-width: 1200px) {

    body {
        padding: 0px;
        /* Marge autour du contenu */
    }

    header {
        position: fixed;
        top: 12px;
        left: 50%;
        width: calc(100% - 28px);
        transform: translateX(-50%);
        box-shadow: none;
        background-color: transparent;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        /* Alignement des Ã©lÃ©ments Ã  la base */

    }

    .entete img {
        width: auto;
        height: 38px;
        /* Hauteur fixe pour le logo pour contrÃ´ler sa taille */
    }

    .hamburger-menu {
        display: flex;
        /* Assure que le menu hamburger est visible et alignÃ© */
        align-items: center;
        /* Centre verticalement le bouton dans l'en-tÃªte */
    }

    main {
        padding-top: 84px;
        /* Espace supÃ©rieur pour s'assurer que le contenu principal ne soit pas cachÃ© par l'en-tÃªte */
        padding-bottom: 36px;
        /* Augmente l'espace en bas avant le pied de page */
    }

    h1 {
        margin-top: 80px;
        /* Augmente l'espace au-dessus du h1 pour plus de clartÃ© */
        text-align: center;
        margin-bottom: 40px;
        font-size: 1.8em;
    }

    .hero {
        min-height: 520px;
        padding: 88px 0 54px;
    }

    .hero-kicker {
        display: block;
        margin-bottom: 12px;
        font-size: clamp(0.9rem, 4vw, 1.15rem);
        font-weight: 700;
        letter-spacing: 0.22em;
        line-height: 1.2;
    }

    .hero h1 {
        margin-top: 0;
        margin-bottom: 20px;
        font-size: clamp(2.2rem, 12vw, 4rem);
    }

    .hero-text {
        font-size: 0.98rem;
    }

    .mobile-break {
        display: block;
    }

    .hero-actions {
        gap: 8px;
        margin-top: 18px;
    }

    .hero-button {
        min-height: 38px;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 0.86rem;
    }

    main {
        grid-row-start: 2;
        grid-row-end: 9;
        grid-column-start: 2;
        grid-column-end: 9;
        padding: 96px 10px 36px;

    }

    .menu1 a,
    .menu1 a:hover {
        text-decoration: none;
        /* EnlÃ¨ve le soulignement pour l'Ã©tat normal et au survol */
        color: var(--text);
        /* Couleur des liens inchangÃ©e */
        background-color: rgba(9, 5, 18, 0.72);
        /* Aucun changement de fond au survol */
    }

    .menu1 {
        display: none;
        position: fixed;
        top: 74px;
        left: 50%;
        width: min(420px, calc(100% - 28px));
        height: auto;
        padding: 42px 18px 18px;
        background: #120a22;
        border: 1px solid rgba(216, 180, 254, 0.26);
        border-radius: 22px;
        box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
        transform: translateX(-50%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 10px;
        z-index: 1000;
        /* S'assure que le menu est au-dessus des autres Ã©lÃ©ments */
    }

    .menu1 a {
        padding: 13px 18px;
        border-radius: 999px;
        background: rgba(9, 5, 18, 0.72);
        color: var(--text);
        font-weight: 500;
        /* Augmente le padding pour espacer les Ã©lÃ©ments */
    }

    .close-menu {
        display: block;
        /* S'assure que le bouton est visible */
        position: absolute;
        /* Position absolue pour placer prÃ©cisÃ©ment le bouton */
        top: 10px;
        /* Espace du haut */
        right: 12px;
        /* Espace du cÃ´tÃ© droit */
        font-size: 1.35em;
        /* Taille de l'icÃ´ne */
        color: var(--text);
        /* Couleur de l'icÃ´ne */
    }

    .hamburger-menu {
        display: block;
    }

    /* Affiche le menu en plein Ã©cran en mobile */
    .menu-deployed {
        display: flex;
        /* Utilise flexbox pour le layout */
        flex-direction: column;
        /* Empile les Ã©lÃ©ments verticalement */
        justify-content: flex-start;
        /* Centre les Ã©lÃ©ments verticalement */
        align-items: stretch;
        /* Centre les Ã©lÃ©ments horizontalement */
        width: min(420px, calc(100% - 28px));
        /* Prend toute la largeur */
        height: auto;
        /* Prend toute la hauteur de la vue */
        position: fixed;
        /* Position fixe pour couvrir tout l'Ã©cran */
        top: 74px;
        /* Ã€ partir du haut de la page */
        left: 50%;
        /* Ã€ partir du cÃ´tÃ© gauche de la page */
        background: #120a22;
        /* Fond blanc pour le menu */
        z-index: 1000;
        /* S'assure que le menu est au-dessus de tout le contenu */
        padding: 42px 18px 18px;
        transform: translateX(-50%);
        /* Ajoute un peu d'espace en haut */
    }

    .menu1 .actif {
        background: rgba(168, 85, 247, 0.62);
        color: var(--text);
        /* Si vous voulez que .actif reste noir aussi en mobile */
    }

    .menu1 a:hover {
        background: rgba(27, 16, 48, 0.96);
        color: var(--text);
    }


    /* Rend le conteneur de l'en-tÃªte responsive */
    header .entete {
        justify-content: space-between;
        width: 100%;
        padding: 6px 18px;
    }

    .header-socials {
        display: none;
    }

    /* Affiche le logo et le bouton menu hamburger */
    .entete .item1,
    .entete .hamburger-menu {
        margin: 0;
    }

    .grille_images {
        margin: 0 auto;
        /* Centre la grille dans le viewport */
        padding: 12px;
        /* Assure une marge intÃ©rieure pour ne pas toucher les bords */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Deux colonnes */
        gap: 10px;
        /* Espacement entre les images */
    }

    .grille_projets {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Deux colonnes */
        gap: 10px;
        /* Espacement entre les images */
    }

    .grille_projets small {
        display: block;
        margin-top: 40px;
        text-align: center;
    }

    .about-panel {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px;
        text-align: center;
    }

    .about-photo {
        width: min(68vw, 220px);
    }

    .about-photo-expo {
        width: min(76vw, 240px);
    }

    .about-content p {
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .grille_images img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-tags {
        top: 9px;
        left: 9px;
        gap: 6px;
        max-width: calc(100% - 18px);
    }

    .grille_images .project-tags {
        display: none;
    }

    .project-detail-media {
        overflow: visible;
    }

    .project-detail-media .project-tags {
        position: static;
        display: flex;
        max-width: 100%;
        margin-top: 2px;
        pointer-events: auto;
    }

    .project-tag {
        min-height: 23px;
        padding: 5px 8px;
        font-size: 0.64rem;
    }

    .project-media-panel,
    .grille_projets>div {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .project-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .project-lightbox {
        padding: 72px 18px 88px;
    }

    .project-lightbox-close {
        top: 14px;
        right: 14px;
        width: 62px;
        height: 62px;
        font-size: 4rem !important;
    }

    .project-lightbox-nav {
        top: auto;
        bottom: 14px;
        width: 74px;
        height: 64px;
        font-size: 5rem !important;
        transform: none;
    }

    .project-lightbox-nav:hover {
        transform: none;
    }

    .sociaux {
        margin-top: 60px;
    }

    .footer-socials {
        display: flex;
        gap: 14px;
        margin-bottom: 18px;
    }

    .footer-socials .fa {
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(216, 180, 254, 0.34);
        border-radius: 50%;
        background: rgba(9, 5, 18, 0.72);
        color: var(--text);
        font-size: 1.15rem;
    }

    .footer-socials .fa:hover {
        background: rgba(168, 85, 247, 0.62);
        color: var(--text);
    }

    /* Assignation des images aux cellules de la grille */
    /* Configuration initiale pour toutes les images */
    .im {
        grid-row: span 2;
        /* La plupart des images s'Ã©tendent sur deux lignes pour maintenir la forme carrÃ©e */
    }

    /* Configuration spÃ©cifique pour les rectangles longs */
    .im2,
    .im3,
    .im7,
    .im10 {
        grid-row: span 3;
        /* Les rectangles longs s'Ã©tendent sur trois lignes */
    }

    /* Ajustements pour Ã©viter les chevauchements tout en maintenant un flux visuel dynamique */
    /* CarrÃ©s */
    .im1 {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .im4 {
        grid-column: 2;
        grid-row: 4 / 6;
    }

    /* DÃ©placÃ© pour Ã©viter le chevauchement avec .im2 */
    .im5 {
        grid-column: 1;
        grid-row: 3 / 5;
    }

    .im6 {
        grid-column: 2;
        grid-row: 6 / 8;
    }

    .im8 {
        grid-column: 1;
        grid-row: 5 / 7;
    }

    .im9 {
        grid-column: 2;
        grid-row: 8 / 10;
    }

    .im11 {
        grid-column: 1;
        grid-row: 7 / 9;
    }

    .im12 {
        grid-column: 2;
        grid-row: 10 / 12;
    }

    /* AjustÃ© pour continuer le motif sans chevauchement */

    /* Rectangles longs */
    .im2 {
        grid-column: 2;
        grid-row: 1 / 4;
    }

    .im3 {
        grid-column: 1;
        grid-row: 5 / 8;
    }

    .im7 {
        grid-column: 2;
        grid-row: 6 / 9;
    }

    .im10 {
        grid-column: 1;
        grid-row: 9 / 12;
    }

    /* Ajustements pour les derniÃ¨res images pour remplir les espaces restants */
    .im13,
    .im14 {
        display: none;
        /* Cachez ces Ã©lÃ©ments si vous n'utilisez que 12 images */
    }
    .grille_images>.project-card {
        display: block;
        grid-column: auto;
        grid-row: auto;
    }

    .grille_images>.im3,
    .grille_images>.im6 {
        grid-column: 1 / -1;
    }

    .grille_images>.im3 .im,
    .grille_images>.im6 .im {
        aspect-ratio: 16 / 10;
    }
}

/*
iiiiiii  sss   rrrr    aaa  eee l
   ii   s    r   r  a   a e     l    
   ii    sss  rrrr  aaaaa eeee  l    
   ii       s r  r  a   a e     l    
iiiiiii  sss   r   r a   a  e   lll  

ddddd  u  u pppp  u   u iii sss  
d   d  u  u p   p u   u  i  s     
d   d  u  u pppp  u   u  i   sss  
d   d  u  u p     u   u  i      s 
ddddd   uuu p      uuu  iii sss   

CodÃ© par IsraÃ«l Dupuis en 2024 pour le plus grand bien de tous.
*/
