/* presentation.css - Pages publiques de Recettik (accueil.html, mentions-legales.html)
   CSS autonome : ni Tailwind ni JavaScript, polices hébergées sur notre serveur (polices.css). Mobile d'abord. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #FBF6EE; color: #17231D; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; line-height: 1.5; }
a { color: #047857; }
a:hover { color: #065F46; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.pile { display: flex; flex-direction: column; gap: 16px; }
.etroit { max-width: 760px; }
.surtitre { font-size: 14px; font-weight: 700; color: #047857; text-transform: uppercase; letter-spacing: 1.5px; }
.titre-2 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; }
.texte { font-size: 16px; line-height: 1.6; color: #3D4D45; }
.grille { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* Boutons */
.bouton { display: inline-block; text-align: center; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 24px; border-radius: 14px; }
.bouton-plein { background: #047857; color: #FFFFFF; }
.bouton-plein:hover { background: #065F46; color: #FFFFFF; }
.bouton-clair { background: #FFFFFF; color: #17231D; border: 1px solid #D9D2C4; }
.bouton-clair:hover { color: #047857; }
.bouton-jaune { background: #FBD38D; color: #17231D; font-weight: 700; }
.bouton-jaune:hover { background: #F6C46A; color: #17231D; }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #17231D; }
.logo span { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.nav a { color: #33433B; text-decoration: none; white-space: nowrap; }
.nav a.bouton-plein { color: #FFFFFF; }
.nav a:hover { color: #047857; }
.nav .nav-section { display: none; }
.nav .connexion { font-size: 14px; font-weight: 600; color: #4A5A52; }
.nav .bouton { font-size: 15px; padding: 10px 16px; border-radius: 999px; }

/* Accroche */
.accroche { display: grid; gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 64px; }
.pastille { align-self: flex-start; background: #E3F4EC; color: #065F46; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.titre-1 { font-size: 38px; line-height: 1.08; font-weight: 700; letter-spacing: -1px; }
.chapeau { font-size: 18px; line-height: 1.55; color: #3D4D45; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.mention { font-size: 14px; color: #4A5A52; }

/* Téléphone d'illustration */
.telephone { width: 100%; max-width: 340px; margin: 0 auto; background: #FFFFFF; border-radius: 32px; padding: 20px; box-shadow: 0 30px 60px rgba(23,35,29,0.14); border: 1px solid #ECE5D8; display: flex; flex-direction: column; gap: 12px; }
.ticket { background: #FBF6EE; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ligne { display: flex; justify-content: space-between; font-size: 14px; }
.ligne.entete-ticket { font-size: 13px; font-weight: 700; color: #4A5A52; }
.ligne.grise { color: #6B776F; }
.confirmation { display: flex; align-items: center; gap: 10px; background: #E3F4EC; color: #065F46; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 700; }
.soustitre-tel { font-size: 15px; font-weight: 700; margin-top: 4px; }
.carte-recette { border: 1px solid #ECE5D8; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.carte-recette strong { font-weight: 700; }
.carte-recette span { font-size: 13px; color: #4A5A52; }
.carte-recette.manque { border-style: dashed; border-color: #D9D2C4; }
.carte-recette.manque span { color: #8A5A00; }

/* Bloc sombre « Qu'est-ce qu'on mange ce soir ? » */
.sombre { background: #17231D; color: #FBF6EE; }
.sombre .texte { color: #D6DDD8; font-size: 17px; }
.carte-sombre { background: #22312A; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.carte-sombre strong { font-size: 19px; }
.carte-sombre span { font-size: 16px; line-height: 1.6; color: #D6DDD8; }

/* Étapes */
.etape { background: #FFFFFF; border: 1px solid #ECE5D8; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.numero { width: 48px; height: 48px; border-radius: 14px; background: #047857; color: #FFFFFF; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.etape h3 { font-size: 21px; font-weight: 700; }

/* Bénéfices */
.blanc { background: #FFFFFF; border-top: 1px solid #ECE5D8; border-bottom: 1px solid #ECE5D8; }
.benefice { background: #FBF6EE; border-radius: 22px; padding: 24px; display: flex; gap: 16px; }
.benefice svg { flex: none; }
.benefice h3 { font-size: 19px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.benefice div { display: flex; flex-direction: column; gap: 6px; }
.bientot { background: #FBD38D; color: #17231D; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Confiance */
.confiance { display: grid; gap: 32px; align-items: center; }
.garantie { background: #FFFFFF; border: 1px solid #ECE5D8; border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.garantie svg { flex: none; }

/* Tarifs (bouton mensuel / annuel en CSS pur : deux boutons radio) */
.tarifs { background: #E3F4EC; }
.centre { text-align: center; align-items: center; margin: 0 auto; }
.choix-periode { display: inline-flex; gap: 4px; background: #FFFFFF; padding: 5px; border-radius: 999px; margin-top: 8px; border: 0; }
.choix-periode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix-periode label { font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; cursor: pointer; color: #17231D; }
.choix-periode input:checked + label { background: #047857; color: #FFFFFF; }
.choix-periode input:focus-visible + label { outline: 3px solid #065F46; outline-offset: 2px; }
.prix-annuel { display: none; }
.tarifs:has(#periode-annuelle:checked) .prix-annuel { display: inline; }
.tarifs:has(#periode-annuelle:checked) .prix-mensuel { display: none; }
.formules { display: grid; gap: 20px; max-width: 920px; margin: 32px auto 0; }
.formule { background: #FFFFFF; border: 1px solid #CDE7DA; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.formule.famille { background: #17231D; color: #FBF6EE; border: 0; }
.formule-nom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 22px; font-weight: 700; }
.etiquette { background: #FBD38D; color: #17231D; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.prix { display: flex; align-items: baseline; gap: 6px; }
.prix strong { font-size: 44px; font-weight: 700; letter-spacing: -1px; }
.prix span, .formule .public { font-size: 15px; color: #4A5A52; }
.famille .prix span, .famille .public { color: #C9D3CD; }
.formule ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.formule .bouton { margin-top: auto; }
.bouton-contour { background: #FFFFFF; color: #047857; border: 2px solid #047857; }
.bouton-creme { background: #FBF6EE; color: #17231D; }
.bouton-creme:hover { background: #FFFFFF; color: #17231D; }
.note-tarifs { font-size: 14px; color: #2F4038; text-align: center; margin-top: 24px; }

/* Questions */
.faq { max-width: 860px; }
details { background: #FFFFFF; border: 1px solid #ECE5D8; border-radius: 18px; padding: 18px 22px; }
summary { font-size: 17px; font-weight: 700; cursor: pointer; }
details p { margin-top: 12px; }

/* Liste d'attente */
.attente { background: #047857; color: #FFFFFF; border-radius: 28px; padding: 36px 24px; display: grid; gap: 28px; align-items: center; }
.attente .texte { color: #E3F4EC; font-size: 17px; }
.attente .petit { font-size: 13px; color: #E3F4EC; line-height: 1.5; }
.attente .petit a { color: #FFFFFF; }

/* Formulaire de liste d'attente (sans JavaScript : messages affichés par :target après la redirection) */
.formulaire-attente { display: flex; flex-direction: column; gap: 10px; }
.etiquette-champ { font-size: 15px; font-weight: 700; }
.champ-ligne { display: flex; flex-wrap: wrap; gap: 10px; }
.champ-ligne input { flex: 1 1 220px; min-width: 0; font-family: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; color: #17231D; background: #FFFFFF; }
.champ-ligne input:focus { outline: none; border-color: #FBD38D; }
.champ-ligne .bouton { flex: 1 1 auto; border: 0; cursor: pointer; font-family: inherit; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-attente { display: none; background: #FFFFFF; color: #065F46; font-weight: 700; font-size: 15px; padding: 12px 16px; border-radius: 14px; scroll-margin-top: 40vh; }
.message-attente.erreur { color: #9B2C2C; }
.message-attente:target { display: block; }

/* Pied de page */
.pied { border-top: 1px solid #ECE5D8; margin-top: auto; }   /* pied collé en bas même sur une page courte */
.pied .conteneur { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: #4A5A52; }
.pied nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Mentions légales */
.document { max-width: 760px; padding-bottom: 64px; }
.document h1 { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; margin: 16px 0 24px; }
.document h2 { font-size: 21px; font-weight: 700; margin: 32px 0 10px; }
.document p, .document li { font-size: 16px; line-height: 1.65; color: #3D4D45; }
.document p + p { margin-top: 10px; }
.document ul { padding-left: 20px; margin: 8px 0 0; }

/* Très petits écrans : l'en-tête tient sur une ligne */
@media (max-width: 479px) {
    .nav .bouton { display: none; }   /* le bouton « Rejoindre la liste d'attente » suit juste en dessous */
}

/* Écrans moyens et grands */
@media (min-width: 720px) {
    .conteneur { padding-left: 32px; padding-right: 32px; }
    .section { padding-top: 88px; padding-bottom: 88px; }
    .titre-1 { font-size: 50px; }
    .titre-2 { font-size: 38px; }
    .chapeau { font-size: 20px; }
    .grille-3 { grid-template-columns: repeat(3, 1fr); }
    .grille-2 { grid-template-columns: repeat(2, 1fr); }
    .formules { grid-template-columns: repeat(2, 1fr); }
    .formule { padding: 36px; }
    .attente { padding: 56px 48px; grid-template-columns: 1.2fr 1fr; }
    .titre-attente { font-size: 36px; }
}
@media (max-width: 719px) and (min-width: 560px) {
    .grille-3 { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
    .nav .nav-section { display: inline; }
    .accroche { grid-template-columns: 1.15fr 1fr; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
    .titre-1 { font-size: 60px; letter-spacing: -1.5px; }
    .confiance { grid-template-columns: 1fr 1fr; gap: 48px; }
}
