/* ==========================================================================
   Allié Gestion — charte v2 (alignée sur le dashboard « version aérée »)
   PROPOSITION : chargée APRÈS les styles de chaque page.
   - Fond blanc conservé ; jamais de blanc sur du blanc (cartes beige sur fond blanc, cartes blanches sur fond beige)
   - Titres et chiffres en Montserrat, texte en Lato 16 px, Playfair = nom seul
   - Texte secondaire #6E665B (lisible), boutons #D23E68 (texte blanc lisible)
   - Les boutons GARDENT leur surbrillance (halo rose + léger soulèvement)
   ========================================================================== */

:root {
  --creme: #F8F5EF;
  --blanc: #FFFFFF;
  --beige: #F1EBE1;          /* beige clair (sections, carte mise en avant) */
  --taupe: #CBBBA0;          /* lignes */
  --gris:  #6E665B;          /* texte secondaire lisible */
  --noir:  #1C1C1C;
  --rose:  #E8537A;          /* accent */
  --rose-btn: #D23E68;       /* boutons */
  --rose-btn-hover: #BF345C;
  --glow: 0 8px 22px rgba(210,62,104,0.38);
  --glow-hover: 0 14px 32px rgba(210,62,104,0.48);
  --ag-beige: #F1EBE1; --ag-gris: #6E665B; --ag-rose: #D23E68; --ag-rose-fonce: #BF345C;
}

body { font-size: 16px; line-height: 1.65; }
/* Pages outil (devis, simulateur, page campagne) : fond beige sous la carte blanche */
body:has(.tool-hero), body:has(.mini-header) { background: var(--beige) !important; }

/* ─── Typographie ─── */
h1, h2, h3, .stat-num, .offre-price, .price, .faq-q,
.step-num, .module-num, .p-num, .form-section-title, .exo-num, .result-value {
  font-family: 'Montserrat', sans-serif !important;
  letter-spacing: -0.01em;
}
h1 { font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -0.02em !important; }
h2 { font-weight: 600 !important; line-height: 1.2 !important; }
/* Grands titres des pages principales (Montserrat est plus large que Playfair) */
.hero-text h1 { font-size: clamp(2.2rem, 3.6vw, 3.3rem) !important; line-height: 1.12 !important; }
.section-label + h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem) !important; }
.step-num, .module-num, .p-num, .exo-num { font-weight: 600 !important; }
h3 { font-weight: 600 !important; }
h1 em, h2 em, h3 em { font-style: normal !important; color: var(--rose) !important; font-weight: inherit !important; }
.stat-num { font-weight: 700 !important; }
.faq-q { font-weight: 600 !important; }

p, li, .section-intro, .stat-desc, .hero-desc { font-size: max(1rem, 1em); }
.hero-desc, .section-intro { font-weight: 400 !important; color: var(--gris) !important; line-height: 1.75 !important; }
.section-intro, .hero-note, .stat-label, .service-card p, .offre-card li, .contact-item { color: var(--gris) !important; }

/* Étiquettes : Lato gras, majuscules, espacées */
.section-label, .eyebrow, .offre-label {
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important; letter-spacing: 0.18em !important;
  text-transform: uppercase; color: var(--gris) !important;
}
.eyebrow { color: var(--rose-btn) !important; }
.eyebrow::before { background: var(--rose-btn) !important; }

/* Playfair réservé au nom « Allié Gestion » */
.site-nav .nav-logo, .site-footer .footer-logo { font-family: 'Playfair Display', serif !important; }

