/*
  ═══════════════════════════════════════════════════════════════════════════
  WEBASTIDE — Site vitrine · feuille de style
  ───────────────────────────────────────────────────────────────────────────
  Un site réalisé par Webastide — Antoine Lachaize · webastide.fr
  © 2026 Webastide
  ───────────────────────────────────────────────────────────────────────────
  Branding validé : encre bastide + une seule couleur d'accent (l'ocre).
  Typo Fraunces (titres, chaleureux) + Inter (texte). Motif : l'arche de bastide.
  ═══════════════════════════════════════════════════════════════════════════
*/

:root {
  --encre:    #15231F;   /* Fond foncé, titres */
  --encre-2:  #55645B;   /* Texte secondaire (contraste AA sur papier) */
  --ocre:     #D88C22;   /* Accent unique (fonds foncés, aplats) */
  --ocre-f:   #B8741A;
  --ocre-txt: #8A5510;   /* Ocre foncé : accent en TEXTE sur fond clair (contraste AA) */
  --olive:    #6F7A45;
  --pierre:   #E7E2D6;   /* Fond de section alterné */
  --papier:   #F6F3EB;   /* Fond clair principal */
  --blanc:    #FFFFFF;
  --serif:    'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:     'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --largeur:  1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.7;
  color: var(--encre); background: var(--papier);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 40px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--encre); color: var(--papier); padding: 10px 18px; font-size: .85rem; font-weight: 600; border-radius: 6px; transition: top .25s; }
.skip:focus { top: 16px; }

.eyebrow { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ocre-txt); }

