/* Carte cadeau en ligne (carte-cadeau.php) : compléments de css/reserver.css (mêmes variables et composants rs-*) */
.cc-tete { display: flex; align-items: center; gap: 12px; padding: 18px 16px 6px; }
.cc-tete small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--or-texte); }
.cc-tete b { font-family: var(--titre); font-size: 20px; letter-spacing: -.02em; }
.cc-photo { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2) center / cover; }

/* Aperçu du bon : volet central du bon imprimé (CarteCadeau::bonsHtml, volet « le cadeau »), mêmes couleurs et proportions de texte */
.cc-bon { --lin: #F3EDE4; --encre: #2A2521; --taupe: #7D736A;
    display: grid; grid-template-columns: minmax(0, 1.85fr) auto minmax(0, 1fr); gap: 0 clamp(12px, 3.4vw, 20px);
    margin: 4px 0 14px; padding: clamp(18px, 5vw, 26px) clamp(16px, 5vw, 26px); min-height: 170px; border-radius: 14px;
    background: var(--lin); color: var(--encre); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: 0 10px 28px rgba(44, 42, 36, .12); }
.cc-lib { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.cc-bon-montant { margin-top: 2px; font-size: clamp(44px, 15vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cc-eur { margin-left: .06em; font-size: .55em; letter-spacing: 0; vertical-align: .62em; }
.cc-bon-sep { width: 1px; background: var(--encre); }
.cc-bon-noms { min-width: 0; }
.cc-bon-nom { margin: 3px 0 12px; min-height: 20px; font-size: clamp(14px, 3.8vw, 17px); overflow-wrap: anywhere; }
.cc-ligne { display: block; height: 18px; border-bottom: 1px dotted var(--encre); }
.cc-bon-msg { margin: 0; font-size: 12.5px; font-weight: 300; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cc-bon-msg:empty { display: none; }

/* Montants : cases de même largeur, « Autre montant » compris ; 3 par ligne sur téléphone, une seule ligne dès la tablette */
.cc-montants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 2px; }
.cc-montant { min-height: 52px; padding: 6px 8px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--surface);
    font: inherit; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--texte); cursor: pointer; transition: border-color .15s, background .15s; }
.cc-montant:hover { border-color: var(--or); }
.cc-montant:active { transform: scale(.97); }
.cc-montant.on { border-color: var(--texte); background: var(--texte); color: #fff; }
.cc-montant-autre { font-size: 14px; font-weight: 600; line-height: 1.2; }
.cc-montant:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
@media (min-width: 560px) { .cc-montants { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); } }

/* Repères sous le message : de simples informations (icône + texte discret), sans fond ni bordure pour ne pas ressembler à des boutons */
.cc-reperes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 16px; padding: 0; }
.cc-reperes li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--texte-2); }
.cc-reperes svg { flex: none; width: 16px; height: 16px; color: var(--or-texte); }

/* Mise en page : ordinateur, aperçu du bon à gauche (gardé à l'écran) et formulaire à droite ; autres étapes en colonne centrée */
@media (min-width: 960px) {
    .rs-corps.cc-etroit { max-width: 600px; margin: 0 auto; }
    .cc-etape1 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
    .cc-col-apercu { position: sticky; top: 24px; }
    .cc-col-apercu .cc-bon { margin-top: 0; min-height: 260px; }
    .cc-tete { max-width: 1040px; margin: 0 auto; }
}
.cc-texte { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--fond); font: inherit; font-size: 16px; resize: vertical; }
.cc-texte:focus { outline: none; border-color: var(--or); background: #fff; box-shadow: 0 0 0 4px var(--or-voile); }
.cc-recap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 16px; border-radius: 14px; background: var(--or-voile); color: var(--or-texte); font-weight: 600; }
.cc-recap span { display: inline-flex; align-items: center; gap: 8px; }
.cc-recap svg { width: 18px; height: 18px; }
.cc-fin p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.cc-fin p > svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--or); }
.cc-fin .rs-aide { display: block; }