/* ─── Sections et cartes : plus d'air, moins de bordures ─── */
body > section { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
.probleme, .offres, .contact { background: var(--beige) !important; }
.hero-bg { background: var(--beige) !important; }
.hero-bg::after { display: none; }

.service-card, .offre-card, .faq-item, .stat-card, .solution-box {
  border-color: transparent !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 10px rgba(28,28,28,0.04) !important;
}
.service-card, .offre-card:not(.featured), .faq-item { background: var(--blanc) !important; }
.stat-card:not(.wide) { background: var(--beige) !important; }
.stat-card.wide, .offre-card.featured { background: var(--noir) !important; }
.service-card:hover, .offre-card:hover:not(.featured), .faq-item[open] {
  box-shadow: 0 12px 30px rgba(28,28,28,0.08) !important;
}

/* ─── Boutons : rose bouton + SURBRILLANCE conservée ─── */
.btn-primary, .btn-rose, .btn-next, .form-submit, .submit-zone button, a.btn, .site-nav .nav-links .nav-cta {
  background: var(--rose-btn) !important; color: #fff !important;
  box-shadow: var(--glow) !important;
  font-family: 'Lato', sans-serif; font-weight: 700;
}
.btn-primary:hover, .btn-rose:hover, .btn-next:hover, .form-submit:hover, .submit-zone button:hover, a.btn:hover, .site-nav .nav-links .nav-cta:hover {
  background: var(--rose-btn-hover) !important;
  box-shadow: var(--glow-hover) !important;
  transform: translateY(-3px);
}
.offre-card.featured .btn-primary { background: var(--rose-btn) !important; color: #fff !important; }
.btn-outline { background: var(--blanc) !important; border-color: var(--taupe) !important; }
.btn-primary:focus-visible, .btn-outline:focus-visible, .form-submit:focus-visible {
  outline: 3px solid rgba(210,62,104,0.35); outline-offset: 3px;
}

/* ─── Menu clair : pastille beige sur la page active ─── */
.site-nav { background: rgba(255,255,255,0.96) !important; border-bottom-color: transparent !important; box-shadow: 0 1px 0 rgba(203,187,160,0.35); }
.site-nav .nav-links a:not(.nav-cta) { font-family: 'Lato', sans-serif; font-weight: 700; color: var(--noir); padding: 0.5rem 1rem; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav .nav-links a:not(.nav-cta):hover { background: var(--beige); color: var(--noir) !important; }
.site-nav .nav-links a[aria-current="page"]:not(.nav-cta) { background: var(--beige); color: var(--noir) !important; }
.site-nav .nav-links { gap: 0.6rem; }
@media (max-width: 1400px) {
  .site-nav .nav-links { background: var(--blanc) !important; }
}

/* Formulaires */
.form-group input, .form-group textarea, .form-group select { background: var(--blanc) !important; border-color: #E4DCCF !important; border-radius: 12px !important; font-size: 1rem !important; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--rose-btn) !important; box-shadow: 0 0 0 4px rgba(210,62,104,.12) !important; }

/* Titres des encadrés : droits (pas d'italique), cohérent Montserrat */
.solution-box h3, .solution-box h3 em { font-style: normal !important; }

/* Carte mise en avant (fond noir) : texte clair lisible */
.offre-card.featured p, .offre-card.featured li { color: rgba(255,255,255,0.82) !important; }
.offre-card.featured h3 { color: #fff !important; }
.offre-card.featured .offre-label { background: rgba(255,255,255,0.1) !important; color: var(--taupe) !important; }
.offre-card:not(.featured) .offre-label { background: var(--beige) !important; }
/* Pastilles d'initiales des services : texte lisible */
.service-icon { color: var(--gris) !important; border-color: var(--taupe) !important; font-family: 'Montserrat', sans-serif !important; font-weight: 600; }

/* Règle de contraste : jamais de blanc sur du blanc.
   Section à fond blanc  → cartes beige clair.
   Section à fond beige  → cartes blanches. */
.faq, .services, #services { background: var(--blanc) !important; }
#services .service-card, .faq .faq-item { background: var(--beige) !important; border: none !important; box-shadow: none !important; }
#services .service-card:hover, .faq .faq-item[open] { box-shadow: 0 12px 30px rgba(28,28,28,0.08) !important; }
#services .service-icon { background: var(--blanc) !important; }
@media (max-width: 600px) {
  h1 { font-size: clamp(2rem, 8.6vw, 2.4rem) !important; }
  h1 br { display: none; }
}

/* Bouton secondaire foncé (page Nous rejoindre) : noir, halo discret */
.btn-dark { box-shadow: 0 8px 20px rgba(28,28,28,0.22) !important; }
.btn-dark:hover { background: var(--noir) !important; box-shadow: 0 14px 30px rgba(28,28,28,0.3) !important; }

/* Nous rejoindre : jamais de blanc sur du blanc */
.questionnaire { background: var(--beige) !important; }
.formation .module { background: var(--beige) !important; border-color: transparent !important; }

/* Titres des pages outil et de la page campagne : plus sobres en Montserrat */
.tool-hero h1 { font-size: clamp(1.7rem, 2.8vw, 2.3rem) !important; font-weight: 600 !important; line-height: 1.25 !important; }
.mini-header ~ * h1, .hero h1:not(.hero-text h1) { font-weight: 700 !important; }
/* Test pratique : encadré d'infos en beige (pas de blanc sur blanc) */
.infos { background: var(--beige) !important; box-shadow: none !important; border-color: transparent !important; }

/* Sections à fond noir : étiquettes en taupe (lisibles sur le noir) */
.cta-section .section-label, .processus .section-label, .stat-card.wide .stat-label { color: var(--taupe) !important; }
/* Titres équilibrés : pas de mot ou de « ? » seul sur la dernière ligne */
h1, h2, h3 { text-wrap: balance; }

/* ─── Qui suis-je (accueil) : fond blanc → carte beige ─── */
#qui-suis-je { background: var(--blanc); padding: 1rem 5% 5.5rem !important; }
.apropos-card { max-width: 1040px; margin: 0 auto; background: var(--beige); border-radius: 28px;
  display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center; padding: 3rem 3.5rem; }
.apropos-photo { width: 280px; height: 280px; display: block; }
.apropos-text h2 { margin-bottom: 1rem; }
.apropos-text p:not(.section-label) { color: var(--noir); line-height: 1.75; margin-bottom: 0.9rem; font-size: 1rem; }
.apropos-reperes { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; padding: 0; }
.apropos-reperes li { background: var(--blanc); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.85rem; font-weight: 700; color: var(--noir); }
@media (max-width: 800px) {
  .apropos-card { grid-template-columns: 1fr; text-align: center; padding: 2.2rem 1.4rem; gap: 1.5rem; }
  .apropos-photo { width: 200px; height: 200px; margin: 0 auto; }
  .apropos-reperes { justify-content: center; }
  .apropos-text p:not(.section-label) { text-align: left; }
}
