/* ============================================================
   Gard'Kaz — Feuille de style commune du site vitrine
   Charte « case créole » (Bleu roi / Soleil / Palmier)
   Palette dérivée du logo : bleu roi, jaune-orange soleil,
   vert palmier, rouge toit, fonds crème/sable.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Bleu roi (façade case + « KAZ ») — couleur primaire de marque */
  --primary: #0A66B0;
  --primary-dark: #044A8C;
  --primary-light: #2E9BD6;
  /* Soleil / « GARD' » — accent jaune-orange chaleureux */
  --accent: #F39B0C;
  --accent-light: #FBC04A;
  /* Palmier — vert nature */
  --jade: #86CE94;
  --jade-dark: #2E9E4F;
  /* Fonds clairs crème/sable */
  --bg: #FFFDF7;
  --surface: #FFFFFF;
  --shell: #FBEFD7;
  --surface-muted: #F1ECE2;
  /* Textes (bleu nuit lisible) */
  --text: #123452;
  --text-secondary: #4A5E72;
  --text-muted: #86929E;
  --divider: #DFE7EE;
  --warning: #E8B855;
  --error: #D6322E;
  --sage: #2E9E4F;
  /* Bandeau pied de page bleu marine (comme la barre du logo/modèle) */
  --espresso: #08355F;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --shadow-s: 0 2px 8px rgba(18, 52, 82, 0.06);
  --shadow-m: 0 8px 28px rgba(18, 52, 82, 0.10);
  --shadow-l: 0 16px 48px rgba(18, 52, 82, 0.14);
  --maxw: 1120px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--text); font-weight: 800; letter-spacing: -0.01em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }

section { padding: 5rem 0; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; }
.section-subtitle {
  text-align: center; color: var(--text-secondary);
  max-width: 640px; margin: 0.8rem auto 3rem; font-size: 1.08rem;
}

/* ── Skip link accessibilité ─────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── En-tête / navigation ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0.75rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--primary-dark); flex-shrink: 0; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { color: var(--text); font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: .55rem 1.1rem; border-radius: var(--radius-s); font-weight: 700;
}
.nav-cta:hover { background: #D8850A; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ── Boutons ──────────────────────────────────────── */
.btn {
  display: inline-block; padding: .9rem 1.7rem; border-radius: var(--radius-s);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-s); }
.btn-accent:hover { background: #D8850A; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--divider); }
.btn-ghost:hover { background: var(--shell); color: var(--primary-dark); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light) 58%, var(--jade-dark));
  color: var(--surface); padding: 5rem 0 5.5rem; position: relative; overflow: hidden;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; opacity: .08; background: #fff; }
.hero::before { width: 620px; height: 620px; top: -240px; right: -160px; }
.hero::after { width: 420px; height: 420px; bottom: -160px; left: -120px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.3rem); max-width: 780px; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 640px; margin: 1.2rem 0 2rem; opacity: .95; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.16); color: #fff;
  padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.2rem;
}

/* ── Cartes / grilles ─────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-l); padding: 1.8rem; box-shadow: var(--shadow-s);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.card .icon { font-size: 2.2rem; margin-bottom: .8rem; display: block; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--text-secondary); font-size: .98rem; }

.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6rem;
}

/* ── Étapes ───────────────────────────────────────── */
.steps { counter-reset: step; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 1rem;
}

/* ── Bandeaux de section ──────────────────────────── */
.band { background: var(--surface); }
.band-shell { background: var(--shell); }
.band-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--surface); }
.band-primary h2, .band-primary h3 { color: #fff; }
.band-primary p { color: rgba(255,255,255,.92); }

/* ── Îles / puces ─────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.tag {
  background: var(--surface); border: 1px solid var(--divider); color: var(--text);
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-s);
  transition: transform .15s ease;
}
.tag:hover { transform: translateY(-2px); color: var(--primary); }

/* ── Liste à puces vertes ─────────────────────────── */
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--text-secondary); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--jade-dark); font-weight: 900; background: rgba(46,158,79,.14);
  width: 1.4rem; height: 1.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem;
}