.btn {
  display: inline-block; font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: 15px 30px; border-radius: 100px; transition: background .25s, color .25s, border-color .25s, transform .25s;
  cursor: pointer; border: 1px solid transparent;
}
.btn--plein { background: var(--encre); color: var(--papier); }
.btn--plein:hover { background: #0d1a15; transform: translateY(-2px); }
.btn--ligne { border-color: color-mix(in srgb, var(--encre) 25%, transparent); color: var(--encre); }
.btn--ligne:hover { border-color: var(--encre); background: var(--encre); color: var(--papier); }

/* ── Le logo (arche + mot) ────────────────────────────────────────── */
.marque { display: inline-flex; align-items: center; gap: 11px; color: var(--encre); }
.marque__arche { width: 30px; height: 30px; flex-shrink: 0; color: currentColor; }
.marque__nom { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.marque__nom b { color: var(--ocre); font-weight: 600; }

/* ── Navigation ───────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.nav.est-defile { background: color-mix(in srgb, var(--papier) 90%, transparent); backdrop-filter: blur(10px); border-bottom-color: color-mix(in srgb, var(--encre) 10%, transparent); }
.nav__inner { max-width: var(--largeur); margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a:not(.nav__cta) { font-size: .92rem; font-weight: 500; color: var(--encre-2); transition: color .2s; position: relative; }
.nav__menu a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 100%; background: var(--ocre); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.nav__menu a:not(.nav__cta):hover { color: var(--encre); }
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-size: .92rem; font-weight: 600; color: var(--papier); background: var(--encre); padding: 11px 22px; border-radius: 100px; transition: background .25s, transform .25s; }
.nav__cta:hover { background: var(--ocre-f); transform: translateY(-1px); }
.nav__burger { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; z-index: 120; }
.nav__burger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--encre); border-radius: 2px; transition: .3s; }
.nav__burger span:nth-child(1) { top: 0; } .nav__burger span:nth-child(2) { top: 9px; } .nav__burger span:nth-child(3) { top: 18px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding: 160px 0 90px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero__titre { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 6.5vw, 5rem); line-height: 1.02; letter-spacing: -.02em; margin: 22px 0 24px; }
.hero__titre em { font-style: normal; color: var(--ocre-txt); }
.hero__sous { font-size: 1.15rem; color: var(--encre-2); max-width: 48ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__gages { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero__gages li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--encre-2); }
.hero__gages li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--olive) 30%, transparent); border: 2px solid var(--olive); }
.hero__embleme { display: flex; justify-content: center; }
.arche-geante { width: 100%; max-width: 320px; color: var(--encre); }
.arche-geante__carre { transform-origin: center; }

/* Dessin de l'arche à l'arrivée */
.js-anim .arche-geante__trait, .js-anim .arche-geante__sol { stroke-dasharray: 720; stroke-dashoffset: 720; }
.js-anim .arche-geante.est-dessine .arche-geante__trait { animation: dessiner 1.7s ease forwards .2s; }
.js-anim .arche-geante.est-dessine .arche-geante__sol { animation: dessiner 1s ease forwards; }
.js-anim .arche-geante__carre { opacity: 0; }
.js-anim .arche-geante.est-dessine .arche-geante__carre { animation: apparaitre .6s ease forwards 1.5s; }
@keyframes dessiner { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* ── Constat ──────────────────────────────────────────────────────── */
.constat { background: var(--encre); color: var(--papier); padding: 80px 0; }
.constat__phrase { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.35; max-width: 24ch; margin: 0 auto; text-align: center; }
.constat__phrase em { font-style: italic; color: var(--ocre); }

/* ── Sections ─────────────────────────────────────────────────────── */
.sec { padding: 110px 0; }
.sec--pierre { background: var(--pierre); }
.sec--encre { background: var(--encre); color: var(--papier); }
.sec__tete { max-width: 640px; margin-bottom: 60px; }
.sec__titre { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 18px; }
.sec__titre em { font-style: italic; color: var(--ocre-txt); }
.sec__intro { font-size: 1.1rem; color: var(--encre-2); }
.sec--encre .sec__intro { color: #C6CDBF; }
/* Sur fond foncé, l'ocre vif reprend sa place */
.sec--encre .eyebrow, .sec--encre .sec__titre em { color: var(--ocre); }

/* Cartes offre 01/02/03 */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.carte { background: var(--blanc); border-radius: 16px; padding: 38px 32px; border: 1px solid color-mix(in srgb, var(--encre) 8%, transparent); transition: transform .3s, box-shadow .3s; }
.carte:hover { transform: translateY(-6px); box-shadow: 0 26px 50px color-mix(in srgb, var(--encre) 12%, transparent); }
.carte__num { font-family: var(--serif); font-size: 1.6rem; color: var(--ocre); }
.carte h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 12px 0 10px; letter-spacing: -.01em; }
.carte p { color: var(--encre-2); font-size: .98rem; }

/* Réalisations */
.vedette { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--blanc); border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--encre) 8%, transparent); margin-bottom: 26px; transition: box-shadow .3s, transform .3s; }
.vedette:hover { transform: translateY(-4px); box-shadow: 0 30px 60px color-mix(in srgb, var(--encre) 14%, transparent); }
.vedette__media { overflow: hidden; }
.vedette__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.vedette:hover .vedette__media img { transform: scale(1.05); }
.vedette__texte { padding: 44px 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.badge { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); background: color-mix(in srgb, var(--olive) 14%, transparent); padding: 6px 12px; border-radius: 100px; }
.vedette__texte h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 16px 0 10px; letter-spacing: -.01em; }
.vedette__texte p { color: var(--encre-2); margin-bottom: 20px; }
.lien-fleche { font-weight: 600; color: var(--encre); }
.lien-fleche span { transition: margin-left .25s; display: inline-block; }
.vedette:hover .lien-fleche span, .demo:hover .lien-fleche span { margin-left: 5px; }

.grille-demos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.demo { background: var(--blanc); border-radius: 16px; padding: 32px 30px; border: 1px solid color-mix(in srgb, var(--encre) 8%, transparent); transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; align-items: flex-start; }
.demo:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--ocre) 45%, transparent); box-shadow: 0 24px 44px color-mix(in srgb, var(--encre) 10%, transparent); }
.demo__style { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre-txt); }
.demo h4 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 10px 0 8px; }
.demo p { color: var(--encre-2); font-size: .95rem; margin-bottom: 18px; flex-grow: 1; }

