/*
Theme Name: Light - Alliance Donateurs
Theme URI: https://alliance-donateurs.com
Description: Theme institutionnel sobre et elegant pour Alliance Donateurs
Version: 2.0.0
Author: Alliance Donateurs
Text Domain: light
*/

/* ==========================================================================
   CSS VARIABLES - Palette & Typography
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #14243F;
    --color-primary-light: #1c3458;
    --color-background: #f8f8f8;
    --color-white: #ffffff;
    --color-text: #14243F;
    --color-text-light: #5a5a5a;
    --color-accent: #C9A34A;
    --color-accent-light: #d4b56a;
    --color-border: #e5e5e5;
    --color-border-dark: #cccccc;
    --color-overlay: rgba(20, 36, 63, 0.55);

    /* Typography */
    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-body:
        "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 6rem;
    --section-padding-mobile: 3.5rem;
    --container-max-width: 1120px;
    --text-max-width: 750px;
    --text-narrow-width: 680px;

    /* Surfaces */
    --radius: 4px;
    --shadow-soft: 0 12px 40px rgba(10, 36, 99, 0.06);
    --shadow-card: 0 1px 0 rgba(10, 36, 99, 0.04), 0 8px 24px rgba(10, 36, 99, 0.05);

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 2.15rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-accent);
}

a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: var(--text-max-width);
}

.container--text {
    max-width: var(--text-narrow-width);
}

section {
    padding: var(--section-padding) 0;
}

.section--white {
    background-color: var(--color-white);
    position: relative;
    z-index: 2;
}

.section--light {
    background-color: var(--color-background);
    position: relative;
    z-index: 2;
}

.section--primary {
    background-color: #14243F;
    color: var(--color-white);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 36, 63, 0.55);
    z-index: 1;
    pointer-events: none;
}

.section--primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 2;
    pointer-events: none;
}

.section--primary h1,
.section--primary h2,
.section--primary h3,
.section--primary strong {
    color: var(--color-white);
}

.section--primary p {
    color: rgba(255, 255, 255, 0.9);
}

.section--primary .section-kicker {
    color: var(--color-accent);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0 0 4px 4px;
    backdrop-filter: blur(12px);
    transition:
        box-shadow var(--transition-base),
        background-color var(--transition-base);
    width: 100%;
    max-width: 1120px;
}

.site-header.blur {
    backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.95);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(10, 36, 99, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #14243F;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-logo:hover {
    color: #14243F;
}

.site-logo .logo-icon {
    width: auto;
    height: 1.5rem;
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.site-logo .logo-icon img {
    width: auto;
    height: 1.5rem;
    display: block;
}

.site-logo .logo-text {
    display: inline-block;
    color: #14243F;
    font-weight: 700;
}

/* Navigation */
.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.main-nav li {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    vertical-align: baseline;
}

.main-nav a.nav-contact,
.mobile-nav a.nav-contact {
    color: #C9A34A;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}

.main-nav a.nav-contact::after {
    background-color: #C9A34A;
}

.main-nav a.nav-contact:hover,
.mobile-nav a.nav-contact:hover {
    color: #b8923e;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    width: 100%;
}

/* Boutons aperçu pop-up (TEMP - à retirer après validation client) */
.nav-preview {
    display: flex;
    align-items: center;
}

.btn-preview-popup {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: transparent;
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-preview-popup:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Account link styles */
.account-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    vertical-align: middle;
}

/* Account icon for logged out users */
.account-icon {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
    transition: fill var(--transition-base);
    flex-shrink: 0;
    display: block;
}

.main-nav .account-link:hover .account-icon {
    fill: var(--color-accent);
}

/* Online indicator for logged in users */
.online-indicator {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Green color */
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: gentle-pulse 2s ease-in-out infinite;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Gentle pulse animation */
@keyframes gentle-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

/* Mobile menu button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-base);
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 0;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a.nav-contact {
    color: #C9A34A;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}

.mobile-nav a.is-active {
    font-weight: 600;
}

.mobile-nav li:last-child a {
    border-bottom: none;
}

/* Mobile account link styles */
.mobile-nav .account-link {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.mobile-nav .account-link .account-icon {
    width: 24px;
    height: 24px;
}

.mobile-nav .online-indicator {
    width: 10px;
    height: 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding-top: calc(80px + 4.5rem);
    padding-bottom: 4.5rem;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 14em;
}

.hero-tagline {
    font-size: 1.2rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.68);
    max-width: 36em;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

/* ==========================================================================
   BUTTONS & CTA
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 28px;
    border-radius: 6px;
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--gold {
    background-color: #C9A34A;
    color: #14243F;
    border-color: #C9A34A;
}

.btn--gold:hover {
    background-color: #b8923e;
    color: #14243F;
    border-color: #b8923e;
}

.section--primary .btn--primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.section--primary .btn--primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.cta-note {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

.section--primary .cta-note {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */

.problem-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
}

.problem-text {
    flex: 1;
    max-width: var(--text-narrow-width);
}

.problem-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.problem-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.problem-section h2 {
    margin-bottom: 2rem;
}

.problem-section p {
    font-size: 1.15rem;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .problem-content {
        flex-direction: column;
        gap: 2rem;
    }

    .problem-image {
        justify-content: center;
        width: 100%;
    }

    .problem-text {
        max-width: 100%;
    }
}

/* ==========================================================================
   SOLUTION SECTION
   ========================================================================== */

.solution-intro {
    max-width: var(--text-narrow-width);
    margin: 0 auto 3.5rem;
}

.solution-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.solution-column {
    padding: 2.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
}

.solution-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
}

.solution-column ul {
    list-style: none;
    padding-left: 0;
}

.solution-column li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.solution-column li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.solution-do li::before {
    content: "✓";
    color: var(--color-accent);
}

.solution-dont li::before {
    content: "✗";
    color: var(--color-border-dark);
}

.solution-note {
    max-width: var(--text-narrow-width);
    margin: 3rem auto 0;
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
}

/* ==========================================================================
   METHOD SECTION - 4 Steps
   ========================================================================== */

.method-section {
    background-color: var(--color-white);
}

.method-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.method-header h2 {
    font-size: 2rem;
}

.method-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.method-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--color-background);
    border-left: 3px solid var(--color-border);
    transition: border-color var(--transition-base);
}

.method-step:hover {
    border-left-color: var(--color-accent);
}

.step-icon {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
    align-self: center;
}

.step-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   ETHICS SECTION
   ========================================================================== */

.ethics-section {
    background-color: var(--color-background);
}

.ethics-content {
    max-width: var(--text-narrow-width);
    margin: 0 auto;
}

.ethics-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.ethics-intro {
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 3rem;
}

.ethics-list {
    list-style: none;
    padding: 0;
}

.ethics-list li {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.ethics-list li:last-child {
    border-bottom: none;
}

.ethics-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ethics-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
    stroke-width: 2;
    fill: none;
}

.ethics-item-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.ethics-item-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
    padding-left: calc(24px + 1rem);
}

/* ==========================================================================
   BUSINESS MODEL SECTION
   ========================================================================== */

.business-section {
    background-color: var(--color-white);
}

