/* ==========================================================================
   EQUISENSI.COACH — SCRIPT CENTRALISÉ (v2.6)
   ==========================================================================
  ╔══════════════════════════════════════════════════════════════════════════╗
  ║      EQUISENSI.COACH                                                     ║
  ╠══════════════════════════════════════════════════════════════════════════╣
  ║  Artisan Créateur : Gilles Botteron — 2067 Chaumont (Neuchâtel, Suisse)  ║
  ║  Web : https://chaumontplage.ch     | Mail : gilles@chaumontplage.ch     ║
  ║  Tél / WhatsApp : +41 78 930 10 20                                       ║
  ╠══════════════════════════════════════════════════════════════════════════╣
  ║  SOUS LE CAPOT :                                                         ║
  ║  • Pur code artisanal : HTML5 / CSS3 / Vanilla JS — Zéro usine à gaz     ║
  ║  • Éthique & Vie privée (nLPD) : 0% cookie, 0% tracker, 100% respect     ║
  ║  • Hébergement vert en Suisse : Infomaniak Network SA 🌿                 ║
  ╠══════════════════════════════════════════════════════════════════════════╣
  ║  DROITS D'AUTEUR (LDA Suisse) :                                          ║
  ║  Propriété intellectuelle exclusive de Gilles Botteron / ChaumontPlage.  ║
  ║  On regarde avec les yeux, on ne copie pas avec les doigts ! 😉          ║
  ╚══════════════════════════════════════════════════════════════════════════╝
*/

:root {
    --vert-olive-fonce: #2f3b26;
    --vert-olive-moyen: #4b5d3c;
    --vert-pomme-accent: #8cb332;
    --vert-lime-clair: #d8f862;
    --terre-cuite: #b85d3b;
    --creme-fond: #fafaf7;
    --blanc-pur: #ffffff;
    --texte-principal: #2b3127;
    --texte-secondaire: #555e4f;
    --border-soft: #e2e7dc;
    --shadow-card: 0 12px 30px rgba(47, 59, 38, 0.06);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--creme-fond);
    color: var(--texte-principal);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--vert-olive-fonce);
    line-height: 1.25;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-txt {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--vert-olive-fonce);
}

.logo-txt span {
    color: var(--vert-pomme-accent);
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.35rem;
}

nav a {
    text-decoration: none;
    color: var(--texte-principal);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.35rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--vert-pomme-accent);
    border-bottom-color: var(--vert-pomme-accent);
    font-weight: 600;
}

/* ==========================================================================
   Bannières Hero (Centrage parfait garanti sur toutes les pages)
   ========================================================================== */
.page-hero,
.hero-home,
.hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.hero-content {
    max-width: 860px !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 0 1rem !important;
}

.hero-content h1,
.hero-content p,
.hero-content .section-tag,
.hero-content .hero-sub {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* ==========================================================================
   Sections & Conteneurs
   ========================================================================== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--vert-pomme-accent);
    margin-bottom: 0.6rem;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    margin-bottom: 0.9rem;
}

.section-header p {
    color: var(--texte-secondaire);
    font-size: 1.05rem;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
    display: inline-block;
    background-color: var(--vert-pomme-accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 0.9rem 1.9rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(140, 179, 50, 0.3);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover {
    background-color: var(--vert-olive-fonce);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 59, 38, 0.25);
}

/* ==========================================================================
   Grille des Cartes-Portes (Accueil & Thérapies)
   ========================================================================== */
.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portal-card {
    background: var(--blanc-pur);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(47, 59, 38, 0.12);
    border-color: var(--vert-pomme-accent);
}

.portal-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-bottom: 1px solid var(--border-soft);
}

.portal-body {
    padding: 1.7rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.3rem;
}

.portal-icon {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.portal-body h3 {
    font-size: 1.28rem;
    margin-bottom: 0.65rem;
}

.portal-body p {
    font-size: 0.96rem;
    color: var(--texte-secondaire);
    line-height: 1.6;
}

.portal-link {
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--vert-pomme-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.portal-card:hover .portal-link {
    gap: 0.6rem;
    color: var(--vert-olive-fonce);
}

/* ==========================================================================
   Accordéons Dynamiques (Sous-pages Thérapies)
   ========================================================================== */
.accordion-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--blanc-pur);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    transition: border-color 0.25s ease;
}

.accordion-item.active {
    border-color: var(--vert-pomme-accent);
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1.35rem 1.6rem;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vert-olive-fonce);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.accordion-trigger:hover {
    background-color: #f6f9f1;
}

.accordion-icon {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--vert-pomme-accent);
    transition: transform 0.28s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.6rem;
    color: var(--texte-principal);
    font-size: 0.99rem;
    line-height: 1.7;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1200px;
    padding: 0.2rem 1.6rem 1.6rem;
    border-top: 1px solid #f0f4eb;
}

/* ==========================================================================
   Pied de page (Footer)
   ========================================================================== */
footer {
    background-color: #1f2719;
    color: #e5eadf;
    text-align: center;
    padding: 4rem 1.5rem 2.8rem;
    margin-top: 4rem;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 2.2rem;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-pill:hover {
    background-color: var(--vert-pomme-accent);
    color: #1f2719;
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.92rem;
    opacity: 0.88;
    margin-bottom: 0.8rem;
}

.footer-signature {
    font-size: 0.84rem;
    opacity: 0.78;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

.footer-signature a {
    color: var(--vert-lime-clair);
    text-decoration: none;
    font-weight: 600;
}

.footer-signature a:hover {
    text-decoration: underline;
}

.legal-modal-trigger {
    background: none;
    border: none;
    color: var(--vert-lime-clair);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* ==========================================================================
   Modale Mentions Légales & nLPD
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 12, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.modal-overlay.active,
.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    color: var(--texte-principal);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 22px;
    padding: 2.2rem;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.3rem;
    background: #f1f6ea;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--vert-olive-fonce);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: #e1edd6;
}

.modal-box h2 {
    font-size: 1.45rem;
    margin-bottom: 1.3rem;
    padding-right: 2rem;
}

.modal-box h3 {
    font-size: 1.05rem;
    margin: 1.3rem 0 0.45rem;
}

.modal-box p {
    font-size: 0.94rem;
    color: var(--texte-secondaire);
    line-height: 1.6;
}

.modal-box a {
    color: var(--vert-olive-fonce);
    font-weight: 600;
}

/* ==========================================================================
   Responsive Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .header-inner {
        justify-content: center;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 0.85rem 1.1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .container {
        padding: 3rem 1.1rem;
    }
}