/* ==========================================================================
   PETROS INTERNATIONAL — Feuille de style principale
   Direction : coupe sismique / jauge de profondeur
   ========================================================================== */

/* --- 1. Jetons de conception ------------------------------------------- */
:root{
  /* Palette */
  --ink:        #08110F;
  --ink-2:      #0E1D19;
  --ink-3:      #142A24;
  --petrol:     #123A31;
  --petrol-mid: #1B5546;
  --petrol-up:  #2A7A64;
  --brass:      #C08A2E;
  --brass-up:   #E0B461;
  --brass-dim:  #8A6220;
  --laterite:   #A24A24;
  --paper:      #F7F4ED;
  --sand:       #EDE7DA;
  --sand-2:     #DCD3C1;
  --sand-3:     #C3B9A3;

  /* Rôles */
  --bg:          var(--paper);
  --fg:          var(--ink);
  --fg-soft:     #40514B;
  --fg-mute:     #6B7A74;
  --rule:        rgba(8,17,15,.14);
  --rule-strong: rgba(8,17,15,.28);

  /* Typographie */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --t-xs:  .75rem;
  --t-sm:  .875rem;
  --t-base: 1.0625rem;
  --t-md:  1.1875rem;
  --t-lg:  1.4375rem;
  --t-xl:  1.875rem;
  --t-2xl: 2.5rem;
  --t-3xl: clamp(2.1rem, 3.9vw, 3.25rem);
  --t-4xl: clamp(2.4rem, 4.7vw, 4.15rem);

  /* Mesures */
  --shell: 1320px;
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --rail: 74px;
  --header-h: 76px;

  /* Mouvement */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-strata: cubic-bezier(.76,0,.24,1);
}

/* --- 2. Réinitialisation ------------------------------------------------ */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--serif);
  font-size:var(--t-base);
  line-height:1.72;
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg,video{ max-width:100%; display:block; }
a{ color:inherit; }
button{ font:inherit; color:inherit; }
h1,h2,h3,h4,h5{ font-family:var(--sans); font-weight:700; line-height:1.06; letter-spacing:-.022em; margin:0; }
p{ margin:0 0 1.15em; }
ul{ margin:0; padding:0; list-style:none; }

::selection{ background:var(--brass); color:var(--ink); }

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

/* --- 3. Utilitaires de mise en page ------------------------------------- */
.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--gut);
}
.shell--tight{ max-width:960px; }
.prose{ max-width:66ch; }
.prose p{ color:var(--fg-soft); }
.lede{ font-size:var(--t-md); line-height:1.66; color:var(--fg-soft); max-width:60ch; }

.section{ padding-block:clamp(4rem,9vw,7.5rem); position:relative; }
.section--tight{ padding-block:clamp(3rem,6vw,5rem); }
.section--dark{ background:var(--ink); color:var(--sand); }
.section--dark p{ color:rgba(237,231,218,.74); }
.section--petrol{ background:var(--petrol); color:var(--sand); }
.section--sand{ background:var(--sand); }

.rule{ height:1px; background:var(--rule); border:0; margin:0; }

/* Titre de section : marqueur de strate + intitulé */
.sec-head{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.1rem;
  margin-bottom:clamp(2rem,4vw,3.25rem);
}
.sec-head__mark{
  display:flex; align-items:center; gap:.9rem;
  font-family:var(--sans);
  font-size:var(--t-xs);
  font-weight:600;
  letter-spacing:.14em;
  color:var(--brass-dim);
  font-variation-settings:"wdth" 112;
}
.section--dark .sec-head__mark,
.section--petrol .sec-head__mark{ color:var(--brass-up); }
.sec-head__mark::after{
  content:""; flex:1; height:1px; max-width:180px;
  background:linear-gradient(90deg, currentColor, transparent);
  opacity:.5;
}
.sec-head h2{
  font-size:var(--t-2xl);
  font-variation-settings:"wdth" 108;
  max-width:20ch;
}
.sec-head p{ max-width:58ch; color:var(--fg-soft); margin:0; }
.section--dark .sec-head p{ color:rgba(237,231,218,.72); }

/* --- 4. Préchargeur ----------------------------------------------------- */
#preloader{
  position:fixed; inset:0; z-index:9999;
  background:var(--ink);
  display:grid; place-items:center;
  transition:opacity .5s var(--ease), visibility .5s;
}
#preloader.done{ opacity:0; visibility:hidden; }
.pre-inner{ width:min(420px, 78vw); text-align:center; }
.pre-log{ width:100%; height:104px; overflow:visible; }
.pre-log path{
  fill:none; stroke:var(--brass); stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round;
}
.pre-log .trace{
  stroke-dasharray:var(--len,1400);
  stroke-dashoffset:var(--len,1400);
  animation:trace 2.1s var(--ease) forwards;
}
.pre-log .strata{ stroke:rgba(237,231,218,.2); stroke-width:1; }
@keyframes trace{ to{ stroke-dashoffset:0; } }

.pre-word{
  font-family:var(--sans);
  font-weight:800;
  font-size:clamp(1.6rem,5vw,2.35rem);
  letter-spacing:.26em;
  color:var(--sand);
  font-variation-settings:"wdth" 118;
  margin-top:1.4rem;
  display:flex; justify-content:center;
}
.pre-word span{
  opacity:0; transform:translateY(14px);
  animation:preLetter .62s var(--ease) forwards;
}
@keyframes preLetter{ to{ opacity:1; transform:none; } }