/* « Qui reçoit la carte ? » : deux choix en cartes (moi / la personne directement) ; empilés sur téléphone, côte à côte dès 560 px */
.cc-dest { display: grid; gap: 8px; margin-top: 8px; }
.cc-dest button { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--surface);
    font: inherit; text-align: left; color: var(--texte); cursor: pointer; transition: border-color .15s, background .15s; }
.cc-dest button:hover { border-color: var(--or); }
.cc-dest button.on { border-color: var(--texte); box-shadow: inset 0 0 0 1px var(--texte); background: var(--or-voile); }
.cc-dest button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.cc-dest svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--or-texte); }
.cc-dest b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.cc-dest small { display: block; margin-top: 2px; font-size: 13px; color: var(--texte-2); line-height: 1.35; }
@media (min-width: 560px) { .cc-dest { grid-template-columns: 1fr 1fr; } }
.cc-recap-envoi { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--texte-2); overflow-wrap: anywhere; }
.cc-recap-envoi svg { flex: none; width: 15px; height: 15px; color: var(--or-texte); }
.cc-recap { flex-wrap: wrap; }
.cc-form .rs-aide + .cc-reperes { margin-top: 12px; }

/* Apparition en cascade des champs de l'envoi direct (un élément après l'autre) */
.cc-cascade { animation: cc-cascade .32s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes cc-cascade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-cascade { animation: none; } }

/* Écran « Payé » : merci, la carte (volet du bon avec son numéro), « Et maintenant ? » en frise, actions */
.cc-merci { padding-bottom: 18px; }
.cc-suite { padding: 18px 18px 6px; }
.cc-suite-titre { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
.cc-etapes { list-style: none; margin: 0; padding: 0; }
.cc-etape { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.cc-etape:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--ligne); }
.cc-etape.fait:not(:last-child)::before { background: var(--vert); opacity: .35; }
.cc-etape-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--texte-2); }
.cc-etape-ico svg { width: 16px; height: 16px; }
.cc-etape.fait .cc-etape-ico { background: var(--vert); color: #fff; }
.cc-etape.a-venir .cc-etape-ico { background: var(--or-voile); color: var(--or-texte); box-shadow: inset 0 0 0 1.5px var(--or); }
.cc-etape div { min-width: 0; padding-top: 5px; }
.cc-etape b { display: block; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cc-etape small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--texte-2); overflow-wrap: anywhere; }
.cc-etape.a-venir b { color: var(--or-texte); }
.cc-actions { display: grid; gap: 10px; justify-items: center; margin-top: 4px; }
.cc-actions .rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.cc-actions .rs-btn svg { width: 18px; height: 18px; }
.cc-lien-soins { padding: 10px; font-weight: 600; }

/* Fil d'étapes en pleine largeur : 3 étapes réparties, nom sous chaque rond, reliées par un trait (vert une fois l'étape faite) */
.cc-fil { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 18px; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--texte-3); }
.cc-fil li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; line-height: 1.25; }
.cc-fil li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; border-radius: 2px; background: var(--ligne); }
.cc-fil li.fait:not(:last-child)::after { background: var(--vert); opacity: .4; }
.cc-fil span { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--texte-2); }
.cc-fil span svg { width: 14px; height: 14px; }
.cc-fil .fait { color: var(--texte-2); }
.cc-fil .fait span { background: var(--vert); color: #fff; }
.cc-fil .en-cours { color: var(--texte); }
.cc-fil .en-cours span { background: var(--texte); color: #fff; box-shadow: 0 0 0 4px var(--or-voile); }

/* Récapitulatif : montant et « Modifier » à droite */
.cc-recap-droite { display: inline-flex; align-items: center; gap: 12px; }
.cc-recap .rs-lien { text-decoration: underline; text-underline-offset: 2px; }

/* Écran e-mail : pourquoi un code */
.cc-explication { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--texte-2); }
.cc-explication b { color: var(--texte); }

/* Écran code : adresse, 6 cases, renvoi */
.cc-email-carte { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.cc-email-carte svg { flex: none; width: 20px; height: 20px; color: var(--or-texte); }
.cc-email-carte span { flex: 1; min-width: 0; }
.cc-email-carte small { display: block; font-size: 12px; color: var(--texte-2); }
.cc-email-carte b { display: block; overflow-wrap: anywhere; }
.cc-code-titre { margin: 0 0 10px; font-weight: 600; text-align: center; }
.cc-code { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); justify-content: center; gap: 8px; margin-bottom: 14px; }
.cc-chiffre { width: 100%; height: 58px; padding: 0; border: 1px solid var(--ligne); border-radius: 12px; background: var(--fond); text-align: center;
    font: inherit; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--texte); caret-color: var(--or); }