.business-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.business-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: left;
}

.business-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1.05rem;
    color: var(--color-text);
    flex: 0 1 auto;
}

.business-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.business-highlight {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 3rem;
    margin-top: 2rem;
}

.business-highlight p {
    font-size: 1.2rem;
}

.business-highlight strong {
    color: var(--color-accent);
}

/* ==========================================================================
   SOCIAL PROOF SECTION
   ========================================================================== */

.proof-section {
    background-color: var(--color-background);
}

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

.proof-note {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
}

.proof-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.proof-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.proof-sector-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
}

.proof-sector-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.proof-sector {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    padding: 0;
    border: none;
}

.proof-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
}

.proof-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proof-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.4;
    font-weight: 400;
    text-transform: lowercase;
}

.proof-item strong {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-block;
    min-width: 180px;
}

.proof-conclusion {
    max-width: var(--text-narrow-width);
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   ELIGIBILITY SECTION
   ========================================================================== */

.eligibility-section {
    background-color: var(--color-white);
}

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

.eligibility-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.eligibility-column {
    padding: 2rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.eligibility-column h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.eligibility-column ul {
    list-style: none;
    padding-left: 0;
}

.eligibility-column li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
}

.eligibility-yes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.eligibility-no li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--color-border-dark);
    font-weight: bold;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta-section {
    background-color: var(--color-background);
    text-align: center;
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-content h2 {
    margin-bottom: 1.5rem;
}

.final-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   FOOTER — Minimal & Pro
   ========================================================================== */

.site-footer {
    background-color: #14243F;
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.1rem 0;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Logo */
.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color var(--transition-base);
    flex-shrink: 0;
}

.footer-logo-link:hover {
    color: var(--color-white);
}

.footer-logo-icon {
    width: auto;
    height: 1.1rem;
    display: block;
    flex-shrink: 0;
    opacity: 0.75;
}

/* Links */
.footer-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* Copyright */
.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   IMAGE PLACEHOLDERS
   ========================================================================== */

.image-placeholder {
    background-color: var(--color-background);
    border: 1px dashed var(--color-border-dark);
    padding: 2rem;
    text-align: center;
}

.placeholder-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

.placeholder-description strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-style: normal;
}

/* ==========================================================================
   GSAP ANIMATION CLASSES
   ========================================================================== */

/* Initial states for GSAP animations - elements are visible by default */
/* GSAP will handle the animation states */

/* Fallback for users with reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .stagger-item,
    .hp-final-cta .hp-kicker,
    .hp-final-cta h2,
    .hp-final-cta__lead,
    .hp-final-cta__actions {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE STYLES - Mobile First
   ========================================================================== */

