/* ADAPTAC Pro - feuille de style
   Polices variables auto-hebergees (2 fichiers, toutes graisses incluses) */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-variable.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Palette primaire - codes releves sur le logo, cf. charte graphique */
  --c-navy: #16324F;
  --c-teal: #2E8CA8;
  --c-emerald: #0FA07E;
  --c-green: #33C13F;
  --c-gray: #C9CCD1;

  --c-text: var(--c-navy);
  --c-text-muted: #5B6B78;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F7F8;
  --c-border: #E3E7EA;

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Public Sans", sans-serif;

  --gradient-brand: linear-gradient(115deg, var(--c-navy) 0%, var(--c-teal) 42%, var(--c-emerald) 68%, var(--c-green) 100%);

  --max-width: 1100px;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; margin: 0 0 0.5em; }

a { color: var(--c-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 16px 24px; border-bottom: 0.5px solid var(--c-border); position: relative;
}
.site-header .brand { display: flex; align-items: center; gap: 11px; }
.site-header .brand img { width: 88px; height: 88px; object-fit: contain; }
.site-header .brand span { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }

.btn-primary { display: inline-block; background: var(--c-emerald); color: #fff; padding: 9px 18px; border-radius: 6px; font-weight: 500; font-size: 14px; }
.btn-primary:hover { text-decoration: none; opacity: 0.9; }

.site-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-btn {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--c-border);
  color: var(--c-navy); font-size: 14px; white-space: nowrap;
}
.nav-btn:hover { background: var(--c-bg-alt); text-decoration: none; }
.nav-btn.active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

.nav-toggle-checkbox { display: none; }
.nav-toggle-label { display: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--c-navy); }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 8px; margin-top: 16px;
  }
  .nav-toggle-checkbox:checked ~ .site-nav { display: flex; }
  .nav-btn { text-align: center; }
}

