/* =====================================================================
   EXTRÊME NETTOYAGE 19 — Système de design partagé
   Utilisé par toutes les pages du site (variables CSS + composants)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Couleurs de marque ---- */
  --navy: #0A2B5C;
  --navy-light: #123B7A;
  --navy-deep: #071C40;
  --green: #4CAF50;
  --green-dark: #3D8B40;
  --green-light: #6FCB72;
  --white: #FFFFFF;
  --ice: #F4F8FB;
  --ink: #10213D;
  --mist: #6B7A99;
  --border: #E2E9F2;

  /* ---- Typo ---- */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ---- Ombres & rayons ---- */
  --shadow-sm: 0 2px 8px rgba(10, 43, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 43, 92, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 43, 92, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  /* ---- Rythme ---- */
  --container-w: 1180px;
  --section-pad: clamp(64px, 9vw, 120px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { color: var(--mist); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.container { max-width: var(--container-w); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section-pad); }
.section--ice { background: var(--ice); }
.section--navy { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.75); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(76, 175, 80, 0.1);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--navy .eyebrow { color: var(--green-light); background: rgba(76, 175, 80, 0.18); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 10px 24px rgba(76,175,80,0.35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(76,175,80,0.42); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---- En-tête / navigation ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 52px; width: auto; }
.nav-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.nav-brand .name span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--green-dark); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; font-size: 0.96rem; color: var(--ink); position: relative; padding-block: 4px; white-space: nowrap; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--green); transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-call { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: 0.95rem; white-space: nowrap; flex-shrink: 0; }
.nav-call svg { color: var(--green); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); height: 100vh;
    background: var(--white); flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 100px 28px 28px; box-shadow: var(--shadow-lg); transform: translateX(100%);
    transition: transform 0.35s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding-block: 12px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 30px; z-index: 101; }
  .nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; transition: 0.3s; }
  .nav-call { display: none; }
}

/* ---- Cartes ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  color: var(--green-light); margin-bottom: 20px; flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---- Bouton flottant WhatsApp / appel ---- */
.floating-actions { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: var(--shadow-lg); transition: transform 0.25s ease;
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--navy); display: none; }
@media (max-width: 720px) { .fab-call { display: flex; } }

/* ---- Pied de page ---- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--green-light); }
.footer-brand img { height: 56px; margin-bottom: 14px; }
.footer-brand p { max-width: 280px; font-size: 0.92rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Utilitaires ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* ---- Champs de formulaire (global) ---- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--ice); transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; background: var(--white); }
.field textarea { resize: vertical; min-height: 100px; }
/* ---- Bande CTA (utilisée sur plusieurs pages, fonds clairs ou navy) ---- */
.cta-band {
  background: rgba(76, 175, 80, 0.08);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy); font-size: 2rem; max-width: 480px; }
.cta-band p { color: var(--mist); margin-top: 10px; }
.cta-band .btn-primary { background: var(--green); color: var(--white); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--green-dark); }