/* Mobile adjustments */
@media (max-width: 767px) {
    .proof-item strong {
        min-width: auto;
        display: block;
        margin-bottom: 0.25rem;
    }

    .proof-card {
        padding: 1.75rem;
    }

    .proof-number {
        font-size: 2.5rem;
        min-height: 3rem;
    }

    .proof-label {
        font-size: 0.7rem;
    }

    .proof-content {
        gap: 1.5rem;
    }

    /* Mobile hero section adjustments */
    .section--primary {
        background-image: var(--inner-hero-bg, var(--hero-bg-image));
        background-size: cover;
        background-position: center 30%;
        background-repeat: no-repeat;
    }

    .section--primary::before {
        background:
            linear-gradient(
                to bottom,
                rgba(9, 15, 27, 0.8) 0%,
                rgba(9, 15, 27, 0.7) 60%,
                rgba(9, 15, 27, 0.86) 100%
            );
    }

    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 0.75rem;
    }

    .hero-tagline {
        font-size: 1.05rem;
        font-weight: 400;
        margin-bottom: 1.75rem;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    :root {
        --section-padding: 5rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .header-inner {
        padding: 0 1.5rem;
    }

    .main-nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    /* Desktop hero section background */
    .section--primary {
        background-image: var(--inner-hero-bg, var(--hero-bg-image));
        background-size: cover;
        background-position: center 30%;
        background-repeat: no-repeat;
    }

    .solution-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .method-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .eligibility-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bar {
        flex-wrap: nowrap;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .header-inner {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .site-logo .logo-text {
        font-size: 1.2rem;
    }

    .main-nav ul {
        gap: 0.75rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --section-padding: 6rem;
    }

    h1 {
        font-size: 3rem;
    }

    .method-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .method-step {
        flex-direction: column;
        text-align: left;
        padding: 2rem 1.5rem;
        border-left: none;
        border-top: 3px solid var(--color-border);
    }

    .method-step:hover {
        border-top-color: var(--color-accent);
        border-left-color: transparent;
    }

    .step-icon {
        align-self: center;
    }

    .step-content h4 {
        justify-content: flex-start;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

/* Contact Hero */
.contact-hero.section--primary {
    min-height: auto;
    padding-top: calc(80px + 5.5rem);
    padding-bottom: 5.5rem;
    background-position: 78% 22%;
}

/* Contact Section */
.contact-section {
    background-color: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper {
    max-width: 100%;
}

.contact-form-wrapper h2 {
    margin-bottom: 1rem;
}

.contact-form-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* Form Messages */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 2px;
    border-left: 3px solid;
}

.form-message--success {
    background-color: #f0f9f4;
    border-left-color: #10b981;
    color: #065f46;
}

.form-message--error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.form-message-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-message--success .form-message-icon {
    stroke: #10b981;
    stroke-width: 2;
    fill: none;
}

.form-message--error .form-message-icon {
    stroke: #ef4444;
    stroke-width: 2;
    fill: none;
}

.form-message p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
}

.form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-input,
.form-textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background-color: var(--color-white);
    color: var(--color-text);
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base);
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-group--submit {
    margin-top: 0.5rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    font-style: italic;
}

/* Contact Info */
.contact-info-wrapper {
    background-color: var(--color-background);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

.contact-info-wrapper h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-info-item:last-of-type {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    stroke: var(--color-accent);
    stroke-width: 1.5;
    fill: none;
    margin-top: 0.25rem;
}

.contact-info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-info-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-info-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-info-content a:hover {
    color: var(--color-accent);
}

.contact-info-note {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.contact-info-note p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.7;
}

/* Contact Additional Section */
.contact-additional {
    background-color: var(--color-background);
}

.contact-additional-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-additional-content h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-reasons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-reason {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.contact-reason:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.08);
}

.reason-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    stroke: var(--color-accent);
    stroke-width: 1.5;
    fill: none;
}

.contact-reason h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.contact-reason p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* Responsive adjustments for contact page */
@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-reasons {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-reason {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .contact-wrapper {
        gap: 5rem;
    }

    .contact-info-wrapper {
        padding: 3rem;
    }
}

/* ==========================================================================
   LEGAL NOTICE PAGE STYLES
   ========================================================================== */

/* Legal Hero */
.legal-hero {
    min-height: auto;
}

/* Legal Section */
.legal-section {
    background-color: var(--color-white);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-article {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-article h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    padding-top: 1rem;
}

.legal-article h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-article p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.legal-article ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-article li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.legal-article a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
}

.legal-article a:hover {
    color: var(--color-accent);
}

.legal-info-block {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: var(--color-background);
    border-left: 3px solid var(--color-accent);
}

.legal-info-block h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
}

.legal-info-block p {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

.legal-info-block a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-last-update {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
}

.legal-last-update strong {
    color: var(--color-primary);
    font-style: normal;
}

/* Responsive adjustments for legal page */
@media (min-width: 768px) {
    .legal-article h2 {
        font-size: 2.25rem;
    }

    .legal-content {
        padding: 0 1rem;
    }
}

@media (min-width: 1024px) {
    .legal-content {
        max-width: 950px;
    }

    .legal-article {
        margin-bottom: 5rem;
        padding-bottom: 4rem;
    }
}

/* ==========================================================================
   ACCOUNT PAGE STYLES
   ========================================================================== */

/* Account Hero */
.account-hero {
    min-height: auto;
}

/* Account Section */
.account-section {
    background-color: var(--color-white);
}

/* Dashboard Styles */
.account-dashboard h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

.dashboard-content {
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--color-primary);
    font-weight: 600;
    min-width: 140px;
}

.dashboard-actions {
    text-align: center;
}

.logout-form {
    display: inline-block;
}

/* Authentication Forms */
.account-auth {
    max-width: 500px;
    margin: 0 auto;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.auth-tab:hover {
    color: var(--color-primary);
}

.auth-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}

/* Auth Forms */
.auth-form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.auth-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.auth-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.auth-form > p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Auth Messages */
.auth-messages {
    margin-bottom: 2rem;
}

.auth-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    border-left: 3px solid;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-message--success {
    background-color: #f0f9f4;
    border-left-color: #10b981;
    color: #065f46;
}

.auth-message--error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.auth-message-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.auth-message p {
    margin: 0;
}

/* Account Form */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.account-form .form-row {
    gap: 1rem;
}

/* Responsive adjustments for account page */
@media (min-width: 768px) {
    .auth-form h3 {
        font-size: 1.75rem;
    }

    .account-auth {
        max-width: 600px;
    }

    .dashboard-card {
        padding: 2.5rem;
    }
}

/* ==========================================================================
   HOMEPAGE 2026 — Authority, sections, calculator, pop-ups
   ========================================================================== */

.section-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.85rem;
}

.section-intro {
    max-width: 40rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-intro h2 {
    margin-bottom: 1rem;
}

.section-intro p {
    color: var(--color-text-light);
    font-size: 1.08rem;
}

.card-surface {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

/* Hero authority band */
.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 2.5rem;
}

.authority-card {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem 1.6rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(192, 178, 131, 0.35);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.authority-card h3 {
    color: var(--color-white);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.authority-photo img,
.authority-photo .attachment-medium {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
}

.authority-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.authority-card li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.authority-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
}

.authority-quote {
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent);
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
}

/* Problem list */
.problem-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1rem;
}

.problem-list li {
    position: relative;
    margin: 0;
    padding: 1.35rem 1.5rem 1.35rem 1.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* Editorial */
.editorial {
    max-width: 42rem;
    margin: 0 auto;
}

.editorial h2 {
    text-align: center;
}

.editorial p {
    font-size: 1.12rem;
    color: var(--color-text);
}

.editorial p.lead {
    font-size: 1.2rem;
}

/* Features */
.features-copy {
    max-width: 42rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.solution-column {
    box-shadow: var(--shadow-card);
    border-radius: var(--radius);
}

/* Case studies */
.case-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.case-card {
    padding: 2rem 1.75rem;
    text-align: center;
}

.case-card img {
    max-height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    display: block;
    filter: grayscale(1);
    opacity: 0.9;
}

.case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.case-metric {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.case-metric-label {
    font-size: 0.92rem;
    color: var(--color-text-light);
}

.proof-totals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.proof-totals div {
    padding: 1.25rem;
}

.proof-totals strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.proof-totals span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Testimonials */
.testimonials-frame {
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* Benefits */
.benefits-grid {
    display: grid;
    gap: 1.5rem;
}

.benefit-card {
    padding: 2rem 1.75rem;
    position: relative;
}

.benefit-index {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Bio */
.bio-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.bio-photo img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.bio-copy ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.bio-copy li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
}

.bio-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
}

.bio-convictions {
    margin: 1.5rem 0;
    padding: 1.25rem 1.35rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.bio-convictions p {
    margin-bottom: 0.65rem;
}

.bio-convictions ol {
    margin: 0;
    padding-left: 1.2rem;
}

/* Calculator */
.calculator-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.calculator-card {
    padding: 2.5rem 2rem;
}

.calculator-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.calculator-sub {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.calc-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
}

.calc-form input[type="number"] {
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    width: 100%;
    color: var(--color-text);
}

.calc-form input[type="number"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.08);
}

.calc-toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    text-align: left;
}

.calc-toggle:hover {
    color: var(--color-accent);
}

.calc-help {
    font-size: 0.88rem;
    color: var(--color-text-light);
    font-style: italic;
    margin: 0;
}

.calc-error {
    font-size: 0.9rem;
    color: #991b1b;
    margin: 0;
}

.calc-estimate-fields[hidden],
.calc-error[hidden] {
    display: none;
}

.calc-form .btn {
    margin-top: 0.5rem;
    width: 100%;
}

/* Privacy / objections */
.objection-block {
    max-width: 42rem;
    margin: 0 auto;
}

.legal-callout {
    margin-top: 2rem;
    padding: 1.5rem 1.6rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: var(--radius);
}

.legal-callout h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.legal-callout p {
    font-size: 0.98rem;
    color: var(--color-text-light);
    margin: 0;
}

.centered-copy {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.centered-copy p {
    font-size: 1.1rem;
}

/* Team */
.team-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 560px;
    margin: 0 auto 1.75rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 0.85rem;
    display: block;
    border: 2px solid var(--color-accent-light);
}

.team-member h3 {
    font-size: 1.2rem;
    margin: 0;
}

.team-legend {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* Pillars */
.pillars-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 760px;
}

.pillars-list li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
}

.pillars-list li:last-child {
    border-bottom: none;
}

.pillar-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.pillars-list h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.pillars-list p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 1rem;
}

.eligibility-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.closing-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin: 2rem 0 1.5rem;
}

.closing-note {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--color-text-light);
}

.signature-block {
    text-align: center;
    margin-top: 1.5rem;
}

.signature-block img {
    max-width: 220px;
    height: auto;
}

/* Bilan result page */
.bilan-hero {
    min-height: auto;
}

