/**
    MON PETIT CADEAU — CONTENU & MISE EN PAGE ÉDITORIALE
    -------------------------------------------------------------
    Chargé après style.css et refresh.css. Réutilise les variables
    de thème définies dans refresh.css (:root) pour rester cohérent
    avec l'identité visuelle (pêche / terracotta).

    Couvre : lien d'évitement (a11y), bandeau RGPD/affiliation, hero,
    sections informatives (étapes, atouts, FAQ), mention d'affiliation,
    pied de page enrichi et gabarit des pages légales.
**/

/* ---------------------------------------------------------------
   ACCESSIBILITÉ — LIEN D'ÉVITEMENT
   --------------------------------------------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--mpc-terracotta);
    color: #ffffff;
    font-weight: 700;
    border-radius: 0 0 14px 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* ---------------------------------------------------------------
   BANDEAU D'INFORMATION RGPD / AFFILIATION
   --------------------------------------------------------------- */

.consent-banner {
    position: fixed;
    inset: auto 16px 16px 16px;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 20px;
    background: var(--mpc-cream);
    color: var(--mpc-ink);
    border-radius: var(--mpc-radius);
    box-shadow: var(--mpc-shadow-lg);
}

.consent-banner[hidden] {
    display: none;
}

.consent-text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.consent-text a {
    color: var(--mpc-terracotta-d);
    font-weight: 700;
}

.consent-button {
    flex: 0 0 auto;
    font-family: var(--mpc-font-head);
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(180deg, var(--mpc-terracotta) 0%, var(--mpc-terracotta-d) 100%);
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    cursor: pointer;
    box-shadow: var(--mpc-shadow-sm);
    transition:
        transform 0.18s var(--mpc-ease),
        box-shadow 0.18s var(--mpc-ease),
        filter 0.18s var(--mpc-ease);
}

.consent-button:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: var(--mpc-shadow-md);
}

.consent-button:focus-visible {
    outline: 3px solid var(--mpc-terracotta-d);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------
   HERO
   --------------------------------------------------------------- */

.hero {
    text-align: center;
}

.hero-inner {
    max-width: 52rem;
    margin: 0 auto;
    padding: 48px 24px 8px;
}

.hero-title {
    font-family: var(--mpc-font-head);
    color: #ffffff;
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem);
    line-height: 1.15;
    margin: 0 0 16px;
}

.hero-lead {
    color: #fff3ec;
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
    line-height: 1.55;
    margin: 0 auto 26px;
    max-width: 42rem;
}

.hero-cta-wrap {
    margin: 0 0 26px;
}

.hero-cta {
    display: inline-block;
    font-family: var(--mpc-font-head);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--mpc-terracotta-d);
    text-decoration: none;
    background: var(--mpc-cream);
    border-radius: 999px;
    padding: 16px 38px;
    box-shadow: var(--mpc-shadow-md);
    transition:
        transform 0.18s var(--mpc-ease),
        box-shadow 0.18s var(--mpc-ease),
        filter 0.18s var(--mpc-ease);
}

.hero-cta:hover {
    filter: brightness(1.03);
    transform: translateY(-2px);
    box-shadow: var(--mpc-shadow-lg);
}

.hero-cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.hero-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* CTA secondaire « Surprends-moi » : translucide sur la pêche pour
   rester lisible sans voler la vedette au CTA principal. */
.hero-cta-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-family: var(--mpc-font-head);
    font-weight: 600;
    font-size: 1.2rem;
}

.hero-cta-secondary:hover {
    filter: none;
    background: rgba(255, 255, 255, 0.28);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #fff3ec;
    font-weight: 600;
    font-size: 0.98rem;
}

/* ---------------------------------------------------------------
   SECTIONS INFORMATIVES (génériques)
   --------------------------------------------------------------- */

.info-section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px clamp(20px, 5vw, 40px);
}

.section-title {
    font-family: var(--mpc-font-head);
    color: #ffffff;
    text-align: center;
    margin: 0 0 10px;
}

.section-subtitle {
    text-align: center;
    color: #fff3ec;
    margin: 0 auto 30px;
    max-width: 40rem;
    line-height: 1.5;
}