.pre-bar{
  margin:1.5rem auto 0; width:100%; height:2px;
  background:rgba(237,231,218,.16); overflow:hidden;
}
.pre-bar i{
  display:block; height:100%; width:0; background:var(--brass);
  animation:preBar 2.3s var(--ease-strata) forwards;
}
@keyframes preBar{ to{ width:100%; } }
.pre-depth{
  font-family:var(--sans); font-size:var(--t-xs); letter-spacing:.2em;
  color:rgba(237,231,218,.45); margin-top:.85rem;
}

/* --- 5. Transition de page (balayage de strates) ------------------------ */
#wipe{
  position:fixed; inset:0; z-index:9500; pointer-events:none;
  display:grid; grid-template-rows:repeat(6,1fr);
}
#wipe i{
  display:block; background:var(--ink);
  transform:scaleX(0); transform-origin:left center;
}
#wipe i:nth-child(even){ background:var(--ink-2); }
#wipe.in i{ animation:wipeIn .58s var(--ease-strata) forwards; }
#wipe.out i{ transform:scaleX(1); transform-origin:right center; animation:wipeOut .6s var(--ease-strata) forwards; }
#wipe.in i:nth-child(1),#wipe.out i:nth-child(1){ animation-delay:0ms; }
#wipe.in i:nth-child(2),#wipe.out i:nth-child(2){ animation-delay:45ms; }
#wipe.in i:nth-child(3),#wipe.out i:nth-child(3){ animation-delay:90ms; }
#wipe.in i:nth-child(4),#wipe.out i:nth-child(4){ animation-delay:135ms; }
#wipe.in i:nth-child(5),#wipe.out i:nth-child(5){ animation-delay:180ms; }
#wipe.in i:nth-child(6),#wipe.out i:nth-child(6){ animation-delay:225ms; }
@keyframes wipeIn{ to{ transform:scaleX(1); } }
@keyframes wipeOut{ to{ transform:scaleX(0); } }

/* --- 6. En-tête et navigation ------------------------------------------- */
.site-head{
  position:fixed; top:0; left:0; right:0; z-index:900;
  height:var(--header-h);
  display:flex; align-items:center;
  background:rgba(8,17,15,0);
  transition:background .4s var(--ease), height .4s var(--ease), border-color .4s;
  border-bottom:1px solid transparent;
}
.site-head.solid{
  background:rgba(8,17,15,.94);
  backdrop-filter:blur(14px) saturate(1.2);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);
  border-bottom-color:rgba(192,138,46,.22);
  height:64px;
}
.site-head.hide{ transform:translateY(-100%); transition:transform .4s var(--ease); }
.head-in{
  width:100%; max-width:var(--shell); margin-inline:auto;
  padding-inline:var(--gut);
  display:flex; align-items:center; gap:2rem;
}

/* Logotype */
.brand{ display:flex; align-items:center; gap:.72rem; text-decoration:none; flex-shrink:0; }
.brand__mark{ width:34px; height:34px; flex:none; }
.brand__mark path,.brand__mark line,.brand__mark circle{ stroke:var(--brass); }
.brand__txt{ display:flex; flex-direction:column; line-height:1; }
.brand__name{
  font-family:var(--sans); font-weight:800; font-size:1.06rem;
  letter-spacing:.17em; color:var(--sand);
  font-variation-settings:"wdth" 116;
}
.brand__sub{
  font-family:var(--sans); font-size:.545rem; font-weight:500;
  letter-spacing:.28em; color:var(--brass); margin-top:5px;
}

/* Menu */
.nav{ margin-left:auto; display:flex; align-items:center; gap:.15rem; }
.nav__item{ position:relative; }
.nav__link{
  display:inline-flex; align-items:center; gap:.4rem;
  font-family:var(--sans); font-size:.775rem; font-weight:600;
  letter-spacing:.085em; text-decoration:none;
  color:rgba(237,231,218,.82);
  padding:.7rem .72rem; border-radius:2px;
  transition:color .25s var(--ease);
  white-space:nowrap;
}
.nav__link:hover,.nav__item:focus-within>.nav__link{ color:var(--brass-up); }
.nav__link[aria-current]{ color:var(--brass); }
.nav__link[aria-current]::after{
  content:""; position:absolute; left:.72rem; right:.72rem; bottom:.34rem;
  height:1px; background:var(--brass);
}
.nav__caret{ width:7px; height:7px; opacity:.55; transition:transform .28s var(--ease); }
.nav__item:hover .nav__caret{ transform:rotate(180deg); }