.bilan-result {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.bilan-amount {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(3.4rem, 11vw, 6.5rem);
    font-weight: 700;
    color: #C9A34A;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 18px rgba(201, 163, 74, 0.28);
    min-height: 1.2em;
    margin: 0.5rem 0 1.5rem;
    transform-origin: center center;
}

.bilan-disclaimer {
    font-size: 1.02rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.bilan-missing {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

.bilan-bio {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

/* ========================================================================
   Pop-ups B2B — Design Apple / Tesla
   ======================================================================== */
body.ad-modal-open {
    overflow: hidden;
}

.ad-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-modal[hidden] {
    display: none !important;
}

.ad-modal.is-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ad-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* === Dialogue principal === */
.ad-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    border-top: none;
    padding: 0;
}

/* === Layout deux colonnes : image | contenu === */
.ad-modal-dialog--split {
    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 480px;
}

/* === Panneau image === */
.ad-modal-image {
    position: relative;
    overflow: hidden;
}

.ad-modal-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* === Panneau contenu === */
.ad-modal-content {
    padding: 3.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === Bouton fermeture flottant === */
.ad-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: #222;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ad-modal-close:hover {
    background: #fff;
    transform: scale(1.08);
}

/* === Typographie — style Apple / Tesla === */
.ad-modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #0a0a0a;
    margin: 0 0 0.1rem;
}

/* Ligne d'impact (stat chiffrée) */
.ad-modal-impact {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-accent);
    margin: 0 0 2rem;
}

/* Corps de texte dans le popup */
.ad-modal-body {
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: #666;
    line-height: 1.65;
    margin: 0 0 0.65rem;
}

.ad-modal-content .btn {
    width: 100%;
    margin-top: 1.75rem;
}

.ad-modal-step[hidden] {
    display: none;
}

/* === Brevo restyle inside modal (inchangé) === */
.ad-modal .sib-form {
    text-align: left !important;
    background: transparent !important;
    padding: 0 !important;
}

.ad-modal #sib-container,
.ad-modal .sib-container--large {
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.ad-modal .entry__label,
.ad-modal label.entry__label {
    font-family: var(--font-body) !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--color-primary) !important;
}

.ad-modal .entry__specification {
    display: none !important;
}

.ad-modal .entry__field {
    margin-top: 0.4rem;
}

.ad-modal #sib-container input.input {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    padding: 0.85rem 1rem !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    color: var(--color-text) !important;
}

.ad-modal .sib-form-block__button {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    padding: 0.95rem 1.25rem !important;
    width: 100%;
}

.ad-modal .input--hidden {
    position: absolute !important;
    left: -9999px !important;
}

