/* ==========================================================================
   HAPPY TROC — Feuille de style principale
   Charte graphique officielle :
     Bleu   #0a529a  (Pantone 2728C / RAL 5000)
     Orange #ca521f  (Pantone 166C  / RAL 2004)
     Ambre  #d57e1c  (Pantone 716C  / RAL 2000)
     Vert   #86bc25  (accent économie circulaire)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;0,800;1,600&family=Caveat:wght@700&display=swap');

:root {
  --happy-blue: #0a529a;
  --happy-blue-dark: #073e73;
  --happy-orange: #ca521f;
  --happy-orange-dark: #a64016;
  --happy-amber: #d57e1c;
  --happy-green: #86bc25;
  --happy-green-dark: #6a9a1c;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-soft: #f7f9fc;
  --border-soft: #e5e7eb;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-full: 999px;
  --shadow-soft: 0 10px 30px rgba(10, 82, 154, 0.08);
  --shadow-strong: 0 20px 45px rgba(10, 82, 154, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }

/* ---------- Icônes (remplacent les emojis, toujours dans les couleurs de la charte) ---------- */
.icon {
  width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.2em;
  flex-shrink: 0;
}
.icon-lg { width: 1.6em; height: 1.6em; }

.font-cursive { font-family: 'Caveat', cursive; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--happy-orange); color: #fff; box-shadow: var(--shadow-soft); }
.btn-orange:hover { background: var(--happy-orange-dark); }
.btn-blue { background: var(--happy-blue); color: #fff; box-shadow: var(--shadow-soft); }
.btn-blue:hover { background: var(--happy-blue-dark); }
.btn-green { background: var(--happy-green); color: #fff; box-shadow: var(--shadow-soft); }
.btn-green:hover { background: var(--happy-green-dark); }
.btn-outline-blue { background: #fff; color: var(--happy-blue); border-color: var(--happy-blue); }
.btn-outline-blue:hover { background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- En-tête / Navigation ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  min-height: 5rem;
  padding: 0.6rem 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand img { height: 48px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; min-width: 0; }
.brand-text .name { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-text .name .happy { color: var(--happy-orange); }
.brand-text .name .troc { color: var(--happy-blue); }
.brand-text .slogan { font-family: 'Caveat', cursive; color: var(--happy-orange); font-weight: 700; font-size: 1rem; font-style: italic; white-space: normal; max-width: 320px; }

/* Sur petit mobile, la phrase repasse en plus petit et sur une largeur réduite pour ne pas pousser le bouton menu hors de l'écran */
@media (max-width: 480px) {
  .brand-text .slogan { font-size: 0.72rem; max-width: 150px; line-height: 1.25; }
}

.main-nav { display: none; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem; row-gap: 0.3rem; min-width: 0; }
.main-nav a, .main-nav button {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--text-dark); font-weight: 700; font-size: 0.88rem;
  padding: 0.55rem 0.5rem; border-radius: 0.6rem; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.main-nav a:hover, .main-nav button:hover { color: var(--happy-blue); background: var(--bg-soft); }
.main-nav .link-magasins { color: var(--happy-blue); }
.main-nav .link-vendre { color: var(--happy-orange); }
.main-nav .link-actus { color: var(--happy-orange); font-weight: 800; display: inline-flex; align-items: center; gap: 0.35rem; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 0.75rem; box-shadow: var(--shadow-strong);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.15s ease; z-index: 50;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a, .dropdown button {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%; text-align: left; padding: 0.65rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.9rem; font-weight: 600; color: var(--text-dark);
}
.dropdown a:hover, .dropdown button:hover { background: var(--bg-soft); }

.espace-client { position: relative; }
.espace-client > .btn-espace {
  background: #eef4fb; color: var(--happy-blue); border: 1px solid #d9e7f6;
  border-radius: var(--radius-full); padding: 0.5rem 0.8rem; font-weight: 700;
  font-size: 0.88rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; font-family: inherit;
  margin-left: 0.3rem;
}
.espace-client .dropdown { right: 0; left: auto; min-width: 260px; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  background: var(--bg-soft); border: none; border-radius: var(--radius-full);
  color: var(--happy-blue); cursor: pointer;
  transition: background 0.15s ease;
}
.burger:hover, .burger:active { background: #e9edf3; }
.burger .icon { width: 1.5rem; height: 1.5rem; }
.mobile-nav { display: none; border-top: 1px solid var(--border-soft); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: inherit; padding: 0.85rem 1.25rem; font-weight: 600; font-size: 1rem;
  border-bottom: 1px solid #f2f4f7; color: var(--text-dark); cursor: pointer;
}
.mobile-nav .sub { padding-left: 2.25rem; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.mobile-nav .espace-client-block { background: #f5f9fe; padding-top: 0.5rem; }
.mobile-nav .espace-client-title {
  padding: 0.5rem 1.25rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--happy-blue);
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Bandeau de réassurance (sous le menu, sur toutes les pages) ---------- */
.trust-strip { background: var(--happy-blue-dark); color: #fff; }
.trust-strip-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.75rem;
  padding: 0.55rem 1.25rem; font-size: 0.78rem; font-weight: 700;
}
.trust-strip-inner span { display: inline-flex; align-items: center; gap: 0.4rem; opacity: 0.95; white-space: nowrap; }
.trust-strip .icon { color: var(--happy-green); }
@media (max-width: 640px) { .trust-strip-inner { gap: 0.35rem 1rem; font-size: 0.72rem; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #eaf2fb 0%, #ffffff 100%);
  padding: 4rem 0;
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero h1 { font-size: 2.6rem; font-weight: 800; color: var(--happy-blue); line-height: 1.15; margin: 0 0 1.2rem; }
.hero h1 span { color: var(--happy-orange); }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual { display: flex; justify-content: center; position: relative; }
.orbit { position: relative; width: 320px; height: 320px; }
@media (min-width: 640px) { .orbit { width: 420px; height: 420px; } }
.orbit-center {
  position: absolute; inset: 0; margin: auto; width: 45%; height: 45%;
  background: var(--happy-green); border-radius: 50%; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-weight: 800; border: 6px solid #fff;
  box-shadow: 0 0 50px rgba(134,188,37,0.55);
  font-size: 0.95rem; line-height: 1.25; gap: 0.4rem;
}
.orbit-center .emoji { font-size: 2.2rem; }
.orbit-ring {
  position: absolute; inset: 0; border: 3px dashed rgba(134,188,37,0.35);
  border-radius: 50%; animation: spin 22s linear infinite;
}
.orbit-item {
  position: absolute; width: 64px; height: 64px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: var(--shadow-strong); animation: spin-rev 22s linear infinite;
}
.orbit-item.i1 { top: -32px; left: 50%; margin-left: -32px; border: 4px solid var(--happy-blue); }
.orbit-item.i2 { top: 50%; right: -32px; margin-top: -32px; border: 4px solid var(--happy-orange); }
.orbit-item.i3 { bottom: -32px; left: 50%; margin-left: -32px; border: 4px solid var(--happy-blue); }
.orbit-item.i4 { top: 50%; left: -32px; margin-top: -32px; border: 4px solid var(--happy-orange); }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes spin-rev { from { transform: rotate(0); } to { transform: rotate(-360deg); } }

/* ---------- Sections génériques ---------- */
.section { padding: 4.5rem 0; }
.section-title {
  text-align: center; font-size: 2.2rem; font-weight: 800; color: var(--happy-blue);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center; font-family: 'Caveat', cursive; font-size: 1.7rem;
  color: var(--happy-orange); margin-bottom: 2.5rem;
}
.section-intro { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 3rem; }
.bg-soft { background: var(--bg-soft); }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft);
}

/* Tableau simple réutilisable sur les pages publiques (ex : historique des offres) */
table.simple-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-soft); }
table.simple-table th, table.simple-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 0.9rem; }
table.simple-table th { background: var(--bg-soft); color: var(--happy-blue); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
table.simple-table tr:last-child td { border-bottom: none; }
.card-hover { transition: box-shadow 0.2s ease, transform 0.2s ease; cursor: pointer; }
.card-hover:hover { box-shadow: var(--shadow-strong); transform: translateY(-4px); }
.card-icon { font-size: 2.6rem; margin-bottom: 1rem; color: var(--happy-blue); }
.card-border-orange { border-bottom: 4px solid var(--happy-orange); }
.card-border-green { border-bottom: 4px solid var(--happy-green); }
.card-border-blue { border-bottom: 4px solid var(--happy-blue); }
.card-border-orange .card-icon { color: var(--happy-orange); }
.card-border-green .card-icon { color: var(--happy-green-dark); }
.card-border-blue .card-icon { color: var(--happy-blue); }
.card h3 { color: var(--happy-blue); font-size: 1.25rem; margin: 0 0 0.6rem; }
.card p { color: var(--text-muted); margin: 0; }

.badge {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 800; color: #fff;
}
.badge-blue { background: var(--happy-blue); }
.badge-orange { background: var(--happy-orange); }
.badge-green { background: var(--happy-green); }
.badge-amber { background: var(--happy-amber); }
.badge-gray { background: #8a94a3; }
.badge-purple { background: #8b5cf6; }

/* ---------- Pastille DPE (Diagnostic de Performance Énergétique) — Petites annonces
   immobilières (voir §6.35). Couleurs A→G volontairement reprises du code couleur officiel
   national du DPE (ADEME), en dehors de la charte graphique HappyTROC : il s'agit d'un
   pictogramme réglementaire reconnu par tous, pas d'un élément de marque. ---------- */
.dpe-badge {
  display: inline-flex; align-items: center; color: #1a1a1a; font-weight: 800;
  font-size: 0.72rem; border-radius: 0.3rem; padding: 0.15rem 0.5rem;
}
.dpe-badge.dpe-non-soumis { background: #dfe3e8; color: #555; }

/* ---------- Pastille de notification sur les onglets "magasin" de l'Espace Magasin ----------
   Ex. nombre de nouvelles demandes clients à traiter pour ce magasin (voir §6.34), visible sur
   n'importe quelle page grâce à cette rangée d'onglets déjà présente partout. */
.store-tab { position: relative; }
.store-tab-badge {
  position: absolute; top: -0.55rem; right: -0.55rem;
  background: var(--happy-orange); color: #fff;
  min-width: 1.35rem; height: 1.35rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; line-height: 1.35rem; text-align: center;
  padding: 0 0.3rem; box-shadow: 0 0 0 2px #fff;
}

/* ---------- Fiche article : réassurance + bouton "+ d'infos" ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.trust-item {
  display: flex; align-items: center; gap: 0.5rem; background: var(--bg-soft);
  border: 1px solid var(--border-soft); border-radius: 0.75rem;
  padding: 0.6rem 0.9rem; font-size: 0.82rem; font-weight: 700; color: var(--text-dark);
}
.trust-item .ico { font-size: 1.1rem; }
.contact-reveal { display: none; margin-top: 1rem; }
.contact-reveal.open { display: block; animation: reveal-fade 0.2s ease; }
@keyframes reveal-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.check-list { list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 0.6rem; color: var(--text-dark); font-size: 0.95rem; }
.check-list li::before { content: "✔"; color: var(--happy-green); font-weight: 800; }

.steps { list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 2.75rem; margin-bottom: 1rem; color: var(--text-dark); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--happy-orange); color: #fff; font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Magasins ---------- */
.store-card { display: flex; flex-direction: column; height: 100%; }
.store-card .body { padding: 2rem; flex-grow: 1; }
.store-card h2 { color: var(--happy-blue); font-size: 1.4rem; margin: 0 0 1.25rem; }
.store-info { display: flex; gap: 0.65rem; margin-bottom: 0.9rem; align-items: flex-start; color: var(--text-dark); font-size: 0.95rem; }
.store-info .ico { color: var(--happy-orange); flex-shrink: 0; }
.store-social { display: flex; justify-content: center; gap: 2rem; padding: 1rem 0; border-top: 1px solid var(--border-soft); background: var(--bg-soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.store-social a { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 700; color: var(--happy-blue); }
.store-social a:hover { color: var(--happy-orange); }
.store-social .ico-social { font-size: 1.8rem; }
.store-photo-hero {
  height: 190px; background-size: cover; background-position: center; background-color: #eef2f6;
}
.store-photo-strip { display: flex; gap: 0.4rem; padding: 0.5rem; background: #eef2f6; }
.store-photo-strip img {
  flex: 1; height: 4.5rem; object-fit: cover; border-radius: 0.5rem; display: block;
}

/* ---------- Avis clients ---------- */
.reviews {
  background: var(--happy-blue); border-radius: 2rem; padding: 3.5rem 1.5rem; margin: 4rem 0;
  position: relative; overflow: hidden;
}
.reviews h3 { color: #fff; text-align: center; font-size: 1.9rem; margin: 0 0 0.5rem; }
.reviews .sub { text-align: center; color: var(--happy-green); font-family: 'Caveat', cursive; font-size: 1.5rem; margin-bottom: 2rem; }
.review-slider { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; }
.review-nav { background: rgba(255,255,255,0.15); border: none; color: #fff; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; cursor: pointer; flex-shrink: 0; }
.review-card { background: #fff; border-radius: 1.25rem; padding: 2rem; text-align: center; min-height: 210px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-strong); }
.review-stars { color: #f5b400; font-size: 1.3rem; margin-bottom: 0.75rem; }
.review-text { font-style: italic; color: var(--text-dark); margin-bottom: 1rem; }
.review-author { font-weight: 800; color: var(--happy-blue); }
.review-store { font-size: 0.85rem; color: var(--text-muted); }
.review-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.review-dots button { width: 0.7rem; height: 0.7rem; border-radius: 999px; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; }
.review-dots button.active { width: 1.6rem; background: var(--happy-orange); }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft); padding: 2rem; margin-bottom: 1.75rem; }
.form-card h2 { color: var(--happy-blue); font-size: 1.4rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--border-soft); padding-bottom: 1rem; margin: 0 0 1.5rem; }
.step-num { background: var(--happy-orange); color: #fff; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text-dark); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; border: 1px solid #d1d5db; border-radius: 0.6rem; padding: 0.75rem 0.9rem;
  font-family: inherit; font-size: 0.95rem; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--happy-orange); box-shadow: 0 0 0 3px rgba(202,82,31,0.15); }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.checkbox-line { display: flex; align-items: center; gap: 0.6rem; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 0.6rem; padding: 0.85rem 1rem; }
.radio-line { display: flex; gap: 2rem; flex-wrap: wrap; }
.radio-line label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; cursor: pointer; }
.upload-zone {
  border: 2px dashed rgba(10,82,154,0.3); border-radius: 1rem; padding: 2.5rem 1.5rem;
  text-align: center; background: #f5f9fe; color: var(--happy-blue);
}
/* Le champ <input type=file> natif du navigateur (bouton "Parcourir" gris, non personnalisable
   par CSS) est masqué visuellement ; un <label> stylé au design du site déclenche la même
   sélection de fichier au clic, sans rien changer au fonctionnement du formulaire. */
.file-input-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.upload-zone label.btn { cursor: pointer; }
.help-note { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }
.alert { border-radius: 0.75rem; padding: 1rem 1.25rem; font-size: 0.9rem; margin-bottom: 1.5rem; }
.alert-info { background: #eaf2fb; color: var(--happy-blue); border-left: 4px solid var(--happy-blue); }
.alert-success { background: #eef7e3; color: #4a6b17; border-left: 4px solid var(--happy-green); }
.alert-error { background: #fdeeea; color: #9a2b0e; border-left: 4px solid var(--happy-orange); }
.success-box { background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-strong); border-top: 8px solid var(--happy-green); padding: 3rem 2rem; text-align: center; max-width: 600px; margin: 3rem auto; }
.success-box .icon-circle { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: #e7f3d6; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2.5rem; }

/* ---------- Bandeaux / CTA ---------- */
.cta-band {
  border-radius: 2rem; padding: 3rem 2rem; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center;
}
@media (min-width: 900px) { .cta-band { flex-direction: row; justify-content: space-between; text-align: left; } }
.cta-band.blue { background: linear-gradient(120deg, var(--happy-blue), var(--happy-blue-dark)); }
.cta-band h2 { font-size: 1.8rem; margin: 0 0 0.75rem; }
.cta-band p { opacity: 0.9; margin: 0; max-width: 480px; }

/* ---------- Actualités ---------- */
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft); display: flex; flex-direction: column; }
.news-thumb { height: 190px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; background-size: contain; background-repeat: no-repeat; background-position: center; }
.news-thumb .badge-row { position: absolute; top: 1rem; left: 1rem; right: 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.news-thumb .badge-row .badge { margin: 0; }
.news-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--text-muted); font-weight: 700; margin-bottom: 0.75rem; flex-wrap: wrap; }
.news-body h3 { color: var(--happy-blue); font-size: 1.15rem; margin: 0 0 0.6rem; }
.news-body p { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }
.news-text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0 !important; }
.news-text.expanded { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.news-readmore { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: none; padding: 0.5rem 0 0; margin: 0; color: var(--happy-blue); font-weight: 700; font-size: 0.85rem; cursor: pointer; font-family: inherit; }
.news-readmore:hover { text-decoration: underline; }
.news-readmore .chevron { display: inline-block; transition: transform 0.2s ease; }
.news-readmore.expanded .chevron { transform: rotate(180deg); }
.news-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state-icon {
  width: 5rem; height: 5rem; border-radius: 50%; background: #fff; border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; color: var(--happy-blue);
  box-shadow: var(--shadow-soft);
}
.empty-state-icon .icon { width: 2.1rem; height: 2.1rem; }

/* ---------- Vide-maison : comparateur avant/après ---------- */
.compare { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-strong); user-select: none; }
.compare-after, .compare-before { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.compare-after { background: #eef7e3; border: 3px dashed var(--happy-green); color: #4a6b17; }
.compare-before { background: #3b3b3b; color: #fff; border: 3px dashed var(--happy-orange); overflow: hidden; }
.compare-before .inner { background: rgba(202,82,31,0.15); width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.compare.compare-portrait { aspect-ratio: 4/5; }
.compare-after.has-photo, .compare-before.has-photo {
  background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #24272c; border: none; padding: 0;
}
.compare-before.has-photo .inner { background: none; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-handle { position: absolute; top: 0; bottom: 0; width: 4px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,0.4); pointer-events: none; }
.compare-handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.5rem; height: 2.5rem; background: #fff; border: 3px solid var(--happy-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--happy-blue); font-weight: 800; }
.compare-tag { position: absolute; bottom: 1rem; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.compare-tag.before { left: 1rem; background: rgba(0,0,0,0.55); color: #fff; }
.compare-tag.after { right: 1rem; background: rgba(255,255,255,0.85); color: var(--happy-green); }

/* ---------- Histoire ---------- */
.timeline-block { border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.75rem; }
.timeline-block h2 { margin-top: 0; }
.timeline-block.blue { background: var(--bg-soft); border-left: 8px solid var(--happy-blue); }
.timeline-block.orange { background: #fff; border-top: 4px solid var(--happy-orange); box-shadow: var(--shadow-soft); }
.timeline-block.green { background: #f3f8ea; border-left: 8px solid var(--happy-green); }
.timeline-list li { display: flex; gap: 1rem; margin-bottom: 0.9rem; }
.timeline-list strong { width: 4.5rem; color: var(--happy-orange); flex-shrink: 0; }
.future-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; font-size: 0.9rem; font-weight: 700; margin-top: 1.5rem; }
.future-grid div { background: rgba(255,255,255,0.12); padding: 0.9rem; border-radius: 0.6rem; text-align: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--happy-blue); color: #dce8f7; padding: 3.5rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { background: #fff; display: inline-block; padding: 0.5rem 1rem; border-radius: 0.6rem; margin-bottom: 1rem; }
.footer-logo img { height: 34px; }
.footer-grid h4 { color: var(--happy-green); font-size: 1.05rem; margin: 0 0 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { background: var(--happy-orange); transform: translateY(-2px); }
.footer-social a svg { width: 1.1rem; height: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: #b9d0ea; }
.footer-bottom a { color: #b9d0ea; text-decoration: underline; }

/* ---------- Divers ---------- */
.page-hero { text-align: center; padding: 3.5rem 0 1rem; }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; color: var(--happy-blue); margin: 0 0 0.75rem; }
.page-hero .sub { font-family: 'Caveat', cursive; color: var(--happy-orange); font-size: 1.7rem; }
.pill-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pill { padding: 0.6rem 1.4rem; border-radius: 999px; font-weight: 800; color: #fff; }

.dark-section { background: #14181f; color: #fff; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.espace-pro-link { position: fixed; bottom: 1.25rem; right: 1.25rem; background: #fff; border: 1px solid var(--border-soft); color: var(--text-muted); font-size: 0.75rem; padding: 0.5rem 0.9rem; border-radius: 999px; box-shadow: var(--shadow-soft); z-index: 40; }
.espace-pro-link:hover { color: var(--happy-blue); }

/* ---------- FAQ (accordion sans JavaScript, basé sur <details>/<summary>) ---------- */
.faq-section { max-width: 46rem; margin: 3rem auto 0; }
.faq-section h2 { text-align: center; color: var(--happy-blue); font-size: 1.9rem; margin-bottom: 1.75rem; }
.faq-item { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); margin-bottom: 0.9rem; box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 800; color: var(--happy-blue); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--happy-orange); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.4rem 1.2rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Espace unique (Vague 63) : étiquette au-dessus d'un groupe d'onglets ---------- */
.groupe-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 1.5rem 0 0.4rem; }
.groupe-label:first-of-type { margin-top: 0.25rem; }

/* ---------- Bandeau de consentement cookies (voir §6.28, Google Analytics facultatif) ---------- */
.ht-cookie-bandeau {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 3px solid var(--happy-blue);
  box-shadow: 0 -10px 35px rgba(0,0,0,0.12);
  padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.ht-cookie-txt { flex: 1; min-width: 260px; font-size: 0.85rem; color: var(--text-dark); line-height: 1.5; }
.ht-cookie-txt a { color: var(--happy-blue); font-weight: 700; }
.ht-cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
body.ht-cookie-visible .espace-pro-link { bottom: 5.75rem; }
@media (max-width: 600px) {
  .ht-cookie-bandeau { padding: 0.9rem 1rem; }
  .ht-cookie-actions { width: 100%; }
  .ht-cookie-actions .btn { flex: 1; }
}