.nav__panel{
  position:absolute; top:calc(100% + 4px); left:-.2rem;
  min-width:246px; padding:.55rem;
  background:rgba(10,26,22,.985);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(192,138,46,.24);
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel{ opacity:1; visibility:visible; transform:none; }
.nav__panel a{
  display:flex; align-items:baseline; gap:.6rem;
  padding:.58rem .7rem; text-decoration:none;
  font-family:var(--sans); font-size:.8rem; font-weight:500;
  color:rgba(237,231,218,.8);
  border-left:2px solid transparent;
  transition:background .2s, color .2s, border-color .2s;
}
.nav__panel a:hover{ background:rgba(192,138,46,.1); color:var(--sand); border-left-color:var(--brass); }
.nav__panel a i{
  font-style:normal; font-size:.62rem; color:var(--brass-dim);
  font-variant-numeric:tabular-nums; min-width:1.4em;
}

.head-cta{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:var(--sans); font-size:.775rem; font-weight:700;
  letter-spacing:.07em; text-decoration:none;
  color:var(--ink); background:var(--brass);
  padding:.62rem 1.1rem; margin-left:.6rem;
  transition:background .25s var(--ease), transform .25s var(--ease);
  white-space:nowrap;
}
.head-cta:hover{ background:var(--brass-up); transform:translateY(-1px); }

/* Bouton menu mobile */
.burger{
  display:none; margin-left:auto;
  width:44px; height:44px; background:none; border:1px solid rgba(237,231,218,.28);
  cursor:pointer; position:relative; padding:0;
}
.burger span{
  position:absolute; left:12px; right:12px; height:1.5px; background:var(--sand);
  transition:transform .35s var(--ease), opacity .2s;
}
.burger span:nth-child(1){ top:16px; }
.burger span:nth-child(2){ top:21.5px; }
.burger span:nth-child(3){ top:27px; }
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }

/* Panneau mobile */
.mobile-nav{
  position:fixed; inset:0; z-index:880;
  background:var(--ink); padding:calc(var(--header-h) + 1.5rem) var(--gut) 3rem;
  overflow-y:auto;
  clip-path:inset(0 0 100% 0);
  transition:clip-path .6s var(--ease-strata);
  visibility:hidden;
}
.mobile-nav.open{ clip-path:inset(0 0 0 0); visibility:visible; }
.mobile-nav h3{
  font-size:.7rem; letter-spacing:.2em; color:var(--brass);
  margin:1.8rem 0 .7rem; font-weight:600;
}
.mobile-nav a{
  display:block; text-decoration:none; color:var(--sand);
  font-family:var(--sans); font-size:1.02rem; font-weight:500;
  padding:.62rem 0; border-bottom:1px solid rgba(237,231,218,.09);
}
.mobile-nav a:hover{ color:var(--brass-up); }
.mobile-nav__solo{
  color:var(--brass) !important; font-weight:600 !important;
  display:flex !important; align-items:center; gap:.6rem;
  margin-top:1.6rem;
}
.mobile-nav__solo::before{ content:""; width:14px; height:1px; background:var(--brass); flex:none; }

