:root{
  --paper:#FFFFFF;
  --ink:#14141A;
  --graphite:#8A8A92;
  --graphite-dark:#54545C;
  --orange:#FF5A1F;
  --cobalt:#2450FF;
  --lime:#CBFF4D;
  --yellow-light:#FFF3CE;
  --line: rgba(20,20,26,0.10);
  --attente:#EFEDE8;   /* fond neutre affiché le temps qu'une image arrive */
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
/* Pas de fondu entre les pages : le contenu des pages projet est écrit par
   le script, et le navigateur figeait une image de la page prise avant son
   remplissage, affichée pendant toute la transition. */
/* Secours si le script n'a pas la main (lien ouvert directement avec #ancre) :
   la section ne passe pas sous l'en-tête fixe. */
#projets,#croquis,#apropos,#contact{scroll-margin-top:110px;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Poppins',sans-serif;
  font-weight:800;
  line-height:1.05;
  margin:0;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
button{font-family:inherit;}
.wrap{max-width:1280px;margin:0 auto;padding:0 32px;}

/* ---------- ÉCRAN D'INTRODUCTION (le logo se trace) ---------- */
.preloader{
  position:fixed;inset:0;z-index:100;
  display:flex;align-items:center;justify-content:center;
  /* secours : si le script ne s'exécute pas, l'écran s'efface seul */
  animation:preloaderSecours 0s linear 6s forwards;
}
/* Le fond est séparé du logo : il s'efface pendant que le logo, lui, se déplace */
.preloader::before{
  content:'';position:absolute;inset:0;
  background:var(--paper);
  transition:opacity .6s ease .15s;
}
@keyframes preloaderSecours{to{opacity:0;visibility:hidden;}}
.preloader.fini{pointer-events:none;}
.preloader.fini::before{opacity:0;}
.preloader-logo{
  position:relative;z-index:1;
  width:min(58vw,320px);height:auto;overflow:visible;
  opacity:0;                      /* évite un éclair du logo avant le tracé */
}
/* Relais : le logo rejoint la place de celui de la couverture en s'effaçant */
.preloader.fini .preloader-logo{
  opacity:0;
  transform:translate(var(--dx,0px), var(--dy,0px)) scale(var(--ech,.4));
  transition:transform .8s cubic-bezier(.65,0,.35,1), opacity .55s ease .2s;
}
/* Le contenu de la couverture se révèle à la fin de l'intro */
.cover-content{transition:opacity .8s ease .15s, transform .8s cubic-bezier(.2,.7,.3,1) .15s;}
.cover-scroll{transition:opacity .6s ease .55s;}
body.chargement .cover-content{opacity:0;transform:translateY(18px);}
body.chargement .cover-scroll{opacity:0;}
.preloader-logo.anime{opacity:1;}
.preloader-logo .jaune{--teinte:#f7c64f;}
.preloader-logo .point{--teinte:var(--ink);}
.preloader-logo path,
.preloader-logo rect{
  --retard:0s;
  fill:var(--teinte);fill-opacity:0;
  /* tracé en sombre puis rempli : le trait reste lisible sur le fond blanc */
  stroke:var(--ink);stroke-width:.8;stroke-linejoin:round;
}
.preloader-logo.anime path,
.preloader-logo.anime rect{
  animation:preloaderTrace .55s ease forwards,
            preloaderRemplir .45s ease forwards;
  animation-delay:var(--retard), calc(var(--retard) + .35s);
}
@keyframes preloaderTrace{to{stroke-dashoffset:0;}}
@keyframes preloaderRemplir{to{fill-opacity:1;stroke-opacity:0;}}
body.chargement{overflow:hidden;}
@media (prefers-reduced-motion:reduce){
  .preloader{display:none;}
}

/* ---------- COVER (page de couverture, transition en fondu) ---------- */
.cover{
  position:fixed;top:0;left:0;width:100%;
  height:100vh;
  min-height:520px;
  z-index:1;
  pointer-events:none;
  display:flex;align-items:center;justify-content:center;
  background-color:#111116;
  background-image:repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px);
  overflow:hidden;
}
.cover-fade-spacer{height:130vh;}
.cover::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.72));
}
.cover-bg{position:absolute;inset:0;z-index:0;overflow:hidden;}
.cover-bg-slide{
  position:absolute;inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  image-rendering:auto;
  opacity:0;
  transition:opacity 1.6s ease;
}
.cover-bg-slide.active{opacity:1;}
.cover-content{position:relative;z-index:2;text-align:center;color:#fff;}
.cover-logo{
  display:inline-flex;align-items:center;justify-content:center;
  margin:0 auto 22px;
}
.cover-logo svg{height:40px;width:auto;display:block;}
.logo-light path:not(.cls-1),
.logo-light rect:not(.cls-1),
.logo-light circle:not(.cls-1){fill:#fff;}
.cover-name{
  font-family:'Poppins',sans-serif;font-weight:800;
  font-size:clamp(2.2rem,6vw,4.2rem);letter-spacing:-0.02em;
}
.cover-sub{margin-top:12px;font-size:1.05rem;font-weight:500;color:rgba(255,255,255,0.85);}
.cover-scroll{
  position:absolute;bottom:30px;left:50%;transform:translateX(-50%);
  color:rgba(255,255,255,0.75);font-size:0.78rem;font-weight:500;
  display:flex;flex-direction:column;align-items:center;gap:8px;z-index:2;
}
.cover-scroll .arrow{width:1px;height:28px;background:rgba(255,255,255,0.4);position:relative;overflow:hidden;}
.cover-scroll .arrow::after{
  content:'';position:absolute;top:-100%;left:0;width:100%;height:100%;background:#fff;
  animation:scrollDown 1.8s infinite;
}
@keyframes scrollDown{0%{top:-100%;}100%{top:100%;}}
@media (prefers-reduced-motion: reduce){
  .cover-scroll .arrow::after{animation:none;}
}

/* ---------- SITE CONTENT (apparaît derrière la couverture qui s'estompe) ---------- */
.site-content{
  position:relative;
  background:var(--paper);
}

/* ---------- HEADER ---------- */
header.site-header{
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:10;
  background:var(--paper);
}
.logo-swap{position:relative;display:inline-block;height:26px;width:90px;flex:0 0 auto;}
.logo-swap img.logo-img{
  position:absolute;left:0;top:0;height:26px;width:auto;
  transition:opacity .35s ease;
}
.logo-swap img.logo-mark{opacity:0;}
.logo-swap.scrolled img.logo-full{opacity:0;}
.logo-swap.scrolled img.logo-mark{opacity:1;}
.header-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:24px 0;gap:24px;flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:12px;}
.brand img.logo-img{height:26px;width:auto;display:block;}
.brand-name{
  font-family:'Poppins',sans-serif;font-weight:700;font-size:1.15rem;
  letter-spacing:-0.01em;
}
.brand-sub{
  display:block;font-family:'Inter',sans-serif;font-weight:500;
  font-size:0.75rem;color:var(--graphite-dark);letter-spacing:0;margin-top:1px;
}
.tabs{display:flex;gap:28px;}
/* Sur petit écran, les onglets passent à la ligne au lieu d'être comprimés */
@media (max-width:560px){
  .tabs{flex-wrap:wrap;gap:12px 20px;}
}
.tab{
  white-space:nowrap;
  background:none;border:none;cursor:pointer;
  font-size:1rem;color:var(--graphite);font-weight:500;
  padding:6px 0;border-bottom:2px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.tab:hover{color:#f7c64f;}
.tab.active{color:var(--ink);font-weight:600;border-color:var(--orange);}

/* ---------- GALLERY ---------- */
.gallery-section{padding:6px 0 0;margin-bottom:20px;}
.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px;
  margin-top:6px;
}
.tile{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  display:block;
}
.tile-visual{
  position:relative;
  width:100%;height:100%;
  background-color:var(--attente);
  display:flex;align-items:center;justify-content:center;
  transition:transform .25s ease;
}
.tile-img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 25%;display:block;
}
.tile:hover .tile-visual{transform:scale(1.02);}
.tile-overlay{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  text-align:center;padding:16px 16px 28px;
  background:rgba(15,15,18,0.55);
  opacity:0;transition:opacity .2s ease;
  z-index:2;
}
.tile:hover .tile-overlay{opacity:1;}
.tile-overlay h3{color:#fff;font-size:1.5rem;margin:0;}
.tile-overlay span{color:rgba(255,255,255,0.85);font-size:0.9rem;font-weight:500;margin-top:8px;}

@media (max-width:860px){
  .gallery{grid-template-columns:repeat(2,1fr);}
  .brand{padding-left:8px;}
}

main{position:relative;}

.croquis-heading{position:relative;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;hyphens:none;}
.txt{position:relative;z-index:2;color:var(--ink);}
.letter-o{
  position:relative;
  display:inline-block;
  width:1.8em;height:1.8em;
  background:#f7c64f;
  border-radius:50%;
  vertical-align:-0.5em;
  margin:0 -0.5em;
  z-index:1;
}

.contact-band{
  background:var(--yellow-light);
  width:100%;
  padding:0;
  position:relative;
  overflow:hidden;
  min-height:100vh;
}
.croquis-inner, .contact-inner{position:relative;z-index:1;}

/* ---------- SECTION HEADS ---------- */
section{padding:88px 0;}
.section-head{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:24px;margin-bottom:52px;flex-wrap:wrap;
}
.section-head h2{font-size:clamp(2.4rem,5vw,3.4rem);letter-spacing:-0.01em;}
.section-head p{color:var(--graphite-dark);max-width:38ch;font-size:1rem;}

/* ---------- SKETCHBOOK ---------- */
.sketch-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
}
.sketch-tile{border:1px solid var(--line);}
.sketch-tile.sketch-wide{border:none;}
.sketch-tile.sketch-wide{grid-column:span 2;}
.sketch-tile.sketch-small{grid-column:span 1;}
.sketch-tile.sketch-noborder{border:none;}
.sketch-visual{
  aspect-ratio:1/1;
  background-color:var(--attente);
  position:relative;
}
.sketch-wide .sketch-visual{aspect-ratio:4/3;background:#fff;background-image:none;}
.sketch-wide .tile-img{object-fit:contain;object-position:center;background:#fff;}
.sketch-tile.sketch-plan{grid-column:span 1;border:none;align-self:start;}
.sketch-plan .sketch-visual{aspect-ratio:0.69;background:#fff;background-image:none;}
.sketch-plan .tile-img{object-fit:contain;object-position:center;background:#fff;}
.sketch-tile.sketch-newrow{grid-column-start:1;}
.sketch-caption{padding:10px 12px;font-size:0.82rem;color:var(--graphite-dark);}
/* Galerie carnet : formats d'origine respectés (colonnes masonry) */
.croquis-intro{max-width:760px;}
.croquis-intro p{margin:0 0 18px;font-size:0.95rem;color:var(--graphite-dark);line-height:1.6;}
.sketch-masonry{columns:3;column-gap:18px;}
.sketch-masonry .sketch-item{break-inside:avoid;margin:0 0 18px;display:block;}
.sketch-masonry .sketch-item img{width:100%;height:auto;display:block;background:#fff;}
@media (max-width:900px){.sketch-masonry{columns:2;}}
@media (max-width:560px){.sketch-masonry{columns:1;}}
@media (max-width:860px){.sketch-grid{grid-template-columns:repeat(2,1fr);}}

.about-section{padding-top:48px;padding-bottom:72px;}
.bottom-yellow-band{background:var(--yellow-light);width:100%;padding-top:24px;padding-bottom:24px;}
.bottom-yellow-band-footer{background:var(--yellow-light);}

/* ---------- CONTACT ---------- */
.croquis-inner, .contact-inner{position:relative;z-index:1;}
.croquis-inner{
  padding-top:160px;padding-bottom:160px;
  display:grid;grid-template-columns:1fr 1fr;align-items:center;
  min-height:100vh;align-content:center;
}
.croquis-inner .section-head{margin-bottom:0;display:block;max-width:34ch;grid-column:2;justify-self:center;}
/* Bouton « Voir le carnet », sous le texte du bandeau. Il reprend la pastille
   du CV ; fond encre pour ressortir sur le jaune clair du bandeau. */
/* Repère « Voir le carnet », posé sur la partie visible du rond.
   pointer-events:none : il ne doit pas voler le clic à l'image. */
/* Placé en bas à gauche de la partie visible du rond, sur le fond uni :
   posé au milieu, il se superposait au dessin. */
.sketch-cue{
  position:absolute;top:54%;right:300px;transform:translateY(-50%);
  z-index:3;pointer-events:none;
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
  padding:9px 15px 9px 12px;border-radius:100px;
  background:rgba(255,255,255,0.95);color:var(--ink);
  font-size:0.85rem;font-weight:600;line-height:1;
  box-shadow:0 2px 16px rgba(20,20,26,0.18);
  transition:background .2s ease;
}
.sketch-cue svg{width:14px;height:14px;flex:0 0 auto;}
@media (min-width:901px){ .sketch-cue{right:260px;top:74%;} }
.sketch-circle:hover .sketch-cue,
.sketch-circle:focus-visible .sketch-cue{background:#f7c64f;}
@media (prefers-reduced-motion:reduce){ .sketch-cue{transition:none;} }
.sketch-circle{
  position:absolute;left:-440px;top:50%;transform:translateY(-50%);
  width:900px;height:900px;border-radius:50%;
  background:#fefefe;
  z-index:0;
  display:block;
  overflow:hidden;
  transition:background .2s ease;
}
.sketch-circle:hover{background:#f7c64f;}
/* Le bandeau fait la hauteur de l'écran : le rond suit, pour continuer à
   déborder en haut et en bas. On garde 460px de rond visibles à droite. */
@media (min-width:901px){
  .sketch-circle{
    --diametre:max(900px, 108vh);
    width:var(--diametre);height:var(--diametre);
    left:calc(460px - var(--diametre));
  }
}
/* Voile sombre au survol, comme sur les tuiles de projet */
.sketch-circle::after{
  content:'';position:absolute;inset:0;
  background:rgba(15,15,18,0.55);
  opacity:0;transition:opacity .2s ease;
  z-index:2;pointer-events:none;
}
.sketch-circle:hover::after,
.sketch-circle:focus-visible::after{opacity:1;}
/* En une colonne, le rond passe derrière le titre et le texte :
   on les éclaircit pendant le survol pour qu'ils restent lisibles. */
@media (max-width:900px){
  .croquis-inner:has(.sketch-circle:hover) .section-head .txt,
  .croquis-inner:has(.sketch-circle:focus-visible) .section-head .txt,
  .croquis-inner:has(.sketch-circle:hover) .section-head p,
  .croquis-inner:has(.sketch-circle:focus-visible) .section-head p{
    color:#fff;transition:color .2s ease;
  }
}
.sketch-circle .tile-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;transform:scale(1.25);transform-origin:74% 44%;transition:opacity 0.3s ease;}
.contact-inner{
  padding-top:24px;padding-bottom:0;
  display:flex;flex-direction:column;align-items:flex-start;text-align:left;
}
.about-header{
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:64px;flex-wrap:wrap;
}
.about-text{flex:1 1 340px;min-width:260px;}
.about-photo{
  flex:0 0 auto;width:260px;height:260px;
  border-radius:0;overflow:hidden;background:var(--attente);
}
/* Côte à côte : la photo prend la hauteur du texte voisin.
   Une fois les blocs empilés, elle retrouve son format carré. */
@media (min-width:760px){
  .about-header{align-items:stretch;}
  .about-photo{height:auto;min-height:260px;}
}
.about-photo img{width:100%;height:100%;object-fit:cover;object-position:center 12%;display:block;}

/* Même traitement que « Carnet de croquis » : grand titre au rond jaune.
   Partagé par « À propos » et « Contact » pour qu'ils ne divergent pas. */
.about-heading,
.contact-heading{
  position:relative;white-space:nowrap;
  font-size:clamp(2.4rem,5vw,3.4rem);letter-spacing:-0.01em;
}
.about-lead{
  margin:36px 0 0;max-width:56ch;
  font-size:1.05rem;font-weight:600;line-height:1.6;color:var(--ink);
}
.contact-bio{margin-top:32px;max-width:56ch;color:var(--graphite-dark);font-size:1.05rem;line-height:1.75;}

.about-col{margin-top:48px;}
.about-experiences{margin-top:120px;}
.about-competences{margin-top:120px;}
.about-col h3{
  position:relative;z-index:1;
  font-family:'Poppins',sans-serif;font-weight:800;font-size:clamp(1.8rem,4vw,2.6rem);
  color:var(--ink);margin:0 0 28px;
  display:inline-block;
}
.about-col h3::before{
  content:'';position:absolute;
  left:-30px;top:50%;transform:translateY(-50%);
  width:80px;height:80px;border-radius:50%;
  background:#f5b942;
  z-index:-1;
}
.about-col p{margin:0 0 18px;font-size:0.95rem;color:var(--graphite-dark);line-height:1.6;}
.about-col p strong{color:var(--ink);}

.timeline{position:relative;display:flex;flex-direction:column;gap:22px;}
.timeline-dotted .timeline-item{position:relative;padding-left:30px;}
.timeline-dotted .timeline-dot{display:block;}
.timeline-connector{width:2px;background:var(--line);position:absolute;left:7px;z-index:0;}
.timeline-dot{
  position:absolute;left:0;top:2px;
  display:block;width:16px;height:16px;border-radius:50%;
  background:#f7c64f;border:3px solid var(--yellow-light);
}
.timeline-content strong{display:block;font-size:0.95rem;color:var(--ink);margin-bottom:4px;}
.timeline-content span{display:block;margin-left:16px;font-size:0.85rem;color:var(--graphite-dark);}

/* Parcours : 3 colonnes côte à côte sur ordinateur, empilées sur mobile */
@media (min-width:900px){
  .bottom-yellow-band .wrap{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:40px 40px;align-items:start;
  }
  .bottom-yellow-band .about-col,
  .bottom-yellow-band .about-experiences,
  .bottom-yellow-band .about-competences{margin-top:16px;}
  .bottom-yellow-band .contact-card{grid-column:1 / -1;margin-top:8px;}
  /* titres ajustés à la largeur d'une colonne, pour qu'ils tiennent sur une ligne */
  .bottom-yellow-band .about-col h3{font-size:clamp(1.5rem,2.2vw,2.2rem);margin-bottom:24px;}
  .bottom-yellow-band .about-col h3::before{width:62px;height:62px;left:-22px;}
}
@media (max-width:899px){
  .bottom-yellow-band .about-experiences,
  .bottom-yellow-band .about-competences{margin-top:56px;}
}

.contact-card{margin-top:48px;border-top:2px solid var(--ink);padding-top:16px;}
.contact-heading{margin:0 0 20px;}
/* Dans la bande jaune, le titre s'adapte à la densité de la section,
   comme les titres des trois colonnes, pour que tout tienne sur un écran. */
.bottom-yellow-band .contact-heading{
  font-size:clamp(1.8rem,2.8vw,2.6rem);margin-bottom:16px;
}
/* Mail, LinkedIn et Localisation : empilés sur mobile, sur une seule ligne
   dès que le parcours passe lui aussi en trois colonnes (même seuil) */
.contact-details{
  display:grid;grid-template-columns:1fr;
  gap:18px;align-items:start;margin-top:0;
}
@media (min-width:900px){
  .contact-details{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
}
.contact-details .detail-label{
  display:block;font-size:0.76rem;color:var(--graphite-dark);
  margin-bottom:6px;text-transform:uppercase;letter-spacing:0.05em;
}
.contact-details a, .contact-details span{font-size:1rem;font-weight:600;color:var(--ink);line-height:1.5;}
.contact-details a{transition:color .15s ease;}
.contact-details a:hover{color:#f7c64f;}
/* CV sous l'adresse mail : pastille jaune de la charte, le rond reprend
   le motif des points du parcours. Mêmes durées que les autres liens. */
.contact-mail{display:flex;flex-direction:column;align-items:flex-start;}
.cv-link{
  display:inline-flex;align-items:center;gap:9px;
  justify-self:start;   /* évite que la pastille s'étire sur toute la colonne */
  padding:9px 16px 9px 10px;
  background:#f7c64f;border-radius:100px;
  font-size:0.9rem;line-height:1.2;
  transition:background .15s ease, color .15s ease;
}
.cv-rond{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;flex:0 0 auto;
  border-radius:50%;background:var(--paper);color:var(--ink);
  transition:background .15s ease, color .15s ease;
}
.cv-rond svg{width:14px;height:14px;display:block;}
.cv-format{color:var(--graphite-dark);font-weight:500;transition:color .15s ease;}
.contact-details .cv-link:hover,
.contact-details .cv-link:focus-visible{background:var(--ink);color:var(--paper);}
.cv-link:hover .cv-rond,
.cv-link:focus-visible .cv-rond{background:#f7c64f;}
.cv-link:hover .cv-format,
.cv-link:focus-visible .cv-format{color:rgba(255,255,255,0.7);}
@media (prefers-reduced-motion:reduce){
  .cv-link,.cv-rond,.cv-format{transition:none;}
}
section:focus{outline:none;}
.btn{
  display:inline-block;background:var(--lime);color:var(--ink);
  padding:12px 22px;border-radius:100px;font-weight:600;font-size:0.9rem;
  transition:background .15s ease, color .15s ease;
}
.btn:hover{background:var(--orange);color:var(--paper);}

footer.site-footer{padding:36px 0 56px;}
/* Pied de page de l'accueil : resserré pour tenir sur le même écran
   que le parcours et les coordonnées, sans défilement supplémentaire. */
footer.bottom-yellow-band-footer{padding:20px 0 24px;}
footer.site-footer a:hover{color:#f7c64f;}
.foot-row{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:12px;
  font-size:0.85rem;color:var(--graphite-dark);
  border-top:1px solid var(--line);padding-top:22px;
}

/* ---------- PROJECT DETAIL PAGE ---------- */
.back-link{
  display:inline-flex;align-items:center;gap:8px;
  font-size:0.9rem;font-weight:600;color:var(--graphite-dark);
  margin:32px 0 8px;
  transition:color .15s ease;
}
.back-link:hover{color:#f7c64f;}
.project-cover-top{
  margin-top:24px;aspect-ratio:16/9;
}
.project-hero.project-hero-plain{
  background:none;border-radius:0;padding:0;margin-top:40px;overflow:visible;
}
.project-hero.project-hero-plain::before{display:none;}
.project-hero.project-hero-plain h1{color:var(--ink);position:relative;z-index:1;display:inline-block;}
.project-hero.project-hero-plain h1::before{
  content:'';position:absolute;
  left:-30px;top:50%;transform:translateY(-50%);
  width:90px;height:90px;border-radius:50%;
  background:#f5b942;
  z-index:-1;
}
.project-sketches h2{
  position:relative;z-index:1;display:inline-block;
}
.project-sketches h2::before{
  content:'';position:absolute;
  left:-30px;top:50%;transform:translateY(-50%);
  width:80px;height:80px;border-radius:50%;
  background:#f5b942;
  z-index:-1;
}
.project-hero.project-hero-plain .project-meta{color:var(--graphite-dark);}
.project-hero.project-hero-plain .project-meta strong{color:var(--ink);}
.project-hero.project-hero-plain .project-tagline{color:var(--graphite-dark);}
.project-sketches{margin-top:96px;}
.project-sketches .sketch-grid{margin-top:0;}
.project-sketches .section-head{display:block;margin-bottom:32px;}
.project-sketches-caption{margin-top:22px;color:var(--graphite-dark);font-size:0.95rem;}

.project-hero{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg, #FFDCA8, #FFF3D9);
  border-radius:24px;
  padding:64px 40px 88px;
  margin-top:24px;
}
.project-hero::before{
  content:'';position:absolute;
  right:8%;top:-12%;
  width:220px;height:280px;
  background:linear-gradient(160deg, var(--orange), #ffb570);
  border-radius:110px 110px 0 0;
  z-index:0;
}
.project-hero h1, .project-hero .project-meta{position:relative;z-index:1;}
.project-hero h1{color:#fff;}
.project-hero .project-meta{color:rgba(255,255,255,0.9);}
.project-hero .project-meta strong{color:#fff;}
.project-tagline{
  position:relative;z-index:1;
  font-style:normal;font-weight:700;color:rgba(255,255,255,0.95);
  margin-top:34px;font-size:1.15rem;
}
.project-hero h1{font-size:clamp(2rem,5vw,3.2rem);max-width:20ch;letter-spacing:-0.01em;}
.project-hero h1.title-oneline{max-width:none;white-space:nowrap;font-size:clamp(1.4rem,3.6vw,3.2rem);}
@media (max-width:900px){
  .project-hero h1.title-oneline{white-space:normal;max-width:20ch;font-size:clamp(1.6rem,5vw,2.4rem);}
  .croquis-inner{grid-template-columns:1fr;padding-top:64px;padding-bottom:360px;}
  .croquis-inner .section-head{grid-column:1;justify-self:start;text-align:left;order:-1;margin-bottom:32px;position:relative;z-index:5;}
  .croquis-inner .section-head p{text-align:left;}
  .croquis-inner .sketch-circle{top:auto;bottom:-300px;transform:none;}
  .croquis-inner .sketch-circle .tile-img{transform:none;}
}
.project-meta{
  display:flex;gap:22px;flex-wrap:wrap;margin-top:18px;
  font-size:0.9rem;color:var(--graphite-dark);
}
.project-meta strong{color:var(--ink);font-weight:600;}
.project-cover{
  margin-top:36px;aspect-ratio:16/9;
  background-color:var(--attente);
  position:relative;
}
.project-body{
  display:grid;grid-template-columns:2fr 1fr;gap:48px;
  padding-top:56px;
}
.project-description p{color:var(--graphite-dark);font-size:1.05rem;max-width:60ch;margin:0 0 20px;line-height:1.6;}
.project-description p:last-child{margin-bottom:0;}
.project-specs{border-top:2px solid var(--ink);padding-top:20px;height:max-content;}
.project-specs .detail-block{margin-top:16px;}
.project-specs .detail-block:first-child{margin-top:0;}
.project-specs .detail-label{
  display:block;font-size:0.78rem;color:var(--graphite);
  text-transform:uppercase;letter-spacing:0.05em;margin-bottom:4px;
}
.project-specs .detail-block > span:last-child{display:block;font-weight:600;font-size:0.95rem;color:var(--ink);}
.project-gallery{
  display:grid;grid-template-columns:repeat(2,1fr);gap:16px;padding-top:56px;
}
.project-gallery .tile-visual{aspect-ratio:3/4;}
.project-gallery.gallery-landscape .tile-visual{aspect-ratio:4/3;}
.project-gallery.gallery-3col{grid-template-columns:repeat(3,1fr);}
.project-gallery .tile-visual.tile-wide{aspect-ratio:4/3;background:#fff;}
@media (max-width:800px){
  .project-body{grid-template-columns:1fr;}
  .project-gallery{grid-template-columns:1fr;}
}
.project-nav{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:16px;
  padding-top:64px;
  border-top:1px solid var(--line);margin-top:24px;
  font-size:0.95rem;font-weight:600;
}
.project-nav a{color:var(--graphite-dark);transition:color .15s ease;}
.project-nav a:focus:not(:hover){color:var(--graphite-dark);}
.project-nav a:focus{outline:none;}
.project-nav a:first-child{text-align:left;justify-self:start;}
.project-nav a.project-nav-all{text-align:center;justify-self:center;}
.project-nav a:last-child{text-align:right;justify-self:end;}
.project-nav a:hover{color:#f7c64f;}
.project-nav .nav-label{display:block;font-size:0.8rem;font-weight:500;color:var(--graphite-dark);}
.project-nav .nav-title{display:block;margin-top:4px;font-size:1rem;font-weight:600;color:var(--ink);}
.project-nav a:hover .nav-label,
.project-nav a:hover .nav-title{color:#f7c64f;}
.project-nav a.is-hidden{visibility:hidden;}
/* Sur mobile : deux cartes empilées, plus faciles à toucher */
@media (max-width:700px){
  .project-nav{grid-template-columns:1fr;gap:12px;padding-top:40px;}
  .project-nav a:first-child,
  .project-nav a:last-child{justify-self:stretch;}
  .project-nav #pPrev, .project-nav #pNext{
    border:1px solid var(--line);border-radius:10px;padding:14px 16px;
  }
  .project-nav .project-nav-all{order:3;justify-self:center;padding-top:4px;}
  .project-nav a.is-hidden{display:none;}
}

:focus-visible{outline:2px solid var(--cobalt);outline-offset:3px;}