.ad-modal .sib-form-message-panel {
    max-width: 100% !important;
    font-family: var(--font-body) !important;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-layout {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 3rem;
    }

    .authority-card {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-totals {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bio-grid {
        grid-template-columns: 280px 1fr;
    }

    .bio-photo img {
        max-width: 100%;
    }

    .calculator-card {
        padding: 3rem 2.75rem;
    }

    .closing-actions {
        flex-direction: row;
        justify-content: center;
    }

    .closing-actions .btn {
        width: auto;
    }
}

@media (max-width: 767px) {
    .header-inner {
        padding: 0 1rem;
    }

    .site-logo .logo-text {
        font-size: 1.15rem;
    }

    .problem-list li,
    .calculator-card {
        padding: 1.35rem 1.2rem;
    }

    /* Popup mobile — empilement vertical, slide depuis le bas */
    .ad-modal {
        align-items: flex-end;
        padding: 0;
    }

    .ad-modal-dialog--split {
        grid-template-columns: 1fr;
        border-radius: 20px 20px 0 0;
        min-height: auto;
        max-height: 92vh;
        overflow-y: auto;
    }

    .ad-modal-image {
        height: 200px;
        position: relative;
    }

    .ad-modal-image img {
        position: absolute;
    }

    .ad-modal-content {
        padding: 2rem 1.5rem 2.5rem;
    }

    .ad-modal-content h2,
    .ad-modal-impact {
        font-size: 1.55rem !important;
        letter-spacing: -0.02em !important;
    }

    .ad-modal-content .btn {
        margin-top: 1.25rem;
    }

    .team-member img {
        width: 110px;
        height: 110px;
    }

    .pillars-list li {
        grid-template-columns: 2rem 1fr;
    }

    .calc-form .btn,
    .eligibility-cta .btn,
    .closing-actions .btn {
        width: 100%;
    }
}


/* ==========================================================================
   HOMEPAGE REDESIGN v3 — Apple / Tesla Premium
   Tous les styles préfixés hp- n'affectent QUE la page d'accueil.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Boutons supplémentaires
   -------------------------------------------------------------------------- */
.btn--lg {
    padding: 16px 28px;
    font-size: 1rem;
    letter-spacing: 0.04em;
    border-radius: 6px;
}

.btn--outline-gold {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1.1rem 2.25rem;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn--outline-gold:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Kicker — étiquette uppercase au-dessus des titres
   -------------------------------------------------------------------------- */
.hp-kicker {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    display: block;
}
.hp-kicker--gold { color: #C9A34A; }
.hp-kicker--blue { color: #14243F; }

/* Sur les sections sombres : kicker gold plus visible, kicker bleu en blanc atténué */
.hp-section--navy .hp-kicker--gold,
.hp-section--ink .hp-kicker--gold,
.hp-section--dark .hp-kicker--gold {
    color: #C9A34A;
    opacity: 1;
}
.hp-section--navy .hp-kicker--blue,
.hp-section--ink .hp-kicker--blue,
.hp-section--dark .hp-kicker--blue {
    color: rgba(255,255,255,0.52);
    letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   Sections de base hp-section
   -------------------------------------------------------------------------- */
.hp-section {
    padding: 7rem 0;
}

.hp-section--white {
    background: #ffffff;
    color: var(--color-text);
}

.hp-section--warm {
    background: #f8f7f3;
    color: var(--color-text);
}

.hp-section--navy {
    background: #14243F;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    overflow: hidden;
}
.hp-section--navy h2,
.hp-section--navy h3 {
    color: #ffffff;
}

.hp-section--ink {
    background: #0f1117;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    overflow: hidden;
}
.hp-section--ink h2,
.hp-section--ink h3 {
    color: #ffffff;
}

.hp-section--dark {
    background: #14243F;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    overflow: hidden;
}
.hp-section--dark h2,
.hp-section--dark h3 {
    color: #ffffff;
}

/* Texture subtile : grille de points (dot-grid) sur les sections sombres
   Très légère pour ne pas gêner la lecture mais ajoute de la profondeur visuelle */
.hp-section--navy::before,
.hp-section--ink::before,
.hp-section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* S'assurer que le contenu passe au-dessus de la texture */
.hp-section--navy > .container,
.hp-section--ink > .container,
.hp-section--dark > .container {
    position: relative;
    z-index: 1;
}

/* Texte paragraphe dans les sections sombres */
.hp-section--navy p,
.hp-section--ink p,
.hp-section--dark p {
    color: rgba(255, 255, 255, 0.72);
}
.hp-section--navy strong,
.hp-section--ink strong,
.hp-section--dark strong {
    color: rgba(255, 255, 255, 0.95);
}

/* Titre de section (h2) générique */
.hp-section__headline {
    font-size: clamp(1.85rem, 3.2vw, 2.9rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
    margin-bottom: 2.5rem;
}

/* Chiffres : Source Sans Pro pour que le 0 ne ressemble pas à un o */
.hp-digit,
.hp-stat__num,
.hp-cases__total-num,
.hp-benefit-card__num,
.hp-pillars__num {
    font-family: var(--font-body);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    font-style: normal;
}

/* --------------------------------------------------------------------------
   HÉRO
   -------------------------------------------------------------------------- */
.hp-hero {
    min-height: 100vh;
    padding-top: calc(80px + 5rem);
    padding-bottom: 5rem;
    background-color: #14243F;
    background-image: var(--hp-hero-bg, none);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(20, 36, 63, 0.58) 0%,
            rgba(20, 36, 63, 0.48) 60%,
            rgba(20, 36, 63, 0.62) 100%
        );
    z-index: 0;
    pointer-events: none;
}

.hp-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.hp-hero .container {
    position: relative;
    z-index: 1;
}

.hp-hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hp-hero__content {
    max-width: 800px;
}

.hp-hero .hp-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    color: #C9A34A;
    margin-bottom: 1.1rem;
}

.hp-hero__headline {
    font-size: clamp(2.3rem, 4.5vw, 4.8rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #FFFFFF;
    margin-bottom: 1.75rem;
    max-width: 14em;
}

.hp-hero .hp-highlight {
    color: #FFFFFF;
}
.hp-hero .hp-highlight.is-marked {
    color: #14243F;
}

.hp-hero__tagline {
    font-size: 1.25rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hp-hero__scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hp-hero__scroll-hint span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
    margin: 0 auto;
    animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
    0%,100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

.hp-hero--compact {
    min-height: 0;
    padding-top: calc(80px + 3.5rem);
    padding-bottom: 3.5rem;
}

.hp-hero--compact .hp-hero__layout,
.hp-hero__layout--authority {
    justify-items: center;
}

.hp-hero--compact .hp-authority {
    width: 100%;
}

/* Carte autorité Ken Burnett */
.hp-authority {
    display: flex;
    flex-direction: column;
    max-width: 440px;
    padding: 2rem 2.15rem 1.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hp-authority__credential {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.48);
    margin: 0.2rem 0 0;
}

.hp-authority__quote {
    margin: 0;
    padding: 0;
    border: 0;
}

.hp-authority__quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.18rem, 1.35vw, 1.32rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: normal;
    padding-left: 0.95em;
    text-indent: -0.95em;
}

.hp-authority__quote p::before {
    content: '«\00a0';
    color: #C9A34A;
    font-weight: 600;
}

.hp-authority__quote p::after {
    content: '\00a0»';
    color: #C9A34A;
    font-weight: 600;
}

.hp-authority__person {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.65rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-authority__meta {
    min-width: 0;
}

.hp-authority__photo {
    flex-shrink: 0;
}

.hp-authority__photo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(201, 163, 74, 0.4);
    display: block;
}

.hp-authority__name {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

/* --------------------------------------------------------------------------
   BARRE DE STATS
   -------------------------------------------------------------------------- */
.hp-stats-bar {
    background: #14243F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.75rem 0;
}

.hp-stats-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hp-stat {
    text-align: center;
    padding: 0 3.5rem;
    flex: 1;
    min-width: 150px;
}

.hp-stat__num {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.45rem;
    letter-spacing: -0.02em;
}

.hp-stat__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 600;
}

.hp-stat__divider {
    width: 1px;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   SECTION PROBLÈME
   -------------------------------------------------------------------------- */
.hp-problem .container {
    max-width: 800px;
}

.hp-problem .hp-kicker {
    text-align: center;
}

.hp-problem .hp-section__headline {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}

.hp-problem__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: constat;
}

.hp-problem__list li {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 1.75rem 2rem 1.75rem 4.5rem;
    border-left: 3px solid var(--color-accent);
    background: #f9f8f5;
    margin: 0 0 2px 0;
    position: relative;
    transition: border-color 0.3s ease, background 0.3s ease;
    counter-increment: constat;
}

.hp-problem__list li::before {
    content: counter(constat);
    position: absolute;
    left: 1.35rem;
    top: 1.7rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    line-height: 1.6;
}

.hp-problem__list li:hover {
    border-left-color: var(--color-primary);
    background: #f3f2ef;
}

/* --------------------------------------------------------------------------
   SECTIONS ÉDITORIALES (texte centré / article)
   -------------------------------------------------------------------------- */
.hp-editorial {
    text-align: center;
}
.hp-editorial--left {
    text-align: left;
}

.hp-editorial h2 {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    max-width: 780px;
    margin: 0 auto 2rem;
    line-height: 1.18;
    letter-spacing: -0.025em;
}
.hp-editorial--left h2 {
    margin-left: 0;
}

.hp-editorial__lead {
    font-size: 1.35rem;
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-style: italic;
}
.hp-editorial--left .hp-editorial__lead {
    margin-left: 0;
}

.hp-editorial__emphasis {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-style: italic;
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.4;
}
.hp-editorial--left .hp-editorial__emphasis {
    margin-left: 0;
}

/* Overrides couleur pour sections sombres */
.hp-section--ink .hp-editorial h2 {
    color: #ffffff;
}
.hp-section--ink .hp-editorial__lead {
    color: rgba(255, 255, 255, 0.62);
}
.hp-section--ink .hp-editorial__emphasis {
    color: var(--color-accent);
}
.hp-section--ink .hp-editorial p {
    color: rgba(255, 255, 255, 0.68);
}

/* --------------------------------------------------------------------------
   SECTION FEATURES (Do / Don't)
   -------------------------------------------------------------------------- */
.hp-features .hp-kicker { text-align: center; }

.hp-features h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    max-width: 780px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-left: auto;
    margin-right: auto;
}

.hp-features__copy {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.hp-features__copy p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
}

.hp-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.hp-features__card {
    padding: 2.25rem 2.5rem;
    border-radius: 10px;
}

.hp-features__card--yes {
    background: rgba(192, 178, 131, 0.07);
    border: 1px solid rgba(192, 178, 131, 0.18);
}

.hp-features__card--no {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hp-features__card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: block;
}
.hp-features__card--yes .hp-features__card-label { color: var(--color-accent); }
.hp-features__card--no  .hp-features__card-label { color: rgba(255, 255, 255, 0.38); }

.hp-features__card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hp-features__card li {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    padding-left: 1.5rem;
    margin-bottom: 0.9rem;
    position: relative;
    line-height: 1.55;
}
.hp-features__card li:last-child { margin-bottom: 0; }

.hp-features__card--yes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}
.hp-features__card--no li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.28);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   ÉTUDES DE CAS
   -------------------------------------------------------------------------- */
.hp-cases .hp-kicker { text-align: center; }

.hp-cases h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
    text-align: center;
}

.hp-cases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hp-case-card {
    background: #ffffff;
    border: 1px solid rgba(10, 36, 99, 0.07);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(10, 36, 99, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hp-case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10, 36, 99, 0.11);
}

.hp-case-card__logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    opacity: 0.8;
}

.hp-case-card__org {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-case-card__metric {
    font-family: var(--font-body);
    font-variant-numeric: lining-nums tabular-nums;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hp-case-card__detail {
    font-size: 1rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.45;
}

.hp-cases__totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 580px;
    margin: 0 auto;
}

.hp-cases__total-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(10, 36, 99, 0.07);
    box-shadow: 0 4px 24px rgba(10, 36, 99, 0.05);
}

.hp-cases__total-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hp-cases__total-label {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   TÉMOIGNAGES
   -------------------------------------------------------------------------- */
.hp-testimonials .hp-kicker { text-align: center; }

.hp-testimonials h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    max-width: 800px;
    margin: 0 auto 3rem;
    letter-spacing: -0.025em;
    line-height: 1.22;
    text-align: center;
}

.hp-testimonials__image {
    border-radius: 10px;
    overflow: visible;
    max-width: 1100px;
    margin: 0 auto;
}
.hp-testimonials__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   BÉNÉFICES (3 colonnes)
   -------------------------------------------------------------------------- */
.hp-benefits .hp-kicker { text-align: center; }

.hp-benefits h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    margin-bottom: 3.5rem;
    letter-spacing: -0.025em;
    text-align: center;
}