/* --- 7. Bannière (strates sismiques) ------------------------------------ */
.hero{
  position:relative; overflow:hidden;
  background:var(--ink); color:var(--sand);
  padding-top:calc(var(--header-h) + clamp(3.5rem,7vw,6rem));
  padding-bottom:clamp(3.5rem,7vw,6rem);
  isolation:isolate;
}
.hero--home{
  min-height:min(92svh, 820px);
  display:flex; align-items:center;
  padding-top:calc(var(--header-h) + 3.5rem);
}
.hero__canvas{
  position:absolute; inset:0; z-index:-2; width:100%; height:100%;
  opacity:.95;
}
.hero__veil{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(62% 64% at 16% 50%, rgba(8,17,15,.96) 0%, rgba(8,17,15,.78) 46%, rgba(8,17,15,.18) 82%, rgba(8,17,15,.28) 100%),
    linear-gradient(180deg, rgba(8,17,15,.7) 0%, rgba(8,17,15,.1) 26%, rgba(8,17,15,.1) 62%, rgba(8,17,15,.92) 100%);
}
.hero__grid{
  position:absolute; inset:0; z-index:-1; opacity:.22;
  background-image:linear-gradient(90deg, rgba(237,231,218,.25) 1px, transparent 1px);
  background-size:clamp(70px,7vw,110px) 100%;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 25%,#000 75%,transparent);
  mask-image:linear-gradient(180deg,transparent,#000 25%,#000 75%,transparent);
}

.crumb{
  display:flex; flex-wrap:wrap; align-items:center; gap:.5rem;
  font-family:var(--sans); font-size:var(--t-xs); font-weight:500;
  letter-spacing:.1em; color:rgba(237,231,218,.5);
  margin-bottom:1.6rem;
}
.crumb a{ text-decoration:none; color:var(--brass); }
.crumb a:hover{ color:var(--brass-up); }
.crumb span{ opacity:.4; }

.hero h1{
  font-size:var(--t-3xl);
  font-variation-settings:"wdth" 106;
  max-width:19ch;
  margin-bottom:1.4rem;
}
.hero--home h1{
  font-size:var(--t-4xl);
  font-variation-settings:"wdth" 98;
  letter-spacing:-.032em;
  max-width:17ch;
  line-height:1.02;
}
.hero p{ color:rgba(237,231,218,.76); }
.hero .lede{ color:rgba(237,231,218,.78); }

.hero__eyebrow{
  font-family:var(--sans); font-weight:600; font-size:var(--t-sm);
  letter-spacing:.02em; color:var(--brass);
  margin-bottom:1.1rem; display:block;
}

/* Animation d'ouverture de bannière : révélation par strate */
.reveal-line{ display:block; overflow:hidden; }
.reveal-line > *{
  display:block;
  transform:translateY(105%);
  animation:lineUp .95s var(--ease-strata) forwards;
  animation-delay:var(--d,0ms);
}
@keyframes lineUp{ to{ transform:none; } }

.fade-up{
  opacity:0; transform:translateY(18px);
  animation:fadeUp .8s var(--ease) forwards;
  animation-delay:var(--d,0ms);
}
@keyframes fadeUp{ to{ opacity:1; transform:none; } }

/* --- 8. Boutons --------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:.7rem;
  font-family:var(--sans); font-weight:700; font-size:.83rem;
  letter-spacing:.055em; text-decoration:none;
  padding:.95rem 1.55rem;
  border:1px solid transparent;
  position:relative; overflow:hidden;
  transition:color .3s var(--ease), border-color .3s var(--ease);
  cursor:pointer;
}
.btn__ink{
  position:absolute; inset:0; z-index:0;
  transform:scaleY(0); transform-origin:bottom;
  transition:transform .42s var(--ease-strata);
}
.btn:hover .btn__ink{ transform:scaleY(1); }
.btn > span, .btn > svg{ position:relative; z-index:1; }
.btn svg{ width:16px; height:16px; flex:none; }

.btn--brass{ background:var(--brass); color:var(--ink); }
.btn--brass .btn__ink{ background:var(--sand); }
.btn--ghost{ border-color:rgba(237,231,218,.32); color:var(--sand); }
.btn--ghost .btn__ink{ background:var(--sand); }
.btn--ghost:hover{ color:var(--ink); border-color:var(--sand); }
.btn--ink{ border-color:var(--rule-strong); color:var(--ink); }
.btn--ink .btn__ink{ background:var(--ink); }
.btn--ink:hover{ color:var(--sand); border-color:var(--ink); }

.btn-row{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:2.2rem; }

/* --- 9. Jauge de profondeur (rail de défilement) ------------------------ */
.depth{
  position:fixed; right:0; top:0; bottom:0; width:var(--rail);
  z-index:800; pointer-events:none;
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:.6rem;
  mix-blend-mode:normal;
}
.depth__track{
  position:relative; width:1px; height:min(46vh,360px);
  background:var(--rule);
}
.site-head.solid ~ main .depth__track{ background:var(--rule); }
.depth__fill{
  position:absolute; top:0; left:-1px; width:3px; height:0;
  background:var(--brass);
  transition:height .12s linear;
}
.depth__ticks{ position:absolute; inset:0; }
.depth__ticks i{
  position:absolute; left:-6px; width:7px; height:1px;
  background:var(--rule-strong);
}
.depth__val{
  font-family:var(--sans); font-size:.62rem; font-weight:600;
  letter-spacing:.1em; color:var(--fg-mute);
  font-variant-numeric:tabular-nums;
  writing-mode:vertical-rl;
}
.depth__cap{
  font-family:var(--sans); font-size:.55rem; letter-spacing:.22em;
  color:var(--sand-3); writing-mode:vertical-rl;
}
body.on-dark .depth__track{ background:rgba(237,231,218,.18); }
body.on-dark .depth__ticks i{ background:rgba(237,231,218,.3); }
body.on-dark .depth__val{ color:rgba(237,231,218,.6); }
body.on-dark .depth__cap{ color:rgba(237,231,218,.3); }

/* --- 10. Piliers (accueil) ---------------------------------------------- */
.pillars{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  border-top:1px solid var(--rule);
  overflow:hidden;
}
.pillar{
  padding:2.1rem 1.6rem 2.4rem;
  border-bottom:1px solid var(--rule);
  border-right:1px solid var(--rule);
  position:relative;
  text-decoration:none; color:inherit;
  display:flex; flex-direction:column;
  transition:background .4s var(--ease);
}
.pillar:hover{ background:var(--sand); }
.pillar::before{
  content:""; position:absolute; top:-1px; left:0; right:0; height:2px;
  background:var(--brass); transform:scaleX(0); transform-origin:left;
  transition:transform .5s var(--ease-strata);
}
.pillar:hover::before{ transform:scaleX(1); }
.pillar__ico{ width:38px; height:38px; margin-bottom:1.3rem; }
.pillar__ico [stroke]{ stroke:var(--petrol); }
.pillar:hover .pillar__ico [stroke]{ stroke:var(--brass-dim); }
.pillar h3{
  font-size:1.02rem; margin-bottom:.6rem; letter-spacing:-.01em;
  font-variation-settings:"wdth" 104;
}
.pillar p{ font-size:.925rem; line-height:1.6; color:var(--fg-soft); margin:0; }
.pillar__go{
  margin-top:auto; padding-top:1.3rem;
  font-family:var(--sans); font-size:.68rem; font-weight:700;
  letter-spacing:.14em; color:var(--brass-dim);
  opacity:0; transform:translateY(6px);
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.pillar:hover .pillar__go{ opacity:1; transform:none; }

/* --- 11. Grilles de contenu --------------------------------------------- */
.split{
  display:grid; gap:clamp(2rem,5vw,4.5rem);
  grid-template-columns:minmax(0,1fr);
  align-items:start;
}
@media (min-width:900px){
  .split{ grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); }
  .split--even{ grid-template-columns:1fr 1fr; }
  .split--wide-left{ grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); }
}

