/* Thème commun de bryancordonnier.fr (maquettes). */
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-Dx4kXJAl.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext-DO1Apj_S.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: Fraunces; font-weight: 100 900; font-style: normal; font-display: swap; src: url(/fonts/fraunces-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-weight: 100 900; font-style: italic; font-display: swap; src: url(/fonts/fraunces-latin-wght-italic.woff2) format('woff2'); }
:root {
  --fond: #fbfaf8; --fond-2: #f4f2ee; --carte: #fff; --ligne: #e7e4df; --encre: #161616; --doux: #5f5d59; --pale: #a19c94;
  --accent: #1f4e79; --accent-fort: #173d5f; --accent-clair: #e8eef5;
  --titre: Fraunces, Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(img/relief.svg) center / cover no-repeat; }
img { display: block; max-width: 100%; }
.page { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; }

/* ---------- En-tête ---------- */
header { position: sticky; top: 0; z-index: 10; transition: background .3s, box-shadow .3s; }
header.colle { background: rgba(251, 250, 248, .82); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--ligne); }
header .page { display: flex; align-items: center; height: 72px; gap: 40px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.015em; white-space: nowrap; }
.marque i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; }
.marque i::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--fond); }
header nav { display: flex; gap: 4px; margin-left: auto; }
nav a { position: relative; padding: 8px 14px; font-size: 15px; color: var(--doux); border-radius: 8px; transition: color .2s; }
nav a:hover { color: var(--encre); }
nav a.ici { color: var(--encre); font-weight: 550; }
nav a.ici::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.compte { font-size: 14.5px; font-weight: 550; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--ligne); background: var(--carte); white-space: nowrap; transition: border-color .2s, box-shadow .2s; }
.compte:hover { border-color: #cfcac2; box-shadow: 0 2px 8px rgba(0,0,0,.05); }

/* ---------- Boutons ---------- */
.bouton { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 99px; font-weight: 600; font-size: 15.5px; transition: background .2s, transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.bouton.plein { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 18px -8px rgba(31, 78, 121, .7); }
.bouton.plein:hover { background: var(--accent-fort); transform: translateY(-1px); }
.bouton.plein:active { transform: translateY(0); }
.bouton.petit { height: 40px; padding: 0 18px; font-size: 14.5px; }
.bouton.bord { border: 1px solid var(--ligne); background: var(--carte); }
.bouton.bord:hover { border-color: var(--encre); }
.bouton .fleche { transition: transform .25s var(--ease); }
.bouton:hover .fleche { transform: translateX(3px); }
.bouton:hover .fleche.diag { transform: translate(2px, -2px); }
.lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; font-size: 15.5px; color: var(--encre); padding: 6px 0; background: linear-gradient(var(--encre), var(--encre)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.lien:hover { background-size: 100% 1px; }

/* ---------- 1. Accroche ---------- */
/* Le hero tient exactement dans un écran, sous l'en-tête. */
.hero { position: relative; isolation: isolate; height: calc(100svh - 72px); min-height: 600px; max-height: 960px; display: flex; flex-direction: column; }
.hero { padding: 12px 0 28px; }
.hero > .page { width: 100%; flex: 1; display: flex; }
.panneau { flex: 1; display: flex; flex-direction: column; }
.accroche { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; width: 100%; }
h1 { font-size: clamp(36px, min(5vw, 7.4vh), 68px); line-height: 1.04; }
h1 em { color: var(--accent); }
.chapo { font-size: clamp(16.5px, 2.1vh, 19px); color: var(--doux); max-width: 30em; margin: clamp(16px, 3vh, 28px) 0 clamp(22px, 4vh, 36px); }
.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.garanties { display: grid; gap: 10px; margin: clamp(28px, 5vh, 44px) 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--doux); }
.garanties li { display: flex; align-items: center; gap: 10px; }
.garanties .ico { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ligne); border-radius: 9px; background: var(--carte); color: var(--accent); }

/* Carte réalisation */
.projet { margin: 0; padding: 14px; border-radius: 22px; background: var(--carte); border: 1px solid var(--ligne); box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 30px 70px -36px rgba(22, 30, 40, .4); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.projet:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 40px 80px -36px rgba(22, 30, 40, .5); }
.moniteur { padding: 7px 7px 0; border-radius: 12px 12px 0 0; background: #1d1d1f; }
.moniteur .ecran { aspect-ratio: 16 / 10; border-radius: 6px 6px 0 0; overflow: hidden; background: #fff; }
.moniteur img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.projet:hover .moniteur img { transform: scale(1.03); }
.menton { height: 14px; border-radius: 0 0 12px 12px; background: linear-gradient(#e9e7e3, #dedbd6); }
.projet figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 8px 4px; }
.projet .nom { white-space: nowrap; font-family: var(--titre); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.projet .info { font-size: 13.5px; color: var(--doux); margin-top: 2px; }

/* ---------- Sections ---------- */
section.page { padding-top: 150px; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; }
h2 em { color: var(--pale); }
.etiquette { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 24px; }
.etiquette::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* 2. Qui je suis */
.moi { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 96px; align-items: center; max-width: 1040px; margin: 0 auto; }
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.moi p.texte { font-size: 18.5px; color: var(--doux); margin: 26px 0 0; }
.moi p.texte strong { color: var(--encre); font-weight: 600; }
.faits { display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 0; border-top: 1px solid var(--ligne); }
.faits div { padding: 18px 18px 0 0; }
.faits div + div { padding-left: 18px; border-left: 1px solid var(--ligne); }
.faits dt { font-size: 13px; color: var(--pale); margin-bottom: 4px; }
.faits dd { margin: 0; font-weight: 600; font-size: 15.5px; }

/* 3. Étapes */
#etapes h2 { text-align: center; }
.etapes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 80px auto 0; padding: 0; max-width: 1040px; }
.etape { text-align: center; padding: 0 28px; }
.etape .num { display: block; font-family: var(--titre); font-style: italic; font-weight: 400; font-size: 64px; line-height: 1; color: var(--ligne); transition: color .25s; }
.rail { position: absolute; top: 96px; left: calc(100% / 6); right: calc(100% / 6); height: 3px; border-radius: 3px; background: var(--ligne); }
.rail i { position: absolute; inset: 0; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--avance, 0)); }
.repere { display: block; width: 13px; height: 13px; margin: 22px auto 0; border-radius: 3px; transform: rotate(45deg); background: var(--fond); border: 2px solid var(--ligne); position: relative; z-index: 1; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.etape.faite .num { color: var(--accent); }
.etape.faite .repere { background: var(--accent); border-color: var(--accent); transform: rotate(45deg) scale(1.15); }
.etape h3 { font-size: 24px; margin: 34px 0 10px; }
.etape p { color: var(--doux); margin: 0 auto 18px; max-width: 20em; }
.delai { display: inline-flex; font-size: 13.5px; font-weight: 550; color: var(--accent); background: var(--accent-clair); padding: 5px 12px; border-radius: 99px; }

/* 4. Fin */
.page.fin { padding-top: 160px; padding-bottom: 120px; }
.cadre-fin { position: relative; border-radius: 28px; background: var(--accent-fort); color: #fff; padding: 96px 48px; overflow: hidden; text-align: center; isolation: isolate; }
.cadre-fin::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 15% 0%, rgba(255,255,255,.14), transparent 60%), radial-gradient(60% 90% at 100% 100%, rgba(0,0,0,.25), transparent 60%); }
.cadre-fin::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/grain.png); opacity: .6; }
.cadre-fin h2 { color: #fff; max-width: 13em; margin: 0 auto 40px; }
.cadre-fin h2 em { color: rgba(255,255,255,.7); }
.cadre-fin .bouton.plein { background: #fff; color: var(--accent-fort); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.cadre-fin .bouton.plein:hover { background: #eef2f6; }

footer { border-top: 1px solid var(--ligne); padding: 32px 0 40px; font-size: 14px; color: var(--doux); }
footer .page { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; }
footer nav a { padding: 0; font-size: 14px; }

/* Apparition au défilement */
.revele { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.revele.vu { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .page { padding: 0 20px; }
  header nav { display: none; }
  .compte { margin-left: auto; }
  .accroche { grid-template-columns: 1fr; gap: 56px; }
  .hero { height: auto; max-height: none; padding: 8px 0 20px; }

  .projet figcaption { flex-wrap: wrap; }
  .projet .nom { white-space: normal; }
  .accroche { padding: 32px 0 48px; }
  .chapo { font-size: 17.5px; }
  .garanties { flex-direction: column; }
  .moi { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 320px; }
  .faits { grid-template-columns: 1fr; }
  .faits div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--ligne); }
  .faits div { padding: 14px 0; }
  section.page { padding-top: 110px; }
  .etapes { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .etape { text-align: left; padding: 0 0 0 64px; position: relative; }
  .etape .num { font-size: 44px; }
  .etape h3 { margin-top: 10px; }
  .etape p { margin-left: 0; }
  .repere { position: absolute; left: 9px; top: 14px; margin: 0; }
  .rail { top: 20px; bottom: 60px; left: 16px; right: auto; width: 3px; height: auto; }
  .rail i { transform-origin: top; transform: scaleY(var(--avance, 0)); }
  .cadre-fin { padding: 64px 24px; border-radius: 20px; }
  .page.fin { padding-top: 110px; padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revele { opacity: 1; transform: none; }
}