.hp-benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1040px;
    margin: 0 auto;
}

.hp-benefit-card {
    padding: 2.75rem 0 2.75rem;
    border-top: 1px solid var(--color-border);
    position: relative;
}
.hp-benefit-card:last-child {
    border-bottom: 1px solid var(--color-border);
}

.hp-benefit-card__num {
    display: block;
    font-family: var(--font-body);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 1;
    line-height: 1;
    margin-bottom: 0.85rem;
    letter-spacing: 0.04em;
}

.hp-benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.hp-benefit-card p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 0;
    max-width: 500px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   BIO CLÉMENT
   -------------------------------------------------------------------------- */
.hp-bio__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.hp-bio__photo img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 10px;
    display: block;
}

.hp-bio h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: none;
    color: #14243F;
}

.hp-bio__facts {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border-left: none;
}

.hp-bio__facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 1.05rem;
    margin-bottom: 0;
    font-weight: 600;
    color: #14243F;
    line-height: 1.45;
    background: #fff;
    border: 1px solid rgba(201, 163, 74, 0.45);
    border-left: 4px solid #C9A34A;
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 6px 18px rgba(20, 36, 63, 0.06);
}

.hp-bio__fact-mark {
    flex-shrink: 0;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: #C9A34A;
}

.hp-bio__content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.hp-bio__convictions {
    margin: 0 0 1.25rem 1.15rem;
    padding: 0;
    color: #14243F;
}

.hp-bio__convictions li {
    margin-bottom: 0.4rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   CALCULATEUR
   -------------------------------------------------------------------------- */
.hp-calculator .hp-kicker { text-align: center; }

.hp-calculator h1,
.hp-calculator h2 {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    color: #ffffff;
    max-width: 680px;
    margin: 0 auto 0.75rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-align: center;
}

.hp-calculator__sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3.5rem;
    font-style: italic;
    text-align: center;
}

.hp-calculator__form-wrap {
    max-width: 580px;
    margin: 0 auto;
}

.hp-calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hp-calc-form .btn--gold {
    width: 100%;
    background-color: #C9A34A;
    color: #14243F;
    border-color: #C9A34A;
    padding: 16px 28px;
}

.hp-calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hp-calc-form label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    display: block;
}

.hp-calc-form input[type="number"] {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, background 0.2s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}
.hp-calc-form input[type="number"]::-webkit-inner-spin-button,
.hp-calc-form input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.hp-calc-form input[type="number"]:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.09);
}
.hp-calc-form input::placeholder { color: rgba(255, 255, 255, 0.25); }

.hp-calc-toggle {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-family: var(--font-body);
    transition: opacity 0.2s ease;
}
.hp-calc-toggle:hover { opacity: 0.75; }

.hp-calc-estimate {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hp-calc-help {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.42);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

.calc-error {
    color: #ff7070;
    font-size: 0.9rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   CONFIDENTIALITÉ / OBJECTION
   -------------------------------------------------------------------------- */
.hp-objection h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    margin-bottom: 1.75rem;
    letter-spacing: -0.025em;
}

.hp-legal-callout {
    margin-top: 2.5rem;
    padding: 1.75rem 2rem;
    background: #f8f7f3;
    border-left: 3px solid var(--color-border-dark);
    border-radius: 0 8px 8px 0;
}
.hp-legal-callout h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    line-height: 1.4;
}
.hp-legal-callout p {
    font-size: 0.93rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   AUCUN FRAIS FIXE
   -------------------------------------------------------------------------- */
.hp-fees .hp-kicker { text-align: center; }

.hp-fees h2 {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: center;
}

.hp-fees__lead {
    font-size: 1.3rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   TEST SANS ENGAGEMENT
   -------------------------------------------------------------------------- */
.hp-test {
    text-align: center;
}

.hp-test h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hp-test__lead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   ÉQUIPE
   -------------------------------------------------------------------------- */
.hp-team .hp-kicker { text-align: center; }

.hp-team h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    margin-bottom: 3.5rem;
    letter-spacing: -0.025em;
    text-align: center;
}

.hp-team__row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4.5rem;
    flex-wrap: wrap;
    margin: 0 auto 2.75rem;
    max-width: 640px;
}

.hp-team__member {
    text-align: center;
    margin: 0;
    flex: 0 0 auto;
}

.hp-team__member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 0.85rem;
    border: 3px solid var(--color-accent);
    filter: grayscale(15%);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.hp-team__member:hover img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.hp-team__member figcaption {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 600;
}

.hp-team__legend {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 660px;
    line-height: 1.7;
    margin: 0 auto;
    text-align: center;
}

/* --------------------------------------------------------------------------
   6 PILIERS
   -------------------------------------------------------------------------- */
.hp-pillars .hp-kicker { text-align: center; }

.hp-pillars h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    margin-bottom: 3.5rem;
    letter-spacing: -0.025em;
    text-align: center;
}

.hp-pillars__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 820px;
}

.hp-pillars__list li {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 2rem;
    padding: 2.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    align-items: start;
}
.hp-pillars__list li:last-child { border-bottom: none; }

.hp-pillars__num {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
    opacity: 1;
    letter-spacing: 0.06em;
    padding-top: 0.15rem;
}

.hp-pillars__list h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.hp-pillars__list p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   ÉLIGIBILITÉ
   -------------------------------------------------------------------------- */
.hp-eligibility .hp-kicker { text-align: center; }

.hp-eligibility h2 {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
    text-align: center;
}

.hp-eligibility__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.hp-eligibility__col {
    padding: 2.25rem 2.5rem;
    border-radius: 10px;
}

.hp-eligibility__col--yes {
    background: rgba(192, 178, 131, 0.09);
    border: 1px solid rgba(192, 178, 131, 0.22);
}

.hp-eligibility__col--no {
    background: #f0eeeb;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.hp-eligibility__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: block;
}
.hp-eligibility__col--yes .hp-eligibility__label { color: var(--color-accent); }
.hp-eligibility__col--no  .hp-eligibility__label { color: var(--color-text-light); }

.hp-eligibility__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hp-eligibility__col li {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.55;
    color: var(--color-text);
}
.hp-eligibility__col--yes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}
.hp-eligibility__col--no li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--color-text-light);
}

.hp-eligibility__cta { text-align: center; }

/* --------------------------------------------------------------------------
   CLOSING CTA FINAL
   -------------------------------------------------------------------------- */
.hp-section.hp-final-cta {
    text-align: center;
    padding-bottom: 1.75rem;
}