.cards{
  display:grid; gap:1px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.card{
  background:var(--bg); padding:2rem 1.75rem;
  display:flex; flex-direction:column;
  box-shadow:0 0 0 1px var(--rule);
  transition:background .35s var(--ease), box-shadow .35s var(--ease);
  text-decoration:none; color:inherit;
  position:relative;
}
.section--sand .card{ background:var(--sand); }
.card:hover{ background:var(--ink); color:var(--sand); box-shadow:0 0 0 1px var(--ink); }
.card:hover p{ color:rgba(237,231,218,.72); }
.card:hover .card__ico [stroke]{ stroke:var(--brass); }

/* Cartes sur fond sombre */
.section--dark .card,
.section--petrol .card{ background:transparent; color:var(--sand); box-shadow:0 0 0 1px rgba(237,231,218,.17); }
.section--dark .card p,
.section--petrol .card p{ color:rgba(237,231,218,.7); }
.section--dark .card__ico [stroke],
.section--petrol .card__ico [stroke]{ stroke:var(--brass); }
.section--dark .card__idx,
.section--petrol .card__idx{ color:rgba(237,231,218,.4); }
.section--dark .card:hover,
.section--petrol .card:hover{ background:var(--brass); color:var(--ink); box-shadow:0 0 0 1px var(--brass); }
.section--dark .card:hover p,
.section--petrol .card:hover p{ color:rgba(8,17,15,.78); }
.section--dark .card:hover .card__ico [stroke],
.section--petrol .card:hover .card__ico [stroke]{ stroke:var(--ink); }
.section--dark .card:hover .card__idx,
.section--petrol .card:hover .card__idx{ color:rgba(8,17,15,.5); }
.card__ico{ width:34px; height:34px; margin-bottom:1.25rem; }
.card__ico [stroke]{ stroke:var(--petrol-mid); transition:stroke .35s; }
.card h3{ font-size:1.06rem; margin-bottom:.55rem; font-variation-settings:"wdth" 104; }
.card p{ font-size:.93rem; line-height:1.62; color:var(--fg-soft); margin:0; transition:color .35s; }
.card__idx{
  position:absolute; top:1.5rem; right:1.6rem;
  font-family:var(--sans); font-size:.66rem; font-weight:600;
  color:var(--sand-3); font-variant-numeric:tabular-nums;
}

/* Liste métier : filets fins, alignée à gauche */
.speclist{ border-top:1px solid var(--rule); }
.speclist li{
  display:flex; align-items:baseline; gap:1rem;
  padding:.72rem 0; border-bottom:1px solid var(--rule);
  font-family:var(--sans); font-size:.93rem; font-weight:500;
}
.speclist li::before{
  content:""; width:16px; height:1px; background:var(--brass); flex:none;
  transform:translateY(-4px);
}
.section--dark .speclist,.section--dark .speclist li,
.section--petrol .speclist,.section--petrol .speclist li{ border-color:rgba(237,231,218,.16); }

/* Colonnes de liste */
.cols-2{ columns:2; column-gap:2.5rem; }
@media (max-width:640px){ .cols-2{ columns:1; } }

/* --- 12. Chiffres ------------------------------------------------------- */
.figures{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:1px; background:rgba(237,231,218,.16);
  border-block:1px solid rgba(237,231,218,.16);
}
.figure{ background:var(--ink); padding:2.2rem 1.4rem; }
.section--petrol .figure{ background:var(--petrol); }
.figure__n{
  font-family:var(--sans); font-weight:800;
  font-size:clamp(2.4rem,5vw,3.6rem); line-height:1;
  color:var(--brass); font-variant-numeric:tabular-nums;
  font-variation-settings:"wdth" 96;
  display:flex; align-items:baseline;
}
.figure__n small{ font-size:.45em; margin-left:.12em; }
.figure__l{
  font-family:var(--sans); font-size:.775rem; font-weight:500;
  color:rgba(237,231,218,.66); margin-top:.75rem; line-height:1.4;
}

/* --- 13. Parcours en 6 étapes ------------------------------------------- */
.path{ display:grid; gap:0; counter-reset:step; }
.path__step{
  display:grid; grid-template-columns:auto 1fr; gap:1.5rem;
  padding:1.5rem 0; border-bottom:1px solid var(--rule);
  position:relative;
}
.path__step:first-child{ border-top:1px solid var(--rule); }
.path__n{
  counter-increment:step;
  font-family:var(--sans); font-weight:700; font-size:.8rem;
  width:38px; height:38px; flex:none;
  display:grid; place-items:center;
  border:1px solid var(--rule-strong); color:var(--brass-dim);
  transition:background .4s var(--ease), color .4s, border-color .4s;
}
.path__n::before{ content:counter(step,decimal-leading-zero); }
.path__step:hover .path__n{ background:var(--brass); color:var(--ink); border-color:var(--brass); }
.path__step h3{ font-size:1.05rem; margin-bottom:.3rem; }
.path__step p{ margin:0; font-size:.93rem; color:var(--fg-soft); }

/* --- 14. Citation / mot du DG ------------------------------------------- */
.quote{
  font-family:var(--serif); font-style:italic;
  font-size:clamp(1.35rem,2.8vw,2rem); line-height:1.44;
  letter-spacing:-.012em; color:var(--sand);
  max-width:24ch; margin:0;
}
.quote--ink{ color:var(--ink); }
.sig{
  font-family:var(--sans); margin-top:2rem;
  border-top:1px solid rgba(237,231,218,.2); padding-top:1.1rem;
}
.sig strong{ display:block; font-size:1rem; letter-spacing:.02em; }
.sig span{ font-size:.8rem; color:var(--brass); }

/* --- 15. Portrait / vignette média -------------------------------------- */
.portrait{
  position:relative; aspect-ratio:4/5; overflow:hidden;
  background:linear-gradient(160deg,var(--petrol),var(--ink));
  border:1px solid rgba(237,231,218,.14);
  display:grid; place-items:center;
}
.portrait svg{ width:100%; height:100%; }
.portrait--photo{
  display:block; background:var(--ink); margin:0;
  /* Bride a la largeur native du fichier : au-dela, l'image serait
     agrandie et perdrait en nettete. */
  max-width:450px;
}
.portrait--photo img{
  width:100%; height:100%; object-fit:cover; object-position:center 18%;
  display:block;
}
.foot-adresse{
  font-family:var(--sans); font-style:normal; font-size:.86rem; line-height:1.65;
  color:rgba(237,231,218,.66); margin-top:1.1rem;
}
.foot-adresse a{ color:rgba(237,231,218,.82); text-decoration:none;
  border-bottom:1px solid rgba(192,138,46,.5); }
.foot-adresse a:hover{ color:var(--brass-up); }

.portrait__tag{
  position:absolute; left:0; bottom:0; right:0;
  padding:1rem 1.2rem; background:rgba(8,17,15,.82);
  backdrop-filter:blur(8px);
  font-family:var(--sans); font-size:.76rem; color:var(--sand);
  border-top:1px solid rgba(192,138,46,.3);
}

/* --- 16. Formulaire ----------------------------------------------------- */
.form{ display:grid; gap:1.35rem; }
.field{ display:grid; gap:.45rem; }
.field label{
  font-family:var(--sans); font-size:.8rem; font-weight:600;
  letter-spacing:.06em; color:var(--fg-soft);
}
.field input,.field select,.field textarea{
  font-family:var(--serif); font-size:1rem;
  padding:.85rem .95rem;
  background:var(--bg); color:var(--fg);
  border:1px solid var(--rule-strong); border-radius:0;
  transition:border-color .25s, box-shadow .25s;
  width:100%;
}
.field textarea{ min-height:150px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--brass);
  box-shadow:0 0 0 3px rgba(192,138,46,.16);
}
.field-row{ display:grid; gap:1.35rem; grid-template-columns:1fr; }
@media (min-width:700px){ .field-row{ grid-template-columns:1fr 1fr; } }
.form-note{ font-size:.85rem; color:var(--fg-mute); }
.form-msg{
  padding:.9rem 1.1rem; border-left:3px solid var(--brass);
  background:var(--sand); font-size:.92rem; display:none;
}
.form-msg.show{ display:block; }

