/**
    MON PETIT CADEAU — TOKENS DE THÈME & RAFFINEMENTS (2026)
    -------------------------------------------------------------
    Chargé après style.css. Définit l'identité visuelle (palette
    pêche/terracotta, ombres, rayons, polices) sous forme de tokens
    CSS réutilisés par content.css et app.css, puis raffine les
    éléments encore servis par la couche de base : typographie,
    navigation, intro, pied de page, formulaire de contact et
    cartes de résultats.

    NB : les raffinements de l'ancien questionnaire (.selection-*,
    .custom-option-caption, .select-option-style, .button-selection…)
    ont été retirés avec leur DOM obsolète.
**/

:root {
    /* Palette chaleureuse (affinée depuis les couleurs d'origine) */
    --mpc-peach: #ffc3a1; /* pêche de marque        */
    --mpc-peach-soft: #ffd8c2; /* surface pêche claire   */
    --mpc-cream: #fbede3; /* surface carte / option */
    --mpc-cream-2: #f4d8c8; /* crème secondaire       */
    --mpc-terracotta: #a75d5d; /* terracotta principal   */
    --mpc-terracotta-d: #8c4a4a; /* terracotta foncé       */
    --mpc-coral: #d3756b; /* corail d'accent        */
    --mpc-ink: #6e3b3b; /* « encre » chaude       */
    --mpc-on-dark: #fbede3; /* texte sur terracotta   */

    /* Ombres douces, teintées chaud */
    --mpc-shadow-sm: 0 2px 8px rgba(140, 74, 74, 0.12);
    --mpc-shadow-md: 0 10px 28px rgba(140, 74, 74, 0.16);
    --mpc-shadow-lg: 0 18px 48px rgba(140, 74, 74, 0.2);

    --mpc-radius: 22px;
    --mpc-radius-lg: 30px;
    --mpc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    --mpc-font-head: "Fredoka", "Kufam", sans-serif;
    --mpc-font-body: "Nunito", "Kufam", sans-serif;
}

/* ---------------------------------------------------------------
   TYPOGRAPHIE
   --------------------------------------------------------------- */

* {
    font-family: var(--mpc-font-body);
}