.cc-chiffre:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px var(--or-voile); background: var(--surface); }
.cc-centre { text-align: center; }
.cc-renvoi { margin: 12px 0 4px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--texte-2); }
.cc-renvoi .rs-lien { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.cc-renvoi .rs-lien:disabled { text-decoration: none; color: var(--texte-3); cursor: default; }

/* Ordinateur : en-tête calé sur la colonne centrée des écrans suivants */
@media (min-width: 960px) { .cc-tete.cc-tete-etroit { max-width: 600px; } }

/* Parcours aéré (carte cadeau seulement : #cc) — plus d'air entre blocs, champs et sections, un peu plus sur tablette et ordinateur */
#cc { --cc-air: 20px; }
#cc .cc-tete { padding-top: 22px; padding-bottom: 10px; }
#cc .cc-fil { margin: 10px 0 26px; }
#cc .rs-titre { margin: 4px 0 18px; }
#cc .rs-carte { padding: 22px 20px; margin-bottom: var(--cc-air); border-radius: 18px; }
#cc .rs-champ { margin-bottom: var(--cc-air); }
#cc .rs-champ > span { margin-bottom: 8px; }
#cc .cc-bon { margin: 0 0 var(--cc-air); }
#cc .cc-recap { margin-bottom: var(--cc-air); padding: 14px 18px; }
#cc .cc-montants, #cc .cc-dest { margin-top: 4px; }
#cc .cc-reperes { margin: 4px 0 22px; }
#cc .cc-explication { margin-bottom: 20px; }
#cc .cc-email-carte { margin-bottom: 22px; }
#cc .cc-code-titre { margin-bottom: 14px; }
#cc .cc-code { margin-bottom: 18px; }
#cc .rs-pour { margin-bottom: 22px; }
#cc .rs-pour-titre { margin-bottom: 12px; }
#cc .rs-deux { gap: 14px; }
#cc .rs-cgv { margin: 22px 0 18px; }
#cc .rs-ok { padding: 28px 0 22px; }
#cc .cc-suite { padding: 22px 20px 8px; }
#cc .cc-etape { padding-bottom: 20px; }
#cc .cc-actions { gap: 14px; margin-top: 8px; }
#cc .rs-pied { margin-top: 36px; }
@media (min-width: 700px) {
    #cc { --cc-air: 24px; }
    #cc .rs-carte { padding: 28px; }
    #cc .rs-titre { margin-bottom: 22px; }
}
@media (min-width: 960px) {
    #cc .cc-etape1 { gap: 36px; }
    #cc .cc-col-apercu { top: 32px; }
}
/* Récapitulatif : le nom prend la place disponible (et passe à la ligne si besoin), montant et « Modifier » restent à droite */
#cc .cc-recap > span:first-child { flex: 1 1 0; min-width: 0; }
#cc .cc-recap-droite { flex: none; }
/* Phrase de confiance : icône et texte alignés à gauche, sur la même ligne de départ */
#cc .rs-confiance { display: flex; align-items: flex-start; justify-content: center; gap: 8px; text-align: left; line-height: 1.45; }
#cc .rs-confiance svg { flex: none; margin-top: 2px; }
/* Ordinateur, écran de la carte (deux colonnes) : fil d'étapes limité et centré, comme sur les autres écrans */
@media (min-width: 960px) { #cc .cc-large .cc-fil { max-width: 600px; margin-left: auto; margin-right: auto; } }

/* Écran « Qui offre la carte ? » : erreur sous le champ concerné */
.cc-err { display: flex; align-items: flex-start; line-height: 1.35; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--rouge); }
.cc-err::before { content: "!"; display: inline-grid; place-items: center; flex: none; margin-top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700; }
.rs-cgv.erreur input { outline: 2px solid var(--rouge); outline-offset: 2px; }
#cc .rs-cgv + .cc-err { margin: -2px 0 6px 30px; }
.cc-fiches { margin: 0 0 10px; font-size: 13px; color: var(--texte-3); overflow-wrap: anywhere; }
.cc-fiches b { color: var(--texte-2); font-weight: 600; }
.cc-aide-champ { display: block; margin-top: 6px; font-size: 13px; color: var(--texte-3); }

/* Écran d'attente : cercle qui tourne, étape en cours, attente longue */
@keyframes cc-tourne { to { transform: rotate(360deg); } }
.cc-tourne { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--or-voile); border-top-color: var(--or); animation: cc-tourne .8s linear infinite; }
.cc-tourne.grand { width: 30px; height: 30px; border-width: 3px; }
.cc-attente-rond { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--or-voile); color: var(--or-texte); display: grid; place-items: center; }
.cc-attente-rond svg { width: 30px; height: 30px; }
.cc-etape.en-cours .cc-etape-ico { background: var(--or-voile); box-shadow: inset 0 0 0 1.5px var(--or); }
.cc-etape.en-cours b { color: var(--or-texte); }
#cc .cc-attente + .cc-recap { margin-bottom: var(--cc-air, 20px); }
.cc-attente-tel { margin: 0; text-align: center; font-size: 14px; color: var(--texte-2); }
.cc-attente-tel a { color: var(--texte); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .cc-tourne { animation-duration: 2.4s; } }