/* Coordonnées */
.contact-list{ border-top:1px solid var(--rule); }
.contact-list li{
  display:grid; grid-template-columns:110px 1fr; gap:1rem;
  padding:.95rem 0; border-bottom:1px solid var(--rule);
  align-items:baseline;
}
.contact-list dt,.contact-list .k{
  font-family:var(--sans); font-size:.79rem; font-weight:600;
  letter-spacing:.07em; color:var(--fg-soft);
}
.contact-list .v{ font-family:var(--sans); font-size:.98rem; }
.contact-list a{ text-decoration:none; border-bottom:1px solid var(--brass); }

/* --- 17. Bandeau d'appel ------------------------------------------------ */
.cta-band{
  position:relative; overflow:hidden;
  background:var(--petrol); color:var(--sand);
  padding-block:clamp(3.5rem,7vw,5.5rem);
}
.cta-band__strata{
  position:absolute; inset:0; opacity:.3; z-index:0;
}
.cta-band .shell{ position:relative; z-index:1; }
.cta-band h2{ font-size:var(--t-2xl); max-width:16ch; font-variation-settings:"wdth" 104; }
.cta-band p{ color:rgba(237,231,218,.76); max-width:52ch; }

/* --- 18. Pied de page --------------------------------------------------- */
.site-foot{ background:var(--ink); color:var(--sand); padding-top:clamp(3.5rem,6vw,5rem); }
.foot-top{
  display:grid; gap:2.5rem;
  grid-template-columns:minmax(0,1fr);
  padding-bottom:3rem; border-bottom:1px solid rgba(237,231,218,.14);
}
@media (min-width:900px){
  .foot-top{ grid-template-columns:1.25fr repeat(3,minmax(0,.9fr)); gap:3rem; }
}
.foot-blurb{ font-size:.95rem; color:rgba(237,231,218,.66); max-width:34ch; margin-top:1.2rem; }
.foot-col h4{
  font-size:.7rem; letter-spacing:.18em; color:var(--brass);
  margin-bottom:1.1rem; font-weight:600;
}
.foot-col a{
  display:block; text-decoration:none; font-family:var(--sans);
  font-size:.86rem; color:rgba(237,231,218,.72);
  padding:.34rem 0; transition:color .22s, padding-left .22s;
}
.foot-col a:hover{ color:var(--brass-up); padding-left:5px; }
.foot-bot{
  display:flex; flex-wrap:wrap; gap:1rem 2rem;
  justify-content:space-between; align-items:center;
  padding-block:1.6rem;
  font-family:var(--sans); font-size:.75rem; color:rgba(237,231,218,.45);
}
.foot-bot a{ color:rgba(237,231,218,.6); text-decoration:none; }
.foot-bot a:hover{ color:var(--brass-up); }
.socials{ display:flex; gap:.55rem; }
.socials a{
  width:36px; height:36px; display:grid; place-items:center;
  border:1px solid rgba(237,231,218,.2);
  transition:background .25s, border-color .25s;
}
.socials a:hover{ background:var(--brass); border-color:var(--brass); }
.socials svg{ width:15px; height:15px; }
.socials [stroke]{ stroke:rgba(237,231,218,.8); }
.socials a:hover [stroke]{ stroke:var(--ink); }
/* Réseaux sociaux sur fond clair */
.section .socials a{ border-color:var(--rule-strong); }
.section .socials [stroke]{ stroke:var(--petrol); }
.section .socials a:hover{ background:var(--brass); border-color:var(--brass); }
.section .socials a:hover [stroke]{ stroke:var(--ink); }
.section--dark .socials [stroke],
.section--petrol .socials [stroke]{ stroke:rgba(237,231,218,.8); }
.section--dark .socials a,
.section--petrol .socials a{ border-color:rgba(237,231,218,.2); }