/* Bandeau (pages autres que l'accueil) */
.page-banner {
  padding: 56px 24px; color: #fff; text-align: center;
  background-image: linear-gradient(rgba(10,20,30,0.18), rgba(10,20,30,0.18)), url("/assets/fond-banniere.jpg");
  background-size: cover; background-position: center;
}
.page-banner h1 { font-family: var(--font-heading); font-size: 40px; margin: 0; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.page-banner p { font-size: 19px; margin: 14px 0 0; opacity: 0.98; max-width: 640px; margin-left: auto; margin-right: auto; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }

/* Hero */
.hero {
  padding: 72px 24px; text-align: center; color: #fff;
  background-image: linear-gradient(rgba(10,20,30,0.18), rgba(10,20,30,0.18)), url("/assets/fond-banniere.jpg");
  background-size: cover; background-position: center;
}
.hero p:first-of-type { font-family: var(--font-heading); font-size: 36px; font-weight: 600; max-width: 680px; margin: 0 auto 16px; line-height: 1.35; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero p:nth-of-type(2) { font-size: 19px; margin: 0 0 24px; opacity: 0.98; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .ctas a { padding: 11px 22px; border-radius: 6px; font-size: 15px; font-weight: 500; }
.hero .ctas a.primary { background: #fff; color: var(--c-navy); }
.hero .ctas a.secondary { background: transparent; color: #fff; border: 1px solid #fff; }
.hero .ctas a:hover { text-decoration: none; opacity: 0.92; }

/* Sections generiques */
.section { padding: 44px 24px; }
.section-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-text-muted); margin-bottom: 18px; }

/* Grille expertises (accueil + page expertises) */
.expertise-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.expertise-card { border-radius: var(--radius); padding: 20px 10px; text-align: center; text-decoration: none; }
.expertise-card img.picto { width: 112px; height: 112px; margin: 0 auto 14px; display: block; }
.expertise-card p { font-size: 15px; font-weight: 500; margin: 0; }
.tint-navy   { background: #E6F1FB; } .tint-navy p   { color: #0C447C; }
.tint-teal   { background: #E1F5EE; } .tint-teal p   { color: #085041; }
.tint-emerald{ background: #EAF3DE; } .tint-emerald p{ color: #27500A; }
.tint-purple { background: #EEEDFE; } .tint-purple p { color: #3C3489; }
.tint-coral  { background: #FAECE7; } .tint-coral p  { color: #993C1D; }
.tint-lime   { background: #EFF9E4; } .tint-lime p   { color: #3D6B12; }
.tint-gray   { background: #F1F2F4; } .tint-gray p   { color: #464C54; }
@media (max-width: 720px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }

/* Cartouches references */
.reference-grid { display: flex; flex-direction: column; gap: 18px; }
.reference-card { border-radius: 12px; padding: 20px; }
.reference-top { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; margin-bottom: 14px; }
.reference-left { display: flex; align-items: center; gap: 14px; }
.reference-left .structure-picto { height: 72px; width: auto; flex: 0 0 auto; }
.reference-client { font-weight: 600; font-size: 15px; margin: 0; }
.reference-meta { font-size: 12px; opacity: 0.8; margin: 2px 0 0; }
.reference-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; text-align: right; }
.reference-right h3 { font-size: 16px; margin: 0; }
.reference-right .mission-picto { height: 72px; width: auto; flex: 0 0 auto; }
.reference-body p { font-size: 14px; text-align: justify; }
.reference-body ul { padding-left: 20px; margin: 8px 0 0; }
.reference-body li { font-size: 14px; margin-bottom: 4px; }
@media (max-width: 640px) {
  .reference-top { grid-template-columns: 1fr; }
  .reference-right { justify-content: flex-start; text-align: left; }
}

/* Liste zigzag (page expertise) */
.zigzag-row { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-top: 0.5px solid var(--c-border); }
.zigzag-row.reverse { flex-direction: row-reverse; }
.zigzag-row .picto { width: 96px; height: 96px; flex: 0 0 auto; }
.zigzag-row .picto img { width: 100%; height: 100%; object-fit: contain; }
.zigzag-row .zigzag-text { text-align: justify; }
.zigzag-row h3 { font-size: 17px; margin: 0 0 6px; text-align: left; }
.zigzag-row p { font-size: 15px; color: var(--c-text-muted); margin: 0; }
.zigzag-row ul, .zigzag-row ol { margin: 8px 0 0; padding-left: 20px; text-align: left; }
.zigzag-row li { font-size: 15px; color: var(--c-text-muted); margin-bottom: 4px; }

/* Cartes (catalogue/thesaurus) */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { border: 0.5px solid var(--c-border); border-radius: 12px; padding: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card .card-text { flex: 1; min-width: 0; }
.card .card-picto-wrap { flex: 0 0 auto; }
.card img.card-picto { width: 112px; height: 112px; }
.card h3 { font-size: 16px; }
.card p { font-size: 14px; text-align: justify; }
.card .tag { font-size: 12px; padding: 4px 9px; border-radius: 6px; background: var(--c-bg-alt); color: var(--c-text-muted); }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .card { flex-direction: column; } .card img.card-picto { width: 80px; height: 80px; } }

/* Liste large (picto agrandi toujours a gauche - ex. page Interventions) */
.list-row { display: flex; align-items: flex-start; gap: 28px; padding: 26px 0; border-top: 0.5px solid var(--c-border); }
.list-row .picto-large { width: 160px; height: 160px; flex: 0 0 auto; }
.list-row .picto-large img { width: 100%; height: 100%; object-fit: contain; }
.list-row .list-text { text-align: justify; }
.list-row h3 { font-size: 18px; margin: 0 0 6px; text-align: left; }
.list-row p { font-size: 15px; color: var(--c-text-muted); margin: 0; }
.list-row ul, .list-row ol { margin: 8px 0 0; padding-left: 20px; text-align: left; }
.list-row li { font-size: 15px; color: var(--c-text-muted); margin-bottom: 4px; }
@media (max-width: 640px) { .list-row { flex-direction: column; } .list-row .picto-large { width: 96px; height: 96px; } }

/* Liste blog */
.blog-item { display: flex; gap: 18px; padding: 18px 0; border-top: 0.5px solid var(--c-border); align-items: center; }
.blog-item .thumb { width: 84px; height: 60px; flex: 0 0 auto; border-radius: 8px; background: var(--gradient-brand); }
.blog-item .date { font-size: 12px; color: var(--c-text-muted); margin: 0 0 4px; }
.blog-item h3 { font-size: 16px; margin: 0 0 4px; }
.blog-item p { font-size: 14px; color: var(--c-text-muted); margin: 0; }

.catchphrase-block { text-align: center; border-bottom: 0.5px solid var(--c-border); }
.catchphrase-block p { font-style: italic; font-size: 17px; color: var(--c-navy); max-width: 520px; margin: 0 auto 10px; }
.catchphrase-block a { font-size: 14px; }

.epilogue {
  margin-top: 36px; padding-top: 28px; border-top: 0.5px solid var(--c-border);
}
.epilogue h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-text-muted); margin-bottom: 12px; }
.epilogue p { text-align: justify; }
.epilogue ul { padding-left: 20px; }
.epilogue li { font-size: 14px; margin-bottom: 6px; text-align: justify; }

.prose p, .prose li { text-align: justify; }
.prose .body-quote { text-align: center; font-style: italic; }
.prose::after, .epilogue::after { content: ""; display: table; clear: both; }
img.img-left { float: left; margin: 4px 24px 12px 0; max-width: min(320px, 40%); height: auto; border-radius: 8px; }
img.img-right { float: right; margin: 4px 0 12px 24px; max-width: min(320px, 40%); height: auto; border-radius: 8px; }
img.img-full { display: block; width: 100%; height: auto; margin: 20px 0; border-radius: 8px; }
@media (max-width: 640px) {
  img.img-left, img.img-right { float: none; max-width: 100%; margin: 16px 0; display: block; }
}

blockquote {
  border-left: 3px solid var(--c-teal); margin: 16px 0; padding: 4px 0 4px 16px;
  color: var(--c-text-muted); font-style: italic;
}

.blog-banner .date { font-size: 14px; opacity: 0.85; margin: 0 0 6px; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.blog-banner .banner-quote { font-style: italic; }

/* Footer */
.site-footer {
  padding: 26px 24px; border-top: 0.5px solid var(--c-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--c-text-muted); align-self: center; }
.footer-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-cta .note { font-size: 12px; color: var(--c-text-muted); text-align: right; margin: 0; }
@media (max-width: 640px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-cta { align-items: flex-start; width: 100%; }
}