/* Méthode */
.etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.etape { position: relative; background: var(--blanc); border: 1px solid color-mix(in srgb, var(--encre) 8%, transparent); border-radius: 16px; padding: 32px 26px 30px; text-align: center; transition: transform .3s, box-shadow .3s; }
.etape:hover { transform: translateY(-5px); box-shadow: 0 22px 44px color-mix(in srgb, var(--encre) 10%, transparent); }
.etape__num { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--encre); color: var(--papier); font-family: var(--serif); font-size: 1.35rem; margin-bottom: 16px; }
/* Le lien entre les étapes : une ligne ocre qui relie les pastilles */
.etape:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 54px; left: 50%; width: calc(100% + 24px); height: 2px; background: color-mix(in srgb, var(--ocre) 55%, transparent); }
.etape h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 8px; }
.etape p { color: var(--encre-2); font-size: .96rem; }

/* Tarifs */
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offre { position: relative; background: color-mix(in srgb, var(--papier) 8%, var(--encre)); border: 1px solid color-mix(in srgb, var(--papier) 14%, transparent); border-radius: 18px; padding: 40px 36px; }
.offre--vedette { border-color: var(--ocre); background: color-mix(in srgb, var(--ocre) 8%, var(--encre)); }
.offre__ruban { position: absolute; top: 22px; right: 22px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--encre); background: var(--ocre); padding: 5px 12px; border-radius: 100px; }
.offre__nom { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--papier); }
.offre__prix { font-family: var(--serif); font-weight: 600; font-size: 3rem; color: var(--papier); line-height: 1.1; margin: 10px 0 4px; }
.offre__apd { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ocre); }
.offre__mois { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: #C6CDBF; }
.offre__note { font-size: .88rem; color: #C6CDBF; margin-bottom: 22px; }
.offre__liste { list-style: none; display: grid; gap: 12px; }
.offre__liste li { position: relative; padding-left: 28px; color: var(--papier); font-size: .96rem; }
.offre__liste li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--ocre); border-bottom: 2px solid var(--ocre); transform: rotate(-45deg); }
.tarifs__pied { margin-top: 30px; color: #C6CDBF; font-size: .96rem; max-width: 620px; }

/* À propos */
.apropos { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: center; }
.apropos__visuel { display: flex; justify-content: center; }
.apropos__arche { width: 100%; max-width: 200px; color: var(--encre); }
.apropos__texte p { color: var(--encre-2); margin-bottom: 16px; max-width: 56ch; }
.apropos__signature { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--encre) !important; border-left: 3px solid var(--ocre); padding-left: 20px; margin-top: 22px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__intro p { color: var(--encre-2); margin: 16px 0 26px; }
.contact__coords { list-style: none; display: grid; gap: 18px; }
.contact__coords li { display: flex; flex-direction: column; gap: 2px; }
.contact__label { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ocre-txt); }
.contact__coords a { font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid color-mix(in srgb, var(--encre) 25%, transparent); width: fit-content; transition: border-color .2s; }
.contact__coords a:hover { border-color: var(--ocre); }
.contact__form { background: var(--blanc); border-radius: 18px; padding: 36px 34px; border: 1px solid color-mix(in srgb, var(--encre) 8%, transparent); display: grid; gap: 16px; }
.contact__form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--encre); }
.contact__form input, .contact__form textarea { font-family: var(--sans); font-size: 1rem; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--encre) 18%, transparent); border-radius: 10px; background: var(--papier); color: var(--encre); transition: border-color .2s; resize: vertical; }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--ocre); }
.contact__form button { margin-top: 4px; justify-self: start; }
.contact__form-note { font-size: .82rem; color: var(--encre-2); font-weight: 400; }