/* Paiement non abouti : « ! » sur l'étape Paiement, commande gardée */
.cc-fil .en-cours.rate span { background: var(--or); color: #fff; font-size: 14px; }
#cc .cc-attente + .cc-recap-garde { margin-bottom: var(--cc-air, 20px); }
.cc-recap-garde .cc-recap-envoi svg { color: var(--vert); }

/* Paiement interrompu (retour depuis Stripe) : bandeau calme qu'on peut fermer */
.cc-interrompu { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 var(--cc-air, 20px); padding: 14px 10px 14px 16px; border-radius: 16px; background: var(--or-voile); color: var(--texte-2); font-size: 14px; line-height: 1.45; }
.cc-interrompu > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--or-texte); }
.cc-interrompu p { flex: 1; margin: 0; }
.cc-interrompu b { color: var(--texte); }
.cc-interrompu-fermer { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -6px 0 -6px; border: 0; border-radius: 50%; background: none; color: var(--texte-2); cursor: pointer; }
.cc-interrompu-fermer:hover { background: rgba(0, 0, 0, .06); }
.cc-interrompu-fermer svg { width: 16px; height: 16px; }

/* Espacement de l'écran de la carte (règles du parcours : --cc-air entre deux blocs, 8 px entre un champ et ce qui
   l'explique) : l'aide colle à son champ, les repères forment un bloc à part, séparé par un filet, avant le bouton */
#cc .rs-champ + .rs-aide { margin: calc(8px - var(--cc-air)) 0 var(--cc-air); line-height: 1.45; }
#cc .cc-reperes { margin: 0 0 24px; padding-top: 18px; border-top: 1px solid var(--ligne); gap: 10px 20px; }