.hp-final-cta h2 {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hp-final-cta__lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hp-final-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 2rem;
}

.hp-final-cta__note {
    max-width: 500px;
    margin: 1.75rem auto 1.75rem;
}
.hp-final-cta__note p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
}
.hp-final-cta__note p:last-child { margin-bottom: 0; }
.hp-final-cta__note strong {
    color: #FFFFFF;
    font-size: 1.2rem;
}

.hp-final-cta__signature {
    margin-top: 0.5rem;
}
.hp-final-cta__signature img {
    max-width: 300px;
    height: auto;
    opacity: 0.9;
    filter: invert(1);
}

/* Header reste opaque clair : logo navy lisible */
.site-header.hero-mode {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--color-border);
}
.site-header.hero-mode .site-logo,
.site-header.hero-mode .site-logo .logo-text {
    color: #14243F;
}
.site-header.hero-mode .main-nav a {
    color: var(--color-text);
}
.site-header.hero-mode .main-nav a.nav-contact {
    color: #C9A34A;
}
.site-header.hero-mode .main-nav a:hover {
    color: var(--color-accent);
}
.site-header.hero-mode .menu-toggle span {
    background-color: #14243F;
}
.site-header.hero-mode .account-icon {
    fill: #14243F;
}

/* --------------------------------------------------------------------------
   HP-HIGHLIGHT — Surlignage incliné façon marker pen
   -------------------------------------------------------------------------- */

/*
 * Usage : <span class="hp-highlight">mot clé</span>
 * La pseudo-element ::before crée le fond incliné.
 * La classe .is-visible (ajoutée par IntersectionObserver) déclenche l'animation "wipe" gauche → droite.
 */

.hp-highlight {
    position: relative;
    display: inline;
    /* Isolation pour que z-index fonctionne correctement */
    isolation: isolate;
}

/* Le surlignage lui-même */
.hp-highlight::before {
    content: '';
    position: absolute;
    /* Débordement latéral pour le naturel du marker */
    left:   -0.08em;
    right:  -0.1em;
    top:     0.04em;
    bottom:  0.04em;
    background: var(--color-accent); /* or #c0b283 */
    /* Légère inclinaison pour l'effet marker pen */
    transform: skew(-4deg) rotate(-0.6deg);
    z-index: -1;
    border-radius: 3px;
    opacity: 0.9;
    /* Animation : clip-path wipe de gauche à droite */
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Déclenchement au scroll (classe ajoutée par JS) */
.hp-highlight.is-marked::before {
    clip-path: inset(0 0% 0 0);
}

/* Sur fond sombre (sections --ink, --navy, --dark) :
   le texte reste blanc (lisible sur fond sombre) avant l'animation,
   puis passe en bleu foncé dès que le fond gold est révélé (.is-marked). */
.hp-section--ink  .hp-highlight,
.hp-section--navy .hp-highlight,
.hp-section--dark .hp-highlight {
    color: #ffffff;
    font-weight: inherit;
    transition: color 0.35s ease 0.25s;
}
.hp-section--ink  .hp-highlight.is-marked,
.hp-section--navy .hp-highlight.is-marked,
.hp-section--dark .hp-highlight.is-marked {
    color: var(--color-primary);
}

/* Sur fond clair : le fond gold est déjà lisible avec le texte navy */

/* --------------------------------------------------------------------------
   Anti-FOUC : cacher avant GSAP (html.js posé dans header.php)
   -------------------------------------------------------------------------- */
html.js .hp-hero .hp-kicker,
html.js .hp-hero__headline,
html.js .hp-hero__tagline,
html.js .hp-hero .btn,
html.js .hp-hero__scroll-hint,
html.js .hp-authority,
html.js .hp-section:not(.hp-hero):not(.hp-final-cta):not(.hp-bio) h2,
html.js .hp-problem__list li,
html.js .hp-editorial p,
html.js .hp-features__card,
html.js .hp-case-card,
html.js .hp-cases__total-item,
html.js .hp-benefit-card,
html.js .hp-bio__photo,
html.js .hp-bio__content,
html.js .hp-pillars__list li,
html.js .hp-eligibility__col,
html.js .hp-final-cta h2,
html.js .hp-final-cta__lead,
html.js .hp-final-cta .container > p,
html.js .hp-final-cta__note,
html.js .hp-final-cta__actions,
html.js .hp-final-cta__signature,
html.js .hp-stat,
html.js .hp-team__member,
html.js .hp-calculator__form-wrap {
    opacity: 0;
}

html.js.gsap-failed .hp-hero .hp-kicker,
html.js.gsap-failed .hp-hero__headline,
html.js.gsap-failed .hp-hero__tagline,
html.js.gsap-failed .hp-hero .btn,
html.js.gsap-failed .hp-hero__scroll-hint,
html.js.gsap-failed .hp-authority,
html.js.gsap-failed .hp-section:not(.hp-hero):not(.hp-final-cta):not(.hp-bio) h2,
html.js.gsap-failed .hp-problem__list li,
html.js.gsap-failed .hp-editorial p,
html.js.gsap-failed .hp-features__card,
html.js.gsap-failed .hp-case-card,
html.js.gsap-failed .hp-cases__total-item,
html.js.gsap-failed .hp-benefit-card,
html.js.gsap-failed .hp-bio__photo,
html.js.gsap-failed .hp-bio__content,
html.js.gsap-failed .hp-pillars__list li,
html.js.gsap-failed .hp-eligibility__col,
html.js.gsap-failed .hp-final-cta h2,
html.js.gsap-failed .hp-final-cta__lead,
html.js.gsap-failed .hp-final-cta .container > p,
html.js.gsap-failed .hp-final-cta__note,
html.js.gsap-failed .hp-final-cta__actions,
html.js.gsap-failed .hp-final-cta__signature,
html.js.gsap-failed .hp-stat,
html.js.gsap-failed .hp-team__member,
html.js.gsap-failed .hp-calculator__form-wrap {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html.js .hp-hero .hp-kicker,
    html.js .hp-hero__headline,
    html.js .hp-hero__tagline,
    html.js .hp-hero .btn,
    html.js .hp-hero__scroll-hint,
    html.js .hp-authority,
    html.js .hp-section:not(.hp-hero):not(.hp-final-cta):not(.hp-bio) h2,
    html.js .hp-problem__list li,
    html.js .hp-editorial p,
    html.js .hp-features__card,
    html.js .hp-case-card,
    html.js .hp-cases__total-item,
    html.js .hp-benefit-card,
    html.js .hp-bio__photo,
    html.js .hp-bio__content,
    html.js .hp-pillars__list li,
    html.js .hp-eligibility__col,
    html.js .hp-final-cta h2,
    html.js .hp-final-cta__lead,
    html.js .hp-final-cta .container > p,
    html.js .hp-final-cta__note,
    html.js .hp-final-cta__actions,
    html.js .hp-final-cta__signature,
    html.js .hp-stat,
    html.js .hp-team__member,
    html.js .hp-calculator__form-wrap {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — tablette et mobile
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
    .hp-features__grid   { grid-template-columns: 1fr 1fr; }
    .hp-cases__grid      { grid-template-columns: 1fr 1fr; }
    .hp-eligibility__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
    .hp-hero__layout {
        grid-template-columns: 1.25fr 0.75fr;
        gap: 5rem;
    }
    .hp-hero--compact .hp-hero__layout,
    .hp-hero__layout--authority {
        grid-template-columns: 1fr;
    }
    .hp-benefits__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0 3rem;
    }
    .hp-benefit-card { border-top: 1px solid var(--color-border); border-right: none; }
    .hp-benefit-card:last-child { border-bottom: none; }
    .hp-bio__layout {
        grid-template-columns: 280px 1fr;
        gap: 5rem;
    }
    .hp-bio__photo img { max-width: 100%; }
}

@media (max-width: 767px) {
    .hp-section {
        padding: 4.5rem 0;
    }
    .hp-hero {
        min-height: auto;
        padding-top: calc(80px + 3.5rem);
        padding-bottom: 3.5rem;
    }
    .hp-hero__headline {
        font-size: clamp(1.75rem, 7vw, 3rem);
        color: #FFFFFF;
    }
    .hp-hero .btn {
        width: 100%;
        padding: 16px 28px;
    }
    .hp-stats-bar__inner {
        flex-direction: column;
        gap: 1.75rem;
        text-align: center;
    }
    .hp-stat__divider { display: none; }
    .hp-stat { padding: 0; }
    .hp-authority {
        max-width: 100%;
        padding: 1.75rem 1.5rem 1.5rem;
    }
    .hp-authority__quote p {
        font-size: 1.22rem;
    }
    .hp-cases__totals {
        max-width: 100%;
    }
    .hp-team__row {
        justify-content: center;
        gap: 2.25rem;
    }
    .hp-team__member img {
        width: 150px;
        height: 150px;
    }
    .hp-final-cta__actions {
        flex-direction: column;
        align-items: center;
    }
    .hp-final-cta__actions .btn {
        width: 100%;
        max-width: 320px;
    }
    .hp-pillars__list li {
        grid-template-columns: 2.5rem 1fr;
        gap: 1rem;
    }
    .hp-pillars__num {
        font-size: 1.15rem;
        padding-top: 0.2rem;
    }
}

/* Footer — mobile */
@media (max-width: 640px) {
    .footer-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
    }
    .footer-links {
        gap: 1.25rem;
    }
}


