/* ══════════════════════════════════════════════════════════════════════════════
   gm-base.css — Design System Gérald Medium
   Composants réutilisables, typographie, layout
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Reset léger ─────────────────────────────────────────────────────────────── */

.gm-landing *,
.gm-landing *::before,
.gm-landing *::after {
    box-sizing: border-box;
}

.gm-landing {
    font-family: var(--gm-font-body);
    font-size: var(--gm-fs-body);
    line-height: var(--gm-lh-body);
    color: var(--gm-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Container ───────────────────────────────────────────────────────────────── */

.gm-container {
    max-width: var(--gm-container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.gm-container--narrow {
    max-width: var(--gm-container-narrow);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ── Sections ────────────────────────────────────────────────────────────────── */

.gm-section {
    padding-block: var(--gm-space-xl);
}

.gm-section--dark {
    background: var(--gm-navy);
    color: var(--gm-text-light);
}

.gm-section--dark .gm-section__subtitle,
.gm-section--dark .gm-text-muted {
    color: var(--gm-lavender-soft);
}

.gm-section--ivory {
    background: var(--gm-ivory);
}

.gm-section--warm {
    background: var(--gm-ivory-warm);
}

.gm-section__eyebrow {
    display: inline-block;
    font-family: var(--gm-font-body);
    font-size: var(--gm-fs-caption);
    font-weight: var(--gm-fw-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gm-gold);
    margin-bottom: var(--gm-space-sm);
}

.gm-section__title {
    font-family: var(--gm-font-display);
    font-size: var(--gm-fs-h2);
    font-weight: var(--gm-fw-medium);
    line-height: var(--gm-lh-display);
    margin: 0 0 var(--gm-space-sm);
}

.gm-section__subtitle {
    font-size: var(--gm-fs-body);
    color: var(--gm-text-muted);
    max-width: 600px;
    margin-bottom: var(--gm-space-md);
}

.gm-section__header {
    text-align: center;
    margin-bottom: var(--gm-space-lg);
}

.gm-section__header .gm-section__subtitle {
    margin-inline: auto;
}

/* ── Typographie ─────────────────────────────────────────────────────────────── */

.gm-landing h1,
.gm-landing h2,
.gm-landing h3 {
    font-family: var(--gm-font-display);
    font-weight: var(--gm-fw-medium);
    line-height: var(--gm-lh-display);
}

.gm-landing h1 { font-size: var(--gm-fs-h1); }
.gm-landing h2 { font-size: var(--gm-fs-h2); }
.gm-landing h3 { font-size: var(--gm-fs-h3); }

.gm-landing p {
    margin: 0 0 1em;
}

.gm-text-gold   { color: var(--gm-gold); }
.gm-text-muted  { color: var(--gm-text-muted); }
.gm-text-center { text-align: center; }
.gm-text-italic { font-style: italic; }

/* ── Boutons ─────────────────────────────────────────────────────────────────── */

.gm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.875em 2em;
    border-radius: var(--gm-radius);
    font-family: var(--gm-font-body);
    font-size: 0.9375rem;
    font-weight: var(--gm-fw-semibold);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--gm-duration) var(--gm-ease),
                box-shadow var(--gm-duration) var(--gm-ease),
                background var(--gm-duration) var(--gm-ease);
    line-height: 1.2;
}

.gm-btn:hover {
    transform: translateY(-1px);
}

.gm-btn:focus-visible {
    outline: 2px solid var(--gm-gold);
    outline-offset: 3px;
}

.gm-btn--primary {
    background: var(--gm-gold);
    color: var(--gm-navy);
    border-color: var(--gm-gold);
}

.gm-btn--primary:hover {
    background: var(--gm-gold-light);
    box-shadow: var(--gm-shadow-md);
    color: var(--gm-navy);
}

.gm-btn--outline {
    background: transparent;
    color: var(--gm-gold);
    border-color: var(--gm-gold);
}

.gm-btn--outline:hover {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gm-gold-light);
}

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

.gm-btn--white:hover {
    background: var(--gm-ivory);
    box-shadow: var(--gm-shadow-md);
    color: var(--gm-navy);
}

.gm-btn--sm {
    padding: 0.625em 1.5em;
    font-size: var(--gm-fs-small);
}

.gm-btn--lg {
    padding: 1em 2.5em;
    font-size: 1rem;
}

/* ── Cartes ──────────────────────────────────────────────────────────────────── */

.gm-card {
    background: var(--gm-white);
    border-radius: var(--gm-radius-lg);
    padding: var(--gm-space-md);
    box-shadow: var(--gm-shadow-sm);
    transition: box-shadow var(--gm-duration) var(--gm-ease),
                transform var(--gm-duration) var(--gm-ease);
}

.gm-card:hover {
    box-shadow: var(--gm-shadow-md);
    transform: translateY(-2px);
}

.gm-card--dark {
    background: var(--gm-navy-soft);
    color: var(--gm-text-light);
    box-shadow: none;
    border: 1px solid rgba(139, 127, 168, 0.15);
}

.gm-card--dark:hover {
    border-color: rgba(201, 168, 76, 0.3);
}

.gm-card__icon {
    font-size: 2rem;
    margin-bottom: var(--gm-space-sm);
    display: block;
}

.gm-card__title {
    font-family: var(--gm-font-display);
    font-size: var(--gm-fs-h3);
    font-weight: var(--gm-fw-medium);
    margin: 0 0 0.5em;
}

.gm-card__text {
    color: var(--gm-text-muted);
    font-size: var(--gm-fs-body);
    line-height: var(--gm-lh-body);
    margin: 0;
}

.gm-card--dark .gm-card__text {
    color: var(--gm-lavender-soft);
}

/* ── Grilles ─────────────────────────────────────────────────────────────────── */

.gm-grid {
    display: grid;
    gap: var(--gm-space-md);
}

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

@media (max-width: 768px) {
    .gm-grid--2,
    .gm-grid--3 { grid-template-columns: 1fr; }
}

/* ── Split layout (texte + image) ────────────────────────────────────────────── */

.gm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gm-space-lg);
    align-items: center;
}

