    :root{
      --site-width:1024px;
      --bg:#f5f6f8;
      --accent1:#006aea;
      --accent2:#78e1ca;
      --accent3:#f17884;
      --dark:#061254;
      --blue:#006aea;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family:Roboto,system-ui,-apple-system,"Segoe UI",Arial;
      background:var(--bg);
      color:#111;
    }

    .wrap{
      width:var(--site-width);
      min-height:100vh;
      margin:0 auto;
      display:flex;
      flex-direction:column;
    }
    
header{
  position:fixed;
  left:0;top:0;
  width:100%;height:72px;
  background:rgba(255,255,255,0.75); /* léger voile blanc transparent */
  border-bottom:1px solid rgba(0,0,0,0.06);
  z-index:400;

  /* flou de ce qui passe derrière le header */
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px); /* Safari */
}
    .header-inner{
      width:var(--site-width);
      margin:0 auto;
      height:72px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:0 24px;
    }

    .brand{display:flex;align-items:center;gap:6px}
    .logo{width:34px;height:34px;border-radius:0;background:transparent}
    .name{font-weight:600;font-size:16px;letter-spacing:0;color:#000;text-decoration:none;}

    nav{
      display:flex;
      gap:44px;
      font-size:16px;
      font-weight:400;
      color:#000;
    }
    nav a{
  text-decoration:none;
  color:inherit;
  font-weight:400;
  transition: opacity 200ms ease;
}

nav a:hover{
  opacity: 0.6;
}

nav a.is-active,
nav a[aria-current="page"]{
  font-weight:700;
}

    /* gradient bar full width derrière le header */
    .gradient-bar{
      position:absolute;
      left:0;top:0;
      width:100%;
      height:180px;
      pointer-events:none;
      overflow:hidden;
      z-index:100;
    }
    .gradient-bar .track{
      position:absolute;
      top:0;left:0;
      width:100%;
      height:100%;
      background:linear-gradient(90deg,
        var(--accent1) 0%,
        var(--accent2) 40%,
        var(--accent3) 80%,
        var(--accent3) 100%
      );
      will-change:transform;
    }
    .gradient-bar:after{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(
        to bottom,
        rgba(245,246,248,0) 0%,
        rgba(245,246,248,0.3) 40%,
        #f5f6f8 100%
      );
    }

    main{
      position:relative;
      z-index:200;
      padding-top:88px;
      padding-bottom:40px;
      flex:1;
    }

    /* intro */
    .intro{max-width:760px;margin:30px auto 10px}
    .intro p{
      font-size:18px;
      line-height:1.28;
      color:#111;
      margin:0;
      text-align:center;
    }

    @media (max-width: 700px) {
      .intro p{
        font-size: 16px;
      }
    }


    /* footer */
    footer{
      border-top:1.5px solid #b2b2b2;
      padding:10px 0;
      margin-top:20px;
      margin-bottom:40px !important;
    }
    .footer-inner{
      width:var(--site-width);
      margin:0 auto;
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      text-align:left;
      color:#b2b2b2;
      gap:12px;
    }
    .footer-left{
      flex:1;
      text-align:left;
      font-family:'Roboto Mono', monospace;
      color:#b2b2b2;
      font-size:14px;
    }
    .footer-icons{
      display:flex;
      gap:8px;
      align-items:center;
    }

    .footer-icons a{
      display:inline-flex;
      transition:transform 200ms ease;
    }
    .footer-icons a:hover{
      transform:scale(0.92);
    }

    @media(max-width:1040px){
      :root{--site-width:94vw}
      .wrap{width:94vw}
      .header-inner{width:94vw}
      .showreel.expanded{height:calc(94vw * 9 / 16)}
    }

/* --- PAGE PHOTOS --- */

/* Grille pleine largeur, centrée, 4 colonnes max */
.photo-grid{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  padding: 0 32px 40px;
  margin: 0;

  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

/* Chaque colonne */
.photo-col{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Case photo : card avec arrondi + anim de scale au hover */
.photo-item{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #e7e9ed;
  translate:var(--photo-hover-x,0px) var(--photo-hover-y,0px);
  transition:transform 350ms ease,translate 180ms ease-out;
}

.photo-item:hover{
  transform: scale(1.01);
}
.photo-item::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#e7e9ed 15%,#f0f1f3 45%,#e7e9ed 75%);background-size:200% 100%;animation:photo-skeleton 2s ease-in-out infinite;transition:opacity 250ms ease;pointer-events:none}
.photo-item.revealed::before{opacity:0;animation:none}
@keyframes photo-skeleton{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.photo-item::before{animation:none}.photo-item img{transition:none}}

/* Image : ratio natif, cachée au départ + légère translation */
.photo-item img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;

  opacity: 0;
  transform: translateY(10px) scale(1);
  transition:
    opacity 450ms ease,
    transform 450ms ease,
    filter 250ms ease;
  cursor: pointer;
}

/* Quand l'image est visible → fade-in smooth */
.photo-item.revealed img{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hover léger sur l'image (cadre déjà géré par .photo-item) */
.photo-item.revealed img:hover{
  filter: brightness(1.04);
}

/* Petites retouches de padding / gaps selon la taille */

@media (max-width: 900px){
  .photo-grid{
    padding: 0 24px 32px;
    gap: 12px;
  }
}

@media (max-width: 600px){
  .photo-grid{
    padding: 0 16px 24px;
    gap: 10px;
  }
}

/* ---------- LIGHTBOX GLOBAL ---------- */
.photo-refresh-indicator{display:none}
@media(max-width:700px){
  html.photo-pull-enabled,html.photo-pull-enabled body{overscroll-behavior-y:none}
  .photo-pull-enabled main.photos-page{translate:0 var(--photo-refresh-offset,0px);transition:translate 240ms ease}
  .photo-pull-enabled.is-photo-pulling main.photos-page{transition:none}
  .photo-refresh-indicator:not([hidden]){display:flex;position:fixed;top:calc(72px + var(--photo-refresh-logo-y,0px));left:0;right:0;height:34px;align-items:center;justify-content:center;pointer-events:none;z-index:450;opacity:var(--photo-refresh-visibility,0);transition:opacity 240ms ease,top 240ms ease}
  .is-photo-pulling .photo-refresh-indicator:not([hidden]){transition:none}
  .photo-refresh-indicator svg{display:block;width:34px;height:34px;fill:#87CABB}
  .photo-refresh-fill{transform-box:view-box;transform:scaleY(var(--photo-refresh-progress,0))}
  .photo-refresh-fill.from-top{transform-origin:center top}
  .photo-refresh-fill.from-bottom{transform-origin:center bottom}
  .is-photo-refreshing .photo-refresh-fill{animation:photo-refresh-fill 2s ease-in-out infinite}
}
@keyframes photo-refresh-fill{0%,100%{transform:scaleY(1)}45%,55%{transform:scaleY(0)}}
@media(prefers-reduced-motion:reduce){
  .photo-pull-enabled main.photos-page{transition:none}
  .is-photo-refreshing .photo-refresh-fill{animation:none;transform:scaleY(1)}
}

/* ---------- LIGHTBOX GLOBAL ---------- */

/* Lightbox structure (header NOT blurred) */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}

.lightbox-backdrop.open {
  display: block;
}

/* Fond flou uniquement derrière les photos, pas le header */
.lightbox-backdrop.open::before {
  content: "";
  position: fixed;
  top: 72px;          /* démarre sous le header */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  z-index: 0;
}


/* ---------- PHOTO CENTRÉE ---------- */

/* Container centré pour la photo */
.lightbox-inner {
  position: fixed;
  top: 112px; /* sous le header */
  bottom: 40px; 
  left: 0;
  right: 0;

  display: flex;
  flex-direction: column;   /* ⬅️ on empile image + légende */
  justify-content: center;
  align-items: center;

  pointer-events: none; /* éléments interactifs gérés séparément */
  z-index: 1; /* en-dessous des flèches + croix */
}

/* Zone qui contient l’image */
.lightbox-image-wrapper {
  max-height: 100%;
  max-width: min(80vw, 1400px);  /* largeur max commune */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image parfaitement responsive */
.lightbox-image {
  max-height: calc(100vh - 72px - 40px); /* header + marge bas */
  max-width: 100%;              /* prend la largeur du wrapper */
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 300ms ease, transform 300ms ease;
}

@media (max-width: 700px){
  .lightbox-inner{
    padding: 0 70px;   /* espace pour flèches à gauche ET à droite */
    box-sizing: border-box;
  }

  .lightbox-image{
    max-height: calc(100vh - 140px); /* garder les marges en haut/bas */
    width: auto;
  }
}

.lightbox-image.is-visible {
  opacity: 1;
  transform: scale(1);
}

.mobile-photo-strip{display:none}
@media(max-width:700px){
  .lightbox-inner{padding:0;pointer-events:auto;touch-action:pan-y pinch-zoom;overflow:hidden}
  .lightbox-inner .lightbox-arrow,.lightbox-inner .lightbox-image-wrapper{display:none}
  .lightbox-inner .mobile-photo-strip{display:flex;position:absolute;top:0;bottom:0;left:0;width:max-content;align-items:center;gap:16px;will-change:transform}
  .mobile-photo-item{flex:none;width:min(80vw,calc((100vh - 190px) * var(--photo-ratio,1.333333)));width:min(80vw,calc((100dvh - 190px) * var(--photo-ratio,1.333333)));aspect-ratio:var(--photo-ratio,1.333333)}
  .mobile-photo-item img{display:block;width:100%;height:100%;object-fit:contain;border-radius:18px;box-shadow:0 18px 45px rgba(0,0,0,.35);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
  .lightbox-media .lightbox-caption{position:fixed;pointer-events:none;margin-top:0}
}
@media(prefers-reduced-motion:reduce){.mobile-photo-strip{transition:none!important}}

/* ---------- CROIX & FLÈCHES (FIXED AU VIEWPORT) ---------- */

.lightbox-close {
  position: fixed;
  z-index: 510;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 180ms ease;
}

.lightbox-arrow {
  position: fixed;
  z-index: 510;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 180ms ease;

  /* +12px pour compenser la légende / marges */
  top: calc(50vh + 48px);
  transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
  transform: translateY(-50%);
}


@media (max-width: 700px){
  .lightbox-arrow {
    top: calc(50vh + 48px); /* ou la même valeur fine-tunée que sur desktop */
  }
}

/* croix : en haut à droite de la fenêtre */
.lightbox-close {
  top: 80px;   /* sous le header */
  right: 32px;
}

/* Style général des flèches du viewer */
.arrow-svg {
  width: 38px;
  height: 38px;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.lightbox-prev {
  left: 32px;
}

.lightbox-next {
  right: 32px;
}

/* Hover : légère réduction (comme tes boutons) */
.lightbox-arrow:hover .arrow-svg {
  transform: scale(0.9);
}

/* Flèche gauche = rotation 180° */
.lightbox-prev .arrow-svg {
  transform: rotate(180deg);
}

/* Mais hover s’ajoute à la rotation */
.lightbox-prev:hover .arrow-svg {
  transform: rotate(180deg) scale(0.9);
}

/* Style général du SVG de la croix */
.close-svg {
  width: 34px;
  height: 34px;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hover = petite rotation et fade, comme demandé */
.lightbox-close:hover .close-svg {
  transform: rotate(90deg) scale(0.9);
}


/* mobile */
@media (max-width: 768px) {
  /* flèches plus proches du bord */
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  /* croix un peu rapprochée aussi pour cohérence */
  .lightbox-close { right: 12px; }

  /* flèches un peu plus petites sur mobile */
  .arrow-svg {
    width: 30px;
    height: 30px;
  }
}


@media (max-width: 700px){
  .brand .name{
    display:none;
  }

    /* on resserre les liens du header */
  header nav{
    gap: 20px;        /* au lieu de 44px */
    /*font-size: 14px;  /* un poil plus petit, optionnel mais plus équilibré */
  }

  /* optionnel : on réduit un peu le padding interne du header */
  .header-inner{
    padding: 0 16px;  /* au lieu de 24px */
  }
}

/* --- Bloc image + légende dans la lightbox --- */

/* On centre le bloc média (image + caption) dans la fenêtre */
.lightbox-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Le bloc qui contient l'image + la légende */
.lightbox-media {
  display: inline-block;                 /* largeur = contenu (image) */
  max-width: min(80vw, 1400px);          /* limite max */
}

/* Le wrapper d'image reste ce qu'il est, mais limité par le media */
.lightbox-media .lightbox-image-wrapper {
  max-width: 100%;
}

/* L'image définit la largeur du bloc */
.lightbox-media .lightbox-image {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 160px); /* ajuste si besoin pour éviter le bas de page */
}

/* Légende sous la photo, alignée sur la largeur de la photo */
.lightbox-media .lightbox-caption {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-align: left;   /* bord gauche = bord gauche de l'image */
  opacity: 0;                    /* par défaut cachée */
  transition: opacity 200ms ease; /* fondu rapide et smooth */
}




/* ===========================
   PAGE CONTACT
   =========================== */

/* grand cadre en haut, même logique visuelle que les projets */
.contact-hero{
  max-width: var(--site-width);
  margin: 0px auto 40px;
  padding:0 16px;
  display:flex;
}

.contact-hero-bg{
  width: 100%;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;      /* très important : la map reste dans le cadre */
  position: relative;
  background:#000;       /* fallback derrière la map */
}

.contact-hero-map{
  width: 100%;
  height: 100%;
}

@media (max-width: 700px){
  .contact-hero{
    margin: 0 auto 40px;
    padding: 0 16px;
  }

  .contact-hero-bg{
    height: 240px;
  }

  /* pas besoin de toucher à .contact-hero-map ici,
     elle prendra 100% du cadre */
}

/* zone principale de contenu */
.contact-section{
  max-width: 760px;
  margin: 30px auto 10px;
  padding: 0 24px;
}

/* tableau de coordonnées */
.contact-table{
  margin-bottom: 32px;
}

.contact-row{
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid rgb(0, 0, 0);
  font-size: 18px;
}

.contact-row:last-child{
  border-bottom: none;
}

.contact-label{
  width: 380px;
  text-transform: lowercase;
}

.contact-value{
  flex: 1;
  font-weight: 500;
}

.contact-value a{
  color: #111;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.contact-value a:hover{
  opacity: 0.6;
}


/* paragraphe de présentation, proche du style des descriptions projets */
.contact-intro{
  max-width: 760px;
  font-size: 18px;
  line-height: 1.28;
  text-align: justify;
  color: #111;
  margin: 16px 0 40px;
}

/* bouton de téléchargement du CV, repris du style général des boutons bleus */
/* bouton de téléchargement du CV, repris du style général des boutons bleus */
.cv-btn{
  appearance:none;
  border:none;
  background:#006aea;          /* même bleu que .playbtn */
  color:#fff;
  font-size:15px;
  font-weight:400;
  padding:8px 18px;
  border-radius:24px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  flex-direction:column;       /* icône au-dessus du texte */
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.cv-btn:hover{
  transform:scale(0.95);
  background:#0080ff;
}

.cv-btn:active{
  transform:scale(0.97);
}

.cv-icon{
  display:block;
}

.cv-icon svg{
  display:block;
  width:52px;          /* taille de l’icône */
  height:auto;
}

.contact-cv{
  margin: 24px 0 0;
  text-align: center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.cv-icon-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:999px;
  padding:4px;
  transition:transform 200ms ease, box-shadow 200ms ease;
}

.cv-icon-link:hover{
  transform:scale(1.05);
}

.cv-icon-link:active{
  transform:scale(0.97);
}

/* responsive : réduire un peu le cadre sur mobile */
@media (max-width: 700px){
  .contact-hero{
    margin: 0 auto 40px;
    padding: 0 16px;
  }

  .contact-hero-bg{
    height: 240px;
  }

  .contact-section{
    margin-bottom: 16px;
    padding: 0 16px;
  }

  .contact-table{display:grid;grid-template-columns:minmax(0,1fr) max-content}
  .contact-row{
    display:grid;
    grid-column:1 / -1;
    grid-template-columns:subgrid;
    font-size: clamp(14px,4.1vw,18px);
    gap:8px;
  }

  .contact-label{
    width:auto;
  }
  .contact-value{min-width:0;text-align:left;white-space:nowrap}
}
/* Contact: the map sits behind independently moving decorative layers. */
.contact-hero-bg{isolation:isolate;clip-path:inset(0 round 16px)}
.contact-map-depth,.contact-layer{position:absolute;inset:-48px;will-change:transform}
.contact-map-depth{z-index:0;transform:translate3d(var(--map-x,0px),var(--map-y,0px),0)}
.contact-layer{pointer-events:none;background-position:center;background-repeat:repeat;background-size:cover;transition:background-size 250ms ease,opacity 250ms ease}
.contact-grid{opacity:calc(0.45 * var(--texture-visibility,1))}
.contact-grid-one{z-index:1;background-image:url('images/contact/contact_grid01.svg');transform:translate3d(var(--grid-one-x,0px),var(--grid-one-y,0px),0)}
.contact-grid-two{z-index:2;background-image:url('images/contact/contact_grid02.svg');transform:translate3d(var(--grid-two-x,0px),var(--grid-two-y,0px),0)}
.contact-dust{mix-blend-mode:screen}
.contact-dust-one{z-index:3;background-image:url('images/contact/dust01.jpg');transform:translate3d(var(--dust-one-x,0px),var(--dust-one-y,0px),0);opacity:calc(0.55 * var(--texture-visibility,1))}
.contact-dust-two{z-index:4;background-image:url('images/contact/dust02.jpg');transform:translate3d(var(--dust-two-x,0px),var(--dust-two-y,0px),0);opacity:calc(0.45 * var(--texture-visibility,1))}
@media(prefers-reduced-motion:reduce){.contact-map-depth,.contact-layer{transform:none;will-change:auto}}

@media(prefers-reduced-motion:reduce){.contact-layer{transition:none}}

/* Keep the contact map decorative; parallax lives on its parent. */
.contact-hero-map{filter:grayscale(1) contrast(1.55) brightness(1.06);pointer-events:none}

/* Fine monochrome grain sits above the grids and dust, inside the frame. */
.contact-hero-bg::after{content:"";position:absolute;inset:-8px;z-index:5;pointer-events:none;background:url('images/contact/film-grain.svg') repeat;background-size:256px 256px;mix-blend-mode:overlay;opacity:0.32;animation:contact-film-grain 0.8s steps(1,end) infinite}
@keyframes contact-film-grain{
  0%,100%{transform:translate(0,0)}
  20%{transform:translate(-4px,3px)}
  40%{transform:translate(3px,-4px)}
  60%{transform:translate(-2px,-3px)}
  80%{transform:translate(4px,2px)}
}
@media(prefers-reduced-motion:reduce){.contact-hero-bg::after{animation:none}}

@media(prefers-reduced-motion:reduce){.photo-item{translate:none}}

/* Keep the full copyright on one line on small screens. */
@media(max-width:700px){
  .footer-left{font-size:clamp(8px,2.65vw,14px);line-height:1.4;white-space:nowrap}
}
