/* monepicerie.app — la DNA de l'app (CLAUDE.md) : dégradé orange plein écran,
   cartes blanches très arrondies, ombres chaudes, Plus Jakarta Sans servie
   d'ici (aucune requête vers Google : la page confidentialité le promet). */

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('/assets/polices/PlusJakartaSans_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('/assets/polices/PlusJakartaSans_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('/assets/polices/PlusJakartaSans_800ExtraBold.ttf') format('truetype'); }

:root {
  --texte: #1a140d;
  --texte-2: #8c857b;
  --texte-3: #bdb6a9;
  --vert: #15914c;
  --vert-fonce: #0f7a40;
  --vert-doux: #e4f4ea;
  --bleu: #1f56e0;
  --bleu-doux: #e6edfd;
  --pastille: #f1efe9;
  --ombre-carte: 0 14px 30px -18px rgba(140, 70, 0, .5);
  --ombre-vert: 0 12px 26px -10px rgba(15, 122, 64, .7);
}

* { box-sizing: border-box; }

/* Le haut de la page (barre d’état de l’iPhone, rebond du défilement) prend la couleur
   du début du dégradé, pas celle de la fin : sinon une bande d’orange plus foncé apparaît. */
html { background: #ffc23d; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(168deg, #ffc23d 0%, #ff8f1f 100%) fixed;
  background-color: #ffc23d;
  color: var(--texte);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 760px; margin: 0 auto; padding: 0 18px 40px; }

/* En-tête : icône + nom, langue à droite. */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 18px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.4px; }
.marque img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 8px 18px -10px rgba(140, 70, 0, .6); }
.langue { background: rgba(255, 255, 255, .9); color: var(--texte); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--ombre-carte); }

nav.onglets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
nav.onglets a { background: rgba(255, 255, 255, .55); color: var(--texte); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
nav.onglets a[aria-current="page"] { background: #fff; box-shadow: var(--ombre-carte); }

.carte { background: #fff; border-radius: 24px; padding: 26px 24px; margin-bottom: 14px; box-shadow: var(--ombre-carte); }
.carte > :first-child { margin-top: 0; }
.carte > :last-child { margin-bottom: 0; }

h1 { font-weight: 800; font-size: 34px; line-height: 1.12; letter-spacing: -1px; margin: 0 0 12px; }
h2 { font-weight: 800; font-size: 21px; line-height: 1.25; letter-spacing: -.4px; margin: 0 0 10px; }
h3 { font-weight: 800; font-size: 16px; letter-spacing: -.2px; margin: 18px 0 4px; }
p, li { margin: 0 0 10px; }
ul { padding-left: 20px; margin: 0 0 10px; }
li::marker { color: var(--texte-3); }
.second { color: var(--texte-2); }
.petit { font-size: 13px; }
a { color: var(--bleu); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
strong { font-weight: 800; }

.chapeau { font-size: 18px; color: var(--texte-2); margin-bottom: 18px; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 18px; background: var(--vert); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: var(--ombre-vert); }
.bouton svg { flex: none; }

.etiquette { display: inline-flex; align-items: center; gap: 8px; background: var(--pastille); color: var(--texte); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }

/* Pastilles des bannières : couleur unie + nom en texte, jamais de logo. */
.bannieres { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.banniere { font-weight: 800; font-size: 13px; letter-spacing: .2px; padding: 6px 12px; border-radius: 999px; color: #fff; }

.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.grille .carte { margin: 0; padding: 22px 20px; }
.tuile { width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.tuile svg { width: 24px; height: 24px; }

/* Questions fréquentes : un seul <details> ouvert à la fois n'est pas requis ici. */
details { border-top: 1px solid var(--pastille); padding: 14px 0; }
details:first-of-type { border-top: 0; padding-top: 4px; }
details:last-of-type { padding-bottom: 0; }
summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
/* Une petite flèche vers le bas, dessinée en CSS ; elle se retourne à l'ouverture. */
summary::after { content: ''; flex: none; width: 8px; height: 8px; margin: 5px 4px 0 0; border-right: 2px solid var(--texte-2); border-bottom: 2px solid var(--texte-2); transform: rotate(45deg); transition: transform .25s ease, margin .25s ease; }
details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
details p, details ul, details .tableau { margin-top: 8px; }

/* Carte repliée (Supprimer ton compte) : le titre et la petite flèche ; le texte s'ouvre au clic. */
details.pliable { border: 0; padding: 0; }
details.pliable summary { align-items: center; }
details.pliable summary h2 { margin: 0; }
details.pliable summary::after { margin-top: -4px; }
details.pliable[open] summary::after { margin-top: 4px; }
details.pliable[open] summary { margin-bottom: 10px; }
/* Comme dans l'app (Mon compte) : carte blanche, texte en corail. */
#supprimer summary h2, #delete summary h2 { color: #ff5a48; }
#supprimer summary::after, #delete summary::after { border-color: #ff5a48; }

.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-top: 1px solid var(--pastille); }
.tableau th { font-weight: 800; width: 34%; }

.encadre { background: var(--vert-doux); border-radius: 17px; padding: 16px 18px; margin: 14px 0; }
.encadre p:last-child { margin: 0; }

.pied { text-align: center; color: rgba(26, 20, 13, .72); font-size: 13px; padding: 18px 0 0; }
.pied a { color: var(--texte); font-weight: 700; }
.pied p { margin: 0 0 6px; }

@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .grille { grid-template-columns: 1fr; }
  .carte { padding: 22px 18px; }
  .tableau th { width: 40%; }
}

/* iPhone : Safari ne sait pas fixer un dégradé de fond (background-attachment: fixed) ;
   il l'étire sur toute la page, et la bande de l'heure (une couleur unie) jure avec
   l'orange du milieu. On pose le dégradé sur un calque fixe, à la taille de l'écran,
   et deux filets fixes aux bords donnent à Safari la couleur du haut et du bas.
   Le texte garde sa taille : Safari ne le grossit plus dans les petits écrans. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 860px) {
  body { background: transparent !important; }
  body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(168deg, #ffc23d 0%, #ff8f1f 100%); pointer-events: none; }
  html::before, html::after { content: ''; position: fixed; left: 0; right: 0; height: 1px; z-index: 100; pointer-events: none; }
  html::before { top: 0; background-color: #ffc23d; }
  html::after { bottom: 0; background-color: #ff8f1f; }
}

/* Pied de page : deux lignes d'air entre « Écris-nous » et le ©. */
.pied p:nth-child(2) { margin-bottom: 2.6em; }