/* ── Pied ─────────────────────────────────────────────────────────── */
.pied { background: var(--encre); color: var(--papier); padding: 66px 0 40px; }
.pied__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; align-items: start; }
.marque--pied { color: var(--papier); }
.pied__slogan { font-family: var(--serif); font-style: italic; color: #C6CDBF; margin-top: 14px; font-size: 1.05rem; }
.pied__nav { display: flex; flex-direction: column; gap: 12px; }
.pied__nav a { color: #C6CDBF; font-size: .95rem; transition: color .2s; width: fit-content; }
.pied__nav a:hover { color: var(--papier); }
.pied__legal { font-size: .9rem; color: #C6CDBF; }
.pied__legal p { margin-bottom: 8px; }
.pied__legal strong { color: var(--papier); }
.pied__legal a { color: var(--ocre); text-decoration: underline; text-underline-offset: 3px; }
.pied__copy { margin-top: 18px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--papier) 12%, transparent); font-size: .82rem; }
.pied__copy a { color: var(--ocre); text-decoration: underline; text-underline-offset: 3px; }

/* ── Page mentions légales ────────────────────────────────────────── */
.legal { padding: 130px 0 90px; }
.legal__wrap { max-width: 760px; }
.legal__titre { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.02em; margin: 12px 0 44px; }
.legal__bloc { margin-bottom: 34px; }
.legal__bloc h2 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin-bottom: 12px; }
.legal__bloc p { color: var(--encre-2); margin-bottom: 12px; }
.legal__bloc a { color: var(--ocre-txt); text-decoration: underline; text-underline-offset: 3px; }
.legal__bloc strong { color: var(--encre); }
.a-completer { background: color-mix(in srgb, var(--ocre) 26%, transparent); color: var(--encre); padding: 2px 8px; border-radius: 5px; font-style: italic; }
.legal__retour { margin-top: 44px; }
.legal__retour a { color: var(--encre); font-weight: 600; }

/* ── Page de remerciement ─────────────────────────────────────────── */
.merci { min-height: 80vh; display: flex; align-items: center; padding: 130px 0 90px; }
.merci__wrap { max-width: 620px; text-align: center; }
.merci__arche { width: 84px; height: 84px; color: var(--encre); margin: 0 auto 24px; }
.merci__titre { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 12px 0 20px; }
.merci__titre em { font-style: italic; color: var(--ocre-txt); }
.merci__txt { font-size: 1.15rem; color: var(--encre-2); margin-bottom: 34px; }
.merci__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Apparition */
.reveal { opacity: 1; }
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js-anim .reveal.est-visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__embleme { order: -1; }
  .arche-geante { max-width: 200px; }
  .cartes, .etapes { grid-template-columns: 1fr 1fr; }
  .etape:not(:last-child)::after { display: none; }  /* la ligne n'a de sens qu'en 4 colonnes */
  .vedette { grid-template-columns: 1fr; }
  .vedette__media img { min-height: 220px; }
  .offres { grid-template-columns: 1fr; }
  .apropos, .contact { grid-template-columns: 1fr; gap: 34px; }
  .apropos__visuel { display: none; }
  .pied__inner { grid-template-columns: 1fr 1fr; }
  .pied__legal { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .nav__inner { padding-left: 24px; padding-right: 24px; }
  .nav__burger { display: block; }
  .nav__menu { position: fixed; inset: 0; background: var(--papier); flex-direction: column; justify-content: center; gap: 28px; transform: translateX(100%); transition: transform .4s; }
  .nav__menu.est-ouvert { transform: none; }
  .nav__menu a:not(.nav__cta) { font-size: 1.3rem; }
  .sec { padding: 80px 0; }
  .cartes, .etapes, .grille-demos { grid-template-columns: 1fr; }
  .pied__inner { grid-template-columns: 1fr; gap: 30px; }
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js-anim .reveal { opacity: 1; transform: none; }
  .js-anim .arche-geante__trait, .js-anim .arche-geante__sol { stroke-dashoffset: 0; }
  .js-anim .arche-geante__carre { opacity: 1; }
}