/* --- 19. Bouton WhatsApp permanent -------------------------------------- */
.wa{
  position:fixed; right:18px; bottom:20px; z-index:850;
  width:54px; height:54px; border-radius:50%;
  background:var(--petrol-up); display:grid; place-items:center;
  box-shadow:0 10px 30px rgba(8,17,15,.35);
  transition:transform .3s var(--ease), background .3s;
}
.wa:hover{ transform:scale(1.07); background:var(--brass); }
.wa svg{ width:26px; height:26px; }
.wa [stroke]{ stroke:#fff; }
.wa::after{
  content:""; position:absolute; inset:0; border-radius:50%;
  border:1px solid var(--petrol-up); animation:pulse 2.6s ease-out infinite;
}
@keyframes pulse{ 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.6);opacity:0} }
@media (min-width:1100px){ .wa{ right:calc(var(--rail) + 8px); } }

/* --- 20. Révélations au défilement --------------------------------------- */
[data-reveal]{
  opacity:0;
  clip-path:inset(0 0 100% 0);
  transition:opacity .85s var(--ease), clip-path 1s var(--ease-strata), transform .9s var(--ease);
  transform:translateY(12px);
  transition-delay:var(--rd,0ms);
}
[data-reveal].is-in{ opacity:1; clip-path:inset(0 0 0 0); transform:none; }

/* --- 21. Bandeau défilant ----------------------------------------------- */
.ticker{
  overflow:hidden; border-block:1px solid var(--rule);
  padding-block:1.05rem; background:var(--sand);
}
.ticker__row{ display:flex; gap:3rem; width:max-content; animation:tick 46s linear infinite; }
.ticker:hover .ticker__row{ animation-play-state:paused; }
.ticker span{
  font-family:var(--sans); font-size:.83rem; font-weight:600;
  letter-spacing:.09em; color:var(--petrol);
  display:flex; align-items:center; gap:3rem; white-space:nowrap;
}
.ticker span::after{ content:""; width:5px; height:5px; background:var(--brass); }
@keyframes tick{ to{ transform:translateX(-50%); } }

/* --- 22. Divers ---------------------------------------------------------- */
.tag{
  display:inline-flex; align-items:center; gap:.45rem;
  font-family:var(--sans); font-size:.68rem; font-weight:600;
  letter-spacing:.1em; padding:.32rem .6rem;
  border:1px solid var(--rule-strong); color:var(--fg-mute);
}
.section--dark .tag{ border-color:rgba(237,231,218,.24); color:rgba(237,231,218,.65); }
.tag--brass{ border-color:var(--brass); color:var(--brass-dim); }

.note{
  border-left:2px solid var(--brass); padding:.2rem 0 .2rem 1.15rem;
  font-size:.92rem; color:var(--fg-mute); font-style:italic;
}

.mono-n{ font-variant-numeric:tabular-nums; }