/* ---------------------------------------------------------------
   ÉTAPES « COMMENT ÇA MARCHE »
   --------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.step {
    background: linear-gradient(180deg, #ffffff 0%, var(--mpc-cream) 100%);
    border-radius: var(--mpc-radius);
    padding: 28px 24px;
    box-shadow: var(--mpc-shadow-sm);
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    font-family: var(--mpc-font-head);
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--mpc-terracotta) 0%, var(--mpc-terracotta-d) 100%);
    box-shadow: var(--mpc-shadow-sm);
}

.step-title {
    color: var(--mpc-terracotta-d);
    margin: 0 0 6px;
}

.step p {
    margin: 0;
    color: var(--mpc-ink);
    line-height: 1.5;
}

/* ---------------------------------------------------------------
   ATOUTS « POURQUOI NOUS »
   --------------------------------------------------------------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.feature {
    background: linear-gradient(180deg, #ffffff 0%, var(--mpc-cream) 100%);
    border-radius: var(--mpc-radius);
    padding: 26px 22px;
    box-shadow: var(--mpc-shadow-sm);
    text-align: center;
}

.feature-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 12px;
}

.feature-title {
    color: var(--mpc-terracotta-d);
    margin: 0 0 8px;
}

.feature p {
    margin: 0;
    color: var(--mpc-ink);
    line-height: 1.5;
}

/* ---------------------------------------------------------------
   FAQ (balises <details> natives)
   --------------------------------------------------------------- */

.faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--mpc-cream);
    border-radius: var(--mpc-radius);
    box-shadow: var(--mpc-shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-family: var(--mpc-font-head);
    font-weight: 600;
    color: var(--mpc-terracotta-d);
    position: relative;
    padding-right: 48px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--mpc-coral);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--mpc-terracotta-d);
    outline-offset: -3px;
}

.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--mpc-ink);
    line-height: 1.6;
}

.faq-item a {
    color: var(--mpc-terracotta-d);
    font-weight: 700;
}

/* ---------------------------------------------------------------
   MENTION D'AFFILIATION (près des résultats)
   --------------------------------------------------------------- */

.affiliate-note {
    text-align: center;
    color: var(--mpc-terracotta-d);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 10px auto 0;
    max-width: 42rem;
    opacity: 0.85;
}

/* ---------------------------------------------------------------
   PIED DE PAGE — NAVIGATION & MENTIONS
   --------------------------------------------------------------- */

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 6px;
}

.footer-nav a {
    color: var(--mpc-on-dark);
    font-weight: 700;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-affiliate {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.92;
}

.footer-copyright {
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------
   PAGES LÉGALES (mentions-legales.html, confidentialite.html)
   --------------------------------------------------------------- */

.legal-main {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px clamp(20px, 5vw, 40px) 64px;
}

.legal-card {
    background: var(--mpc-cream);
    border-radius: var(--mpc-radius-lg);
    box-shadow: var(--mpc-shadow-lg);
    padding: clamp(28px, 5vw, 52px);
    color: var(--mpc-ink);
}

.legal-card h1 {
    font-family: var(--mpc-font-head);
    color: var(--mpc-terracotta-d);
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem);
    margin: 0 0 8px;
}

.legal-updated {
    color: var(--mpc-coral);
    font-weight: 600;
    margin: 0 0 28px;
}

.legal-card h2 {
    font-family: var(--mpc-font-head);
    color: var(--mpc-terracotta-d);
    margin: 32px 0 10px;
}

.legal-card p,
.legal-card li {
    line-height: 1.65;
}

.legal-card ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal-card a {
    color: var(--mpc-terracotta-d);
    font-weight: 700;
}

.legal-placeholder {
    background: var(--mpc-peach-soft);
    border-radius: 8px;
    padding: 1px 8px;
    font-weight: 700;
    color: var(--mpc-terracotta-d);
}

.legal-back {
    display: inline-block;
    margin-top: 32px;
    font-family: var(--mpc-font-head);
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(180deg, var(--mpc-terracotta) 0%, var(--mpc-terracotta-d) 100%);
    border-radius: 999px;
    padding: 13px 28px;
    box-shadow: var(--mpc-shadow-sm);
}

.legal-back:hover {
    filter: brightness(1.05);
}

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */

@media only screen and (max-width: 768px) {
    .hero-inner {
        padding: 32px 18px 4px;
    }

    .info-section {
        padding: 36px 18px;
    }

    .consent-banner {
        inset: auto 10px 10px 10px;
        padding: 14px 16px;
    }
}