body {
    color: var(--mpc-ink);
    line-height: 1.6;
    background-color: var(--mpc-peach);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

header {
    background-color: var(--mpc-peach);
}

h2,
h3,
.menu-title,
.form-send-button,
.intro {
    font-family: var(--mpc-font-head);
    letter-spacing: 0.2px;
}

h2 {
    font-size: clamp(1.5rem, 1rem + 1.6vw, 2rem);
    line-height: 1.25;
    font-weight: 600;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------------------------------------------------------------
   NAVIGATION + MASCOTTE
   --------------------------------------------------------------- */

nav {
    background-color: var(--mpc-peach);
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: calc(18px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-right)) 18px
        calc(28px + env(safe-area-inset-left));
    flex-wrap: wrap;
}

.logo {
    width: auto;
    max-width: 220px;
    height: auto;
    padding: 6px 24px 6px 6px;
    margin-right: auto;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.35s var(--mpc-ease);
    cursor: pointer;
}

.logo:hover {
    box-shadow: none;
    transform: translateY(-3px) rotate(-1.5deg);
}

nav a {
    font-family: var(--mpc-font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mpc-terracotta-d);
    border: 2px solid transparent;
    background-color: var(--mpc-cream);
    border-radius: 999px;
    padding: 11px 22px;
    box-shadow: var(--mpc-shadow-sm);
    transition:
        transform 0.2s var(--mpc-ease),
        box-shadow 0.2s var(--mpc-ease),
        background-color 0.2s var(--mpc-ease),
        color 0.2s var(--mpc-ease);
}

nav a:hover,
nav a:focus-visible {
    box-shadow: var(--mpc-shadow-md);
    background-color: var(--mpc-terracotta);
    color: var(--mpc-on-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

nav a:active {
    transform: translateY(0);
    box-shadow: var(--mpc-shadow-sm);
}

/* ---------------------------------------------------------------
   ARRIÈRE-PLAN + INTRO
   --------------------------------------------------------------- */

main {
    border-top: 0;
    border-bottom: 0;
}

.intro {
    color: #ffffff;
    font-size: clamp(1.15rem, 0.9rem + 1vw, 1.5rem);
    font-weight: 600;
    line-height: 1.5;
    width: auto;
    max-width: 46rem;
    margin: 34px auto;
    padding: 0 24px;
    text-align: center;
}

.main-content {
    border-top: 0;
    background-color: var(--mpc-peach);
    padding: 14px 0 46px;
}

/* ---------------------------------------------------------------
   PIED DE PAGE
   --------------------------------------------------------------- */

footer {
    gap: 26px;
    padding: 40px clamp(20px, 5vw, 64px);
    align-items: flex-start;
}

footer div {
    border: 0;
    padding: 0;
}

.mentions {
    gap: 14px;
}

.footer-area {
    background-color: rgba(251, 237, 227, 0.14);
    color: var(--mpc-on-dark);
    border: 0;
    border-radius: 16px;
    padding: 16px 20px;
    margin: 0;
    gap: 12px;
    line-height: 1.4;
}

.footer-form .intro {
    color: #ffffff;
    text-align: left;
    margin: 0 0 8px;
    padding: 0;
}

.form-send-mail {
    gap: 8px;
    color: var(--mpc-on-dark);
}

.form-send-mail label {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    color: var(--mpc-on-dark);
    font-weight: 700;
    padding: 6px 2px 2px;
    margin: 0;
}

.form-send-mail input,
.form-send-mail textarea {
    background-color: var(--mpc-cream);
    border: 2px solid transparent;
    border-radius: 14px;
    color: var(--mpc-ink);
    padding: 13px 16px;
    margin: 0;
    transition:
        border-color 0.2s var(--mpc-ease),
        box-shadow 0.2s var(--mpc-ease);
}

.form-send-mail input::placeholder,
.form-send-mail textarea::placeholder {
    color: #b79a8e;
}

.form-send-mail input:focus,
.form-send-mail textarea:focus {
    outline: 0;
    border-color: var(--mpc-coral);
    box-shadow: 0 0 0 3px rgba(211, 117, 107, 0.3);
}

.form-send-button {
    margin-top: 14px;
    background: var(--mpc-cream);
    color: var(--mpc-terracotta-d);
    font-family: var(--mpc-font-head);
    font-weight: 600;
    font-size: 1.05rem;
    border: 0;
    border-radius: 999px;
    padding: 15px 24px;
    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);
}

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

.form-send-button:active {
    transform: translateY(1px);
    box-shadow: var(--mpc-shadow-sm);
}

.form-send-button:focus-visible {
    outline: 3px solid var(--mpc-on-dark);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------
   DÉCLENCHEUR MENU MOBILE
   --------------------------------------------------------------- */

.menu-mobile {
    border-radius: 18px;
    box-shadow: var(--mpc-shadow-sm);
    transition: background-color 0.2s var(--mpc-ease);
}

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

@media only screen and (max-width: 768px) {
    nav {
        padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 16px
            calc(16px + env(safe-area-inset-left));
        gap: 0;
    }

    .logo {
        max-width: 70%;
        margin: 0 auto 6px;
        padding: 6px;
        background-color: transparent;
    }

    .mobile-menu {
        width: 100%;
        margin-top: 12px;
    }

    .menu-mobile {
        font-size: 1.8rem;
        padding: 10px;
        background-color: var(--mpc-cream);
        color: var(--mpc-terracotta-d);
        border-radius: 16px;
    }

    .menu-title {
        background-color: var(--mpc-cream);
        border-radius: 14px;
        margin: 6px auto;
        padding: 12px 16px;
        width: 100%;
    }

    footer {
        padding: 30px 18px;
    }
}

/* respect de la préférence « mouvement réduit » */
@media (prefers-reduced-motion: reduce) {
    *,
    .logo,
    nav a,
    .gift-card {
        transition: none !important;
    }
}

/* ---------------------------------------------------------------
   RYTHME VERTICAL (respiration)
   --------------------------------------------------------------- */

.intro {
    margin: 44px auto 10px;
}

.main-content {
    padding: 28px 0 64px;
}

footer {
    margin-top: 8px;
    padding: 56px calc(clamp(20px, 5vw, 72px) + env(safe-area-inset-right))
        calc(56px + env(safe-area-inset-bottom))
        calc(clamp(20px, 5vw, 72px) + env(safe-area-inset-left));
    gap: 40px;
}

/* ---------------------------------------------------------------
   RÉSULTATS — CARTES D'IDÉES CADEAUX
   --------------------------------------------------------------- */

.gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 26px 22px 24px;
    background: linear-gradient(180deg, #ffffff 0%, var(--mpc-cream) 100%);
    border-radius: var(--mpc-radius);
    box-shadow: var(--mpc-shadow-sm);
    border: 2px solid transparent;
    transition:
        transform 0.22s var(--mpc-ease),
        box-shadow 0.22s var(--mpc-ease),
        border-color 0.22s var(--mpc-ease);
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mpc-shadow-md);
    border-color: var(--mpc-peach);
}

.gift-card-visual {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    line-height: 1;
    border-radius: 24px;
    background: radial-gradient(
        circle at 30% 25%,
        var(--mpc-peach-soft) 0%,
        var(--mpc-peach) 60%,
        var(--mpc-coral) 100%
    );
    box-shadow: var(--mpc-shadow-sm);
}

.gift-card-title {
    color: var(--mpc-terracotta-d);
    margin: 0;
}

.gift-card-desc {
    color: var(--mpc-ink);
    font-size: 0.98rem;
    line-height: 1.45;
    margin: 0;
    flex: 1 1 auto;
}

.gift-card-link {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--mpc-font-head);
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(180deg, var(--mpc-terracotta) 0%, var(--mpc-terracotta-d) 100%);
    border-radius: 999px;
    padding: 12px 22px;
    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);
}

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

.gift-card-link:active {
    transform: translateY(1px);
    box-shadow: var(--mpc-shadow-sm);
}

.gift-card-link:focus-visible {
    outline: 3px solid var(--mpc-terracotta-d);
    outline-offset: 3px;
}

@media only screen and (max-width: 768px) {
    .gift-card {
        padding: 20px 16px;
    }

    footer {
        padding: 40px calc(20px + env(safe-area-inset-right))
            calc(40px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
        gap: 28px;
    }
}

/* ---------------------------------------------------------------
   REPLI NOSCRIPT
   --------------------------------------------------------------- */

.noscript-banner {
    margin: 24px auto;
    max-width: 45rem;
    padding: 16px 20px;
    border-radius: var(--mpc-radius);
    background-color: var(--mpc-cream);
    color: var(--mpc-terracotta-d);
    border: 2px solid var(--mpc-terracotta);
    box-shadow: var(--mpc-shadow-sm);
    text-align: center;
    font-weight: 600;
}
