/* Keeva : feuille de style du site agence-keeva.com
   Charte : design system « Keeva » (piste Estuaire). */

@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --gironde: #12343B;
  --gironde-2: #1C4850;
  --ocre: #9A4F17;
  --ocre-clair: #E3B98F;
  --eau: #7FA7A3;
  --sable: #F4EEE3;
  --sable-clair: #FBF8F2;
  --sable-bord: #E2D7C3;
  --champ-bord: #C9BBA2;
  --texte: #12343B;
  --texte-doux: #44585C;
  --texte-inverse: #F4EEE3;
  --texte-inverse-doux: #D9E2E0;
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sable); color: var(--texte); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ocre); }
a:hover { color: var(--gironde); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 4px; }
.section-sombre :focus-visible, .entete :focus-visible { outline-color: var(--ocre-clair); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }

.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--gironde); color: var(--sable); padding: 12px 16px; z-index: 100; }
.lien-evitement:focus { left: 16px; top: 16px; }

.conteneur { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .conteneur { padding-left: 20px; padding-right: 20px; } }

/* Boutons */
.btn { display: inline-block; padding: 15px 26px; border-radius: var(--radius-md); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); }
.btn-principal { background: var(--gironde); color: var(--sable); }
.btn-principal:hover { background: var(--gironde-2); color: var(--sable); }
.btn-clair { background: var(--sable); color: var(--gironde); }
.btn-clair:hover { background: #fff; color: var(--gironde); }
.btn-contour-clair { border-color: var(--ocre-clair); color: var(--sable); }
.btn-contour-clair:hover { background: rgba(227, 185, 143, 0.12); color: var(--sable); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: var(--sable); border-bottom: 1px solid var(--sable-bord); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--gironde); text-decoration: none; }
.nav a:hover { color: var(--ocre); }
.nav .btn { padding: 12px 20px; font-size: 15px; color: var(--sable); }
.menu-bouton { display: none; background: none; border: 1.5px solid var(--gironde); border-radius: var(--radius-md); padding: 10px 14px; font: 600 15px var(--sans); color: var(--gironde); cursor: pointer; }
@media (max-width: 900px) {
  .menu-bouton { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--sable); border-bottom: 1px solid var(--sable-bord); padding: 8px 20px 20px; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--sable-bord); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* Surtitres et titres de section */
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocre); }
.section-sombre .surtitre { color: var(--ocre-clair); }
.section { padding-top: 96px; }
.section-tete { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section-tete h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 700; }
@media (max-width: 600px) { .section { padding-top: 64px; } }

/* Hero */
.section-sombre { background: var(--gironde); color: var(--texte-inverse); }
.hero .conteneur { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-texte { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; font-weight: 500; }
.hero-chapeau { font-size: 19px; line-height: 1.6; color: var(--texte-inverse-doux); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-visuel { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.hero-visuel svg { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 600px) { .hero .conteneur { padding-top: 56px; padding-bottom: 64px; gap: 40px; } .hero-visuel { display: none; } }

/* Engagements */
.engagements { background: var(--sable-clair); border-bottom: 1px solid var(--sable-bord); }
.engagements .conteneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.engagement-titre { font-family: var(--display); font-size: 20px; font-weight: 700; }
.engagement-texte { font-size: 15px; color: var(--texte-doux); }

/* Grilles de cartes */
.grille { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 400px) { .grille, .grille-3 { grid-template-columns: 1fr; } }
.carte { background: var(--sable-clair); border: 1px solid var(--sable-bord); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.carte h3 { font-size: 22px; font-weight: 700; }
.carte p { font-size: 15px; color: var(--texte-doux); }
.carte svg { width: 28px; height: 28px; }

.carte-sombre { background: var(--gironde); color: var(--texte-inverse); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.carte-sombre h3 { font-size: 26px; font-weight: 700; }
.carte-sombre p { font-size: 15px; color: var(--texte-inverse-doux); }

/* Méthode */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 40px; border-top: 1px solid var(--sable-bord); }
@media (max-width: 400px) { .etapes { grid-template-columns: 1fr; } }
.etapes li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--sable-bord); }
.etape-num { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--ocre); line-height: 1; min-width: 22px; }
.etape-titre { font-weight: 600; }
.etape-texte { font-size: 15px; color: var(--texte-doux); }

/* Réalisations */
.section-tete-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-tete-ligne .section-tete { margin-bottom: 0; }
.reference { display: flex; flex-direction: column; gap: 14px; color: var(--texte); text-decoration: none; }
.reference img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: var(--radius-lg); border: 1px solid var(--sable-bord); transition: transform .2s ease; }
.reference:hover { color: var(--texte); }
.reference:hover img { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .reference img { transition: none; } .reference:hover img { transform: none; } }
.reference-type { font-size: 13px; font-weight: 600; color: var(--ocre); }
.reference h3 { font-size: 22px; font-weight: 700; }
.reference p { font-size: 15px; color: var(--texte-doux); }

/* À propos */
.apropos { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.apropos .section-tete { flex: 1 1 320px; margin-bottom: 0; }
.apropos-texte { flex: 2 1 420px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; }

/* Devis */
.devis .conteneur { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.devis-texte { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.devis-texte h2 { font-size: clamp(34px, 4.4vw, 44px); line-height: 1.1; font-weight: 500; }
.devis-texte p { font-size: 17px; color: var(--texte-inverse-doux); }
.formulaire { flex: 999 1 460px; min-width: 0; background: var(--sable); color: var(--texte); border-radius: var(--radius-lg); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 600px) { .formulaire { padding: 24px 20px; } }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.champ-large { grid-column: 1 / -1; }
.champ input, .champ select, .champ textarea { font: 400 16px var(--sans); color: var(--texte); padding: 12px 14px; border: 1px solid var(--champ-bord); border-radius: var(--radius-sm); background: var(--sable-clair); width: 100%; }
.champ textarea { resize: vertical; min-height: 120px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--ocre); outline-offset: 1px; border-color: var(--ocre); }
.consentement { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--texte-doux); }
.consentement input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gironde); flex: none; }
.formulaire .btn { grid-column: 1 / -1; justify-self: start; border: 0; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-envoi { grid-column: 1 / -1; font-size: 15px; font-weight: 600; }

/* Pied de page */
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.pied-marque { display: flex; flex-direction: column; gap: 10px; max-width: 380px; font-size: 15px; }
.pied-marque img { height: 30px; width: auto; align-self: flex-start; }
.pied-marque .doux { color: var(--texte-doux); }
.pied-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 48px; font-size: 15px; align-content: start; }
.pied-nav a { color: var(--gironde); }
.pied-bas { border-top: 1px solid var(--sable-bord); padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: var(--texte-doux); }

/* Pages légales */
.page-legale { max-width: 760px; padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.page-legale h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.page-legale h2 { font-size: 24px; margin-top: 16px; }
.page-legale p, .page-legale li { font-size: 16px; line-height: 1.65; }