.gm-split--reverse .gm-split__content { order: 2; }
.gm-split--reverse .gm-split__visual  { order: 1; }

.gm-split__visual img {
    width: 100%;
    height: auto;
    border-radius: var(--gm-radius-lg);
    object-fit: cover;
}

@media (max-width: 768px) {
    .gm-split {
        grid-template-columns: 1fr;
        gap: var(--gm-space-md);
    }
    .gm-split--reverse .gm-split__content { order: 1; }
    .gm-split--reverse .gm-split__visual  { order: 2; }
}

/* ── Témoignage ──────────────────────────────────────────────────────────────── */

.gm-testimonial {
    padding: var(--gm-space-md);
    border-left: 3px solid var(--gm-gold);
    background: var(--gm-white);
    border-radius: 0 var(--gm-radius) var(--gm-radius) 0;
}

.gm-testimonial__text {
    font-family: var(--gm-font-display);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--gm-text-dark);
    margin: 0 0 1em;
}

.gm-testimonial__author {
    font-family: var(--gm-font-body);
    font-size: var(--gm-fs-small);
    color: var(--gm-text-muted);
    font-style: normal;
}

/* ── FAQ Accordion ───────────────────────────────────────────────────────────── */

.gm-faq-item {
    border-bottom: 1px solid var(--gm-border);
}

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

.gm-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25em 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--gm-font-body);
    font-size: var(--gm-fs-body);
    font-weight: var(--gm-fw-semibold);
    color: inherit;
    text-align: left;
    line-height: 1.4;
}

.gm-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: var(--gm-fw-light);
    color: var(--gm-gold);
    transition: transform var(--gm-duration) var(--gm-ease);
    flex-shrink: 0;
    margin-left: 1rem;
}

.gm-faq-item.active .gm-faq-question::after {
    transform: rotate(45deg);
}

.gm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--gm-ease), padding 0.4s var(--gm-ease);
}

.gm-faq-item.active .gm-faq-answer {
    max-height: 500px;
    padding-bottom: 1.25em;
}

.gm-faq-answer p {
    color: var(--gm-text-muted);
    line-height: var(--gm-lh-body);
}

/* ── Badge / Proof ───────────────────────────────────────────────────────────── */

.gm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.375em 1em;
    background: rgba(201, 168, 76, 0.12);
    color: var(--gm-gold);
    border-radius: 100px;
    font-size: var(--gm-fs-caption);
    font-weight: var(--gm-fw-semibold);
    letter-spacing: 0.05em;
}

.gm-badge--dark {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gm-gold-light);
}

/* ── Séparateur ──────────────────────────────────────────────────────────────── */

.gm-divider {
    width: 60px;
    height: 2px;
    background: var(--gm-gold);
    border: none;
    margin: var(--gm-space-md) auto;
}

.gm-divider--left {
    margin-left: 0;
}

/* ── Liens ───────────────────────────────────────────────────────────────────── */

.gm-landing a:not(.gm-btn) {
    color: var(--gm-gold-muted);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color var(--gm-duration) var(--gm-ease);
}

.gm-landing a:not(.gm-btn):hover {
    color: var(--gm-gold);
}

.gm-section--dark a:not(.gm-btn) {
    color: var(--gm-gold-light);
}

/* ── Statistiques inline ─────────────────────────────────────────────────────── */

.gm-stats {
    display: flex;
    gap: var(--gm-space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

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

.gm-stat__number {
    display: block;
    font-family: var(--gm-font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--gm-fw-bold);
    color: var(--gm-gold);
    line-height: 1;
}

.gm-stat__label {
    display: block;
    font-size: var(--gm-fs-small);
    margin-top: 0.25em;
}

/* ── Responsive global ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .gm-section {
        padding-block: var(--gm-space-lg);
    }

    .gm-stats {
        gap: var(--gm-space-md);
    }
}

/* ── Reduced motion ──────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .gm-btn:hover,
    .gm-card:hover {
        transform: none;
    }

    .gm-faq-answer {
        transition: none;
    }
}