/* ── Contenu article / pages texte ────────────────── */
.prose { font-size: 1.08rem; color: var(--text); }
.prose h2 { font-size: 1.6rem; margin: 2.4rem 0 .9rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; color: var(--text-secondary); }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; color: var(--text-secondary); }
.prose li { margin-bottom: .5rem; }
.prose a { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose blockquote {
  border-left: 4px solid var(--accent); background: var(--surface);
  padding: 1rem 1.3rem; border-radius: 0 var(--radius-m) var(--radius-m) 0; margin: 1.5rem 0; font-style: italic;
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-item { border: 1px solid var(--divider); border-radius: var(--radius-m); background: var(--surface); margin-bottom: 1rem; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 700; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.4rem; top: 1rem; font-size: 1.5rem; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--text-secondary); }

/* ── Fil d'Ariane ─────────────────────────────────── */
.breadcrumb { font-size: .9rem; color: var(--text-muted); padding: 1.2rem 0 0; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { margin: 0 .4rem; }

/* ── En-tête de page interne ──────────────────────── */
.page-head { background: linear-gradient(135deg, var(--primary), var(--primary-light) 70%, var(--jade-dark)); color: #fff; padding: 3rem 0 3.4rem; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); max-width: 820px; }
.page-head p { margin-top: .9rem; max-width: 680px; font-size: 1.1rem; opacity: .95; }
.page-head .breadcrumb, .page-head .breadcrumb a { color: rgba(255,255,255,.85); }

/* ── Blog : cartes d'articles ─────────────────────── */
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .18s, box-shadow .18s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.article-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary), var(--jade-dark)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.article-card .body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.article-card .meta { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.article-card h3 { font-size: 1.15rem; }
.article-card p { color: var(--text-secondary); font-size: .95rem; flex: 1; }
.article-card .read { color: var(--primary); font-weight: 700; font-size: .92rem; }

/* ── CTA final ────────────────────────────────────── */
.cta-final { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.95); max-width: 560px; margin: .8rem auto 1.8rem; }

/* ── Pied de page ─────────────────────────────────── */
.site-footer { background: var(--espresso); color: #CFE0F0; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: .8rem; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #CFE0F0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .desc { color: #A6C2DC; font-size: .95rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: #88A8C6; }

/* ── Réseaux sociaux (footer) ─────────────────────── */
.footer-social { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.6rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.10); color: #fff; transition: background .2s ease, transform .2s ease; }
.footer-social a:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Avis de nos membres ──────────────────────────── */
.avis-grid { align-items: start; }
.avis-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-l); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-s);
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.avis-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.avis-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.avis-auteur { display: flex; flex-direction: column; }
.avis-nom { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.avis-lieu { color: var(--text-muted); font-size: .9rem; }
.avis-role {
  flex-shrink: 0; align-self: flex-start;
  padding: .25rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.avis-role-hote { background: rgba(10, 102, 176, 0.12); color: var(--primary-dark); }
.avis-role-gardien { background: rgba(243, 155, 12, 0.16); color: #B77400; }
.avis-etoiles { color: var(--warning); font-size: 1.15rem; letter-spacing: .12em; line-height: 1; }
.avis-texte { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.avis-date { color: var(--text-muted); font-size: .85rem; margin-top: auto; }
.avis-vide { text-align: center; padding: 2rem 0 1rem; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Sous 900px, la barre bascule en menu déroulant (icône ☰) :
     évite tout chevauchement logo / liens sur tablette et petit portable. */
  .nav-links {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--bg); padding: 1.2rem 1.5rem; gap: 1rem; border-bottom: 1px solid var(--divider);
    box-shadow: var(--shadow-m); transform: translateY(-140%); transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 3.5rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}