/* ==========================================================================
   PAGES SECONDAIRES — Cohérence avec le design hp-* de la homepage
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero actions — double CTA dans les heroes de pages secondaires
   -------------------------------------------------------------------------- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

/* Kicker dans les sections section--primary (hero sombre) */
.section--primary .hp-kicker--gold {
    color: var(--color-accent);
}
.section--primary .hp-kicker--blue {
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   Contact page — sidebar sombre (cohérente hp-hero authority card)
   -------------------------------------------------------------------------- */
.contact-info-dark {
    background: #14243F;
    padding: 2.5rem;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}

/* Texture dot-grid subtile, comme les sections sombres de la homepage */
.contact-info-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}
.contact-info-dark > * {
    position: relative;
    z-index: 1;
}

.contact-info-dark h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.contact-info-dark .contact-info-icon {
    stroke: var(--color-accent);
}

.contact-info-dark .contact-info-content h3 {
    color: var(--color-accent);
    font-size: 1rem;
}

.contact-info-dark .contact-info-content p {
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.contact-info-dark .contact-info-content a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-info-dark .contact-info-content a:hover {
    color: var(--color-accent);
}

.contact-info-dark .contact-info-note {
    border-top-color: rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.contact-info-dark .contact-info-note p {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.contact-info-dark .contact-info-note strong {
    color: rgba(255, 255, 255, 0.7);
}

/* Bloc Calendly dans la sidebar */
.contact-info-calendly {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-calendly p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-info-calendly .btn--gold {
    display: block;
    text-align: center;
    width: 100%;
}

/* --------------------------------------------------------------------------
   hp-benefit-card sur fond sombre (section--navy / ink / dark)
   -------------------------------------------------------------------------- */
.hp-section--navy .hp-benefits__grid,
.hp-section--ink .hp-benefits__grid,
.hp-section--dark .hp-benefits__grid {
    max-width: 900px;
}

.hp-section--navy .hp-benefit-card,
.hp-section--ink .hp-benefit-card,
.hp-section--dark .hp-benefit-card {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.hp-section--navy .hp-benefit-card:last-child,
.hp-section--ink .hp-benefit-card:last-child,
.hp-section--dark .hp-benefit-card:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.hp-section--navy .hp-benefit-card__num,
.hp-section--ink .hp-benefit-card__num,
.hp-section--dark .hp-benefit-card__num {
    color: var(--color-accent);
    opacity: 0.3;
}

.hp-section--navy .hp-benefit-card h3,
.hp-section--ink .hp-benefit-card h3,
.hp-section--dark .hp-benefit-card h3 {
    color: #ffffff;
}

.hp-section--navy .hp-benefit-card p,
.hp-section--ink .hp-benefit-card p,
.hp-section--dark .hp-benefit-card p {
    color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   Page CTA — section dark de clôture sur les pages secondaires
   -------------------------------------------------------------------------- */
.page-cta-section {
    text-align: center;
}

.page-cta-section h2 {
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.page-cta-section > .container > p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

/* --------------------------------------------------------------------------
   Legal quick nav — table des matières de la page mentions légales
   -------------------------------------------------------------------------- */
.legal-quicknav-section {
    padding: 2.5rem 0 !important;  /* override hp-section 7rem */
}

.legal-quicknav-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.legal-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.legal-quicknav a {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: var(--color-white);
    transition:
        border-color var(--transition-base),
        color var(--transition-base),
        box-shadow var(--transition-base);
}

.legal-quicknav a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(192, 178, 131, 0.18);
}

/* Kicker dans les articles légaux */
.legal-article .hp-kicker {
    margin-bottom: 0.5rem;
}

/* Dernier article — pas de bordure basse */
.legal-article--last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Contact reasons section — hp-section--navy avec spacing de titre centré
   -------------------------------------------------------------------------- */
.contact-reasons-section .hp-section__headline {
    text-align: left;
    max-width: 680px;
    margin-bottom: 3.5rem;
}

/* --------------------------------------------------------------------------
   Responsive — pages secondaires
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .contact-info-dark {
        padding: 2rem 1.5rem;
    }

    .legal-quicknav-section {
        padding: 2rem 0 !important;
    }

    .legal-quicknav a {
        font-size: 0.74rem;
        padding: 0.4rem 0.8rem;
    }

    .page-cta-section h2 {
        font-size: 1.65rem;
    }
}

@media (min-width: 900px) {
    /* Benefit cards en 3 colonnes sur desktop — même règle que homepage mais sur fond sombre */
    .hp-section--navy .hp-benefits__grid,
    .hp-section--ink .hp-benefits__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0 3rem;
    }
    .hp-section--navy .hp-benefit-card,
    .hp-section--ink .hp-benefit-card {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
    }
    .hp-section--navy .hp-benefit-card:last-child,
    .hp-section--ink .hp-benefit-card:last-child {
        border-bottom: none;
    }
}