/* Vidéothèque / grille média */
.tiles{ display:grid; gap:1px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.tile{ background:var(--bg); aspect-ratio:16/10; position:relative; overflow:hidden;
  display:grid; place-items:center; box-shadow:0 0 0 1px var(--rule); }
.tile__bg{ position:absolute; inset:0; background:linear-gradient(150deg,var(--petrol),var(--ink)); }
.tile__lbl{
  position:relative; z-index:1; font-family:var(--sans); font-size:.82rem;
  color:var(--sand); text-align:center; padding:1rem; font-weight:500;
}
.tile__play{ position:relative; z-index:1; width:44px; height:44px; margin-bottom:.7rem; }
.tile__play [stroke]{ stroke:var(--brass); }

/* --- 23. Responsive ------------------------------------------------------ */
@media (max-width:1180px){
  .nav{ display:none; }
  .head-cta{ display:none; }
  .burger{ display:block; }
  .depth{ display:none; }
}
@media (max-width:640px){
  :root{ --t-3xl:2.3rem; --t-2xl:1.85rem; }
  .section{ padding-block:3.5rem; }
  .contact-list li{ grid-template-columns:1fr; gap:.2rem; }

  /* Aucun libellé sous 12 px sur petit écran */
  .brand__sub{ font-size:.62rem; letter-spacing:.22em; }
  .search__hint,
  .pillar__go,
  .foot-bot{ font-size:.75rem; }
  .tag,
  .sec-head__mark,
  .card__idx{ font-size:.72rem; }

  /* Confort de saisie : évite le zoom automatique d'iOS sous 16 px */
  .field input, .field select, .field textarea,
  .search__bar input{ font-size:16px; }

  /* Bouton WhatsApp un peu plus discret sur petit écran */
  .wa{ width:48px; height:48px; right:14px; bottom:16px; }
  .wa svg{ width:22px; height:22px; }
}

/* Paysage sur téléphone : bannières moins hautes */
@media (max-height:520px) and (orientation:landscape){
  .hero--home{ min-height:auto; padding-block:calc(var(--header-h) + 2.5rem) 3rem; }
  .hero{ padding-block:calc(var(--header-h) + 2.5rem) 3rem; }
  .mobile-nav{ padding-top:calc(var(--header-h) + .75rem); }
}


/* --- 26. Recherche ------------------------------------------------------- */
.head-search{
  width:38px; height:38px; margin-left:.5rem; padding:0;
  background:none; border:1px solid rgba(237,231,218,.24);
  display:grid; place-items:center; cursor:pointer;
  transition:border-color .25s var(--ease), background .25s var(--ease);
  flex:none;
}
.head-search svg{ width:16px; height:16px; }
.head-search [stroke]{ stroke:rgba(237,231,218,.85); transition:stroke .25s; }
.head-search:hover{ border-color:var(--brass); background:rgba(192,138,46,.12); }
.head-search:hover [stroke]{ stroke:var(--brass-up); }

.mobile-nav__search{
  display:block; width:100%; margin-top:2rem; padding:.9rem 1rem;
  background:none; border:1px solid rgba(237,231,218,.28);
  font-family:var(--sans); font-size:.9rem; font-weight:600;
  color:var(--sand); text-align:left; cursor:pointer;
}
.mobile-nav__search:hover{ border-color:var(--brass); color:var(--brass-up); }

.search{ position:fixed; inset:0; z-index:9200; }
.search[hidden]{ display:none; }
.search__veil{
  position:absolute; inset:0; background:rgba(8,17,15,.78);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  animation:sVeil .3s var(--ease) forwards;
}
@keyframes sVeil{ from{ opacity:0 } to{ opacity:1 } }
.search__panel{
  position:relative; width:min(760px, 92vw);
  margin:clamp(3rem,12vh,8rem) auto 0;
  background:var(--paper);
  border:1px solid var(--rule-strong);
  box-shadow:0 40px 90px rgba(0,0,0,.45);
  clip-path:inset(0 0 100% 0);
  animation:sPanel .5s var(--ease-strata) forwards;
  max-height:min(74vh, 620px); display:flex; flex-direction:column;
}
@keyframes sPanel{ to{ clip-path:inset(0 0 0 0); } }

.search__bar{
  display:flex; align-items:center; gap:.9rem;
  padding:1rem 1.15rem; border-bottom:1px solid var(--rule);
  flex:none;
}
.search__bar > svg{ width:19px; height:19px; flex:none; }
.search__bar [stroke]{ stroke:var(--brass-dim); }
.search__bar input{
  flex:1; border:0; background:none; outline:none;
  font-family:var(--serif); font-size:1.06rem; color:var(--ink);
  padding:.35rem 0;
}
.search__bar input::placeholder{ color:var(--fg-mute); }
.search__bar input::-webkit-search-cancel-button,
.search__bar input::-webkit-search-decoration{ -webkit-appearance:none; appearance:none; }
.search__close{
  background:none; border:1px solid var(--rule-strong); cursor:pointer;
  font-family:var(--sans); font-size:.7rem; font-weight:600; letter-spacing:.08em;
  padding:.42rem .7rem; color:var(--fg-mute); flex:none;
  transition:border-color .2s, color .2s;
}
.search__close:hover{ border-color:var(--ink); color:var(--ink); }

.search__body{ overflow-y:auto; padding:.4rem 0 .6rem; }
.search__hint{
  font-family:var(--sans); font-size:.74rem; color:var(--fg-mute);
  padding:.9rem 1.15rem; margin:0;
}
.search__results li a{
  display:block; padding:.85rem 1.15rem; text-decoration:none;
  border-left:2px solid transparent;
  transition:background .18s, border-color .18s;
}
.search__results li a:hover,
.search__results li a.on{ background:var(--sand); border-left-color:var(--brass); }
.search__t{
  display:flex; align-items:baseline; gap:.7rem;
  font-family:var(--sans); font-size:.96rem; font-weight:600; color:var(--ink);
}
.search__sec{
  font-size:.64rem; font-weight:600; letter-spacing:.12em;
  color:var(--brass-dim); flex:none;
}
.search__x{
  font-size:.87rem; line-height:1.5; color:var(--fg-soft);
  margin:.25rem 0 0; max-width:64ch;
}
.search__x mark{ background:rgba(192,138,46,.28); color:inherit; padding:0 .1em; }
.search__none{
  font-family:var(--sans); font-size:.9rem; color:var(--fg-mute);
  padding:1.4rem 1.15rem;
}
@media (max-width:1180px){ .head-search{ display:none; } }
@media (prefers-reduced-motion:reduce){
  .search__panel{ clip-path:none; animation:none; }
  .search__veil{ animation:none; }
}

/* --- 24. Mouvement réduit ------------------------------------------------ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  [data-reveal]{ opacity:1; clip-path:none; transform:none; }
  .reveal-line > *{ transform:none; }
  .fade-up{ opacity:1; transform:none; }
  #wipe{ display:none; }
}

/* --- 25. Impression ------------------------------------------------------ */
@media print{
  .site-head,.depth,.wa,#preloader,#wipe,.site-foot,.mobile-nav{ display:none !important; }
  body{ background:#fff; color:#000; }
  .hero{ background:#fff; color:#000; padding-top:0; }
}
