/* ---------------------------------------------------------------------------------------------
   LA PAGE « OFFRIR » (page « Offrir », brief docs/BRIEF-bons-cadeaux-page-offrir-V1.md) — la maquette du 04/10/2026, validée par la
   Direction (docs/maquettes/offrir-bon-cadeau-2026-10-04.html). La CSP n'admet que les feuilles du site : pas de police Google (Fraunces
   et Nunito Sans de la maquette ont pour repli Georgia et la police du système). Sans script (html.no-js), l'aperçu du bon se cache :
   seuls restent le formulaire et « Payer par carte ».
   --------------------------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --mer: #123c4a; --mer-2: #1f6f7d; --ecume: #e9f3f2; --sable: #f6f1e8; --papier: #fffdf9;
  --encre: #14313a; --encre-2: #51696f; --trait: #d7e2e0; --or: #b8862f; --or-fonce: #8f6820; --or-clair: #f6ead2; --erreur: #a3352b;
  --titre: "Fraunces", Georgia, "Times New Roman", serif; --texte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body.offrir-body { margin: 0; background: var(--sable); color: var(--encre); font: 16px/1.5 var(--texte); }
[hidden] { display: none !important; }

/* Le bandeau : la photo réglée (Règles de vente) sous un voile, sinon le dégradé seul. */
.offrir-bandeau { position: relative; overflow: hidden; color: #fff; padding: 18px 16px 56px; min-height: clamp(220px, 34vw, 340px); display: grid; align-content: space-between; gap: 28px;
  background: linear-gradient(120deg, #0b2a35 0%, var(--mer) 45%, var(--mer-2) 100%); }
.offrir-bandeau-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; }
.offrir-bandeau.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10,40,52,.86) 0%, rgba(10,40,52,.55) 45%, rgba(10,40,52,.12) 100%); }
.offrir-bandeau::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 2; background: radial-gradient(26px 20px at 26px 26px, var(--sable) 98%, transparent) 0 0 / 52px 26px repeat-x; }
.offrir-bandeau-ligne, .offrir-accroche { position: relative; z-index: 3; max-width: 1080px; width: 100%; margin: 0 auto; }
.offrir-bandeau-ligne { display: flex; align-items: center; gap: 12px; }
.offrir-sigle { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; font: 600 16px var(--titre); }
.offrir-marque strong { display: block; letter-spacing: .08em; font-size: 14px; } .offrir-marque small { opacity: .8; }
.offrir-langue { margin-left: auto; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; text-decoration: none; }
.offrir-langue:hover, .offrir-langue:focus-visible { background: rgba(255,255,255,.14); }
.offrir-surtitre { color: #bfe7e3; font-weight: 800; letter-spacing: .14em; font-size: 12px; margin: 0; }
.offrir-accroche h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); font: 600 clamp(30px, 6vw, 44px)/1.08 var(--titre); margin: 6px 0 10px; text-wrap: balance; }
.offrir-chapeau { color: rgba(255,255,255,.92); font-size: 18px; max-width: 60ch; margin: 0; }

/* La page : le formulaire, et l'aperçu à droite (dessous au téléphone). */
.offrir-page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 56px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .offrir-page { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.offrir-intro { color: var(--encre-2); max-width: 60ch; margin: 0; }
.offrir-erreur { background: #fbe9e6; color: var(--erreur); border: 1px solid #f0c4bd; border-radius: 12px; padding: 10px 14px; font-weight: 700; margin: 16px 0 0; }
.offrir-etape { margin-top: 28px; }
.offrir-etape h2 { font: 600 20px var(--titre); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.offrir-etape h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--mer); color: #fff; display: grid; place-items: center; font: 700 14px var(--texte); flex: none; }
.offrir-aide { color: var(--encre-2); font-size: 14px; margin: 0 0 14px; }

/* Les onglets « Une activité / Un montant » : deux boutons radio. */
.offrir-onglets { display: inline-flex; background: var(--ecume); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.offrir-onglets label { position: relative; }
.offrir-onglets input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.offrir-onglets span { display: block; padding: 9px 18px; border-radius: 999px; font: 700 15px var(--texte); color: var(--encre-2); cursor: pointer; }
.offrir-onglets input:checked + span { background: #fff; color: var(--encre); box-shadow: 0 1px 3px rgba(18,60,74,.18); }
.offrir-onglets input:focus-visible + span { outline: 3px solid rgba(31,111,125,.45); outline-offset: 1px; }
.offrir-onglets input:disabled + span { opacity: .5; cursor: not-allowed; }
.offrir-page:has(input[name="kind"][value="value"]:checked) .offrir-cartes,
.offrir-page:has(input[name="kind"][value="value"]:checked) .offrir-fiches { display: none; }
.offrir-page:has(input[name="kind"][value="product"]:checked) .offrir-valeur { display: none; }

/* Les cartes : le bouton radio caché, le libellé couvre la carte ; « ··· » en bas à droite. */
.offrir-cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.offrir-carte { position: relative; background: var(--papier); border: 2px solid var(--trait); border-radius: 16px; overflow: hidden; display: flex; transition: border-color .15s, transform .15s, box-shadow .15s; }
.offrir-carte:hover { transform: translateY(-2px); border-color: var(--mer-2); }
.offrir-carte > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.offrir-carte > label { display: flex; flex-direction: column; width: 100%; cursor: pointer; }
.offrir-carte:has(> input:checked) { border-color: var(--mer); box-shadow: 0 0 0 3px rgba(31,111,125,.18); }
.offrir-carte:has(> input:checked)::before { content: "Choisi"; position: absolute; top: 10px; left: 10px; background: var(--mer); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; z-index: 1; }
html[lang="en"] .offrir-carte:has(> input:checked)::before { content: "Chosen"; }
.offrir-carte:has(> input:focus-visible) { outline: 3px solid rgba(31,111,125,.45); outline-offset: 2px; }
/* (§ 7 point 1) la photo remplit le haut de la carte, même proportion pour toutes ; sans photo, le dégradé. */
.offrir-photo { display: block; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--mer), var(--mer-2)); overflow: hidden; }
.offrir-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.offrir-photo.is-vide { background: linear-gradient(135deg, var(--mer) 0%, var(--mer-2) 70%, #4fa3a5 100%); }
.offrir-corps { padding: 12px 14px 14px; display: grid; gap: 4px; flex: 1; align-content: start; padding-right: 64px; }
.offrir-nom { font: 600 18px/1.2 var(--titre); }
.offrir-resume { color: var(--encre-2); font-size: 14px; }
.offrir-carte .offrir-prix { margin-top: 6px; }
.offrir-prix { font: 800 18px var(--texte); font-variant-numeric: tabular-nums; }
.offrir-plus { position: absolute; right: 12px; bottom: 12px; border: 1px solid var(--trait); background: #fff; border-radius: 999px; width: 44px; height: 36px; font: 800 18px/1 var(--texte); letter-spacing: 2px; color: var(--mer); cursor: pointer; }
.offrir-plus:hover, .offrir-plus[aria-expanded="true"] { background: var(--ecume); }
.offrir-plus:focus-visible { outline: 3px solid rgba(31,111,125,.45); outline-offset: 2px; }

/* La fiche « ··· » : sous la carte, sur toute la largeur de la grille. */
.offrir-fiche { grid-column: 1 / -1; background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.offrir-fiche header { display: flex; align-items: baseline; gap: 12px; }
.offrir-fiche h3 { font: 600 20px var(--titre); margin: 0; flex: 1; }
.offrir-fiche p, .offrir-fiche ul { margin: 0; color: var(--encre-2); }
.offrir-fiche ul { padding-left: 18px; }
.offrir-points { color: var(--encre) !important; font-weight: 600; }
.offrir-fermer { border: 0; background: var(--ecume); color: var(--mer); width: 32px; height: 32px; border-radius: 50%; font: 700 20px/1 var(--texte); cursor: pointer; }
.offrir-galerie { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.offrir-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }

/* Les montants en boutons ; « Autre » avec son champ. */
.offrir-montants { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.offrir-montant { position: relative; border: 2px solid var(--trait); background: var(--papier); border-radius: 14px; font: 800 18px var(--texte); cursor: pointer; font-variant-numeric: tabular-nums; color: var(--encre); display: flex; align-items: center; }
.offrir-montant > input[type="radio"] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.offrir-montant > span { padding: 12px 18px; }
.offrir-montant:has(> input:checked) { border-color: var(--mer); background: var(--ecume); }
.offrir-montant:has(> input:focus-visible) { outline: 3px solid rgba(31,111,125,.45); outline-offset: 2px; }
.offrir-autre { gap: 8px; padding-right: 12px; }
.offrir-autre > span { padding-right: 0; }
.offrir-autre input { width: 96px; border: 0; border-bottom: 2px solid var(--trait); background: none; font: inherit; color: inherit; padding: 4px 2px; }
.offrir-autre:has(input:focus), .offrir-autre:has(input:not(:placeholder-shown)) { border-color: var(--mer); background: var(--ecume); }

/* Les champs. */
.offrir-champs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.offrir-champ { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.offrir-champ input, .offrir-champ textarea { font: 16px var(--texte); padding: 11px 12px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; color: var(--encre); width: 100%; }
.offrir-champ input:focus, .offrir-champ textarea:focus, .offrir-envoi input[type="date"]:focus { outline: 3px solid rgba(31,111,125,.3); border-color: var(--mer-2); }
.offrir-large { grid-column: 1 / -1; }
.offrir-envoi { display: grid; gap: 10px; margin-top: 12px; }
.offrir-envoi label { display: flex; gap: 10px; align-items: center; background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: 12px; flex-wrap: wrap; cursor: pointer; }
.offrir-envoi label:has(input[type="radio"]:checked) { border-color: var(--mer-2); background: #fff; }
.offrir-envoi input[type="date"] { font: 15px var(--texte); padding: 6px 8px; border: 1px solid var(--trait); border-radius: 8px; color: var(--encre); background: #fff; }
.offrir-piege { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* L'aperçu du bon et la commande. */
.offrir-recap { background: var(--papier); border: 1px solid var(--trait); border-radius: 18px; padding: 16px; display: grid; gap: 14px; }
@media (min-width: 900px) { .offrir-recap { position: sticky; top: 16px; } }
.offrir-bon { border-radius: 14px; background: linear-gradient(135deg, var(--mer), var(--mer-2)); color: #fff; padding: 16px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.offrir-bon::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.08); }
.offrir-bon small { letter-spacing: .16em; font-weight: 800; opacity: .85; font-size: 11px; }
.offrir-bon strong { font: 600 22px/1.15 var(--titre); overflow-wrap: anywhere; }
.offrir-bon em { font-style: normal; opacity: .9; font-size: 14px; }
.offrir-bon em:empty { display: none; }
.offrir-ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.offrir-ligne b { font-variant-numeric: tabular-nums; text-align: right; }
.offrir-total { border-top: 1px solid var(--trait); padding-top: 12px; font-size: 18px; font-weight: 800; }
.offrir-payer { border: 0; border-radius: 14px; background: var(--or); color: #fff; font: 800 17px var(--texte); padding: 14px; cursor: pointer; }
.offrir-payer:hover { background: var(--or-fonce); }
.offrir-payer:focus-visible, .offrir-ajouter:focus-visible { outline: 3px solid rgba(31,111,125,.45); outline-offset: 2px; }
.offrir-rassure { color: var(--encre-2); font-size: 13px; margin: 0; display: grid; gap: 4px; }
.offrir-ajouter { border: 2px dashed var(--mer-2); background: none; color: var(--mer); border-radius: 12px; padding: 10px; font: 800 15px var(--texte); cursor: pointer; }
.offrir-ajouter:hover { background: var(--ecume); }
.offrir-deja { border-top: 1px solid var(--trait); padding-top: 12px; display: grid; gap: 8px; }
.offrir-deja small { letter-spacing: .12em; font-weight: 800; color: var(--encre-2); font-size: 11px; }
.offrir-deja ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offrir-deja li { display: grid; gap: 2px; }
.offrir-deja em { font-style: normal; color: var(--encre-2); font-size: 13px; }
.offrir-gestes { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.offrir-gestes button { border: 0; background: none; padding: 0; color: var(--encre-2); font: 600 13px var(--texte); text-decoration: underline; cursor: pointer; }
.offrir-gestes button:hover { color: var(--mer); }
.no-js [data-apercu] { display: none; }
