/* style.css — cadeau-pour-enfant.com, thème « Le Petit Paquet » (30/10/2026).
   Idée : le paquet vu d'en haut. La ficelle orchidée croise les blocs (résumé, encadré), les coins du site sont des
   étiquettes cadeau, le hero pose le titre sur le papier kraft. Aplats francs, ni dégradé ni ombre au repos.
   Toutes les valeurs viennent de tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font-family: var(--police-texte); font-size: var(--t-1); line-height: 1.6;
  font-optical-sizing: auto; overflow-wrap: break-word;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--orchidee-fonce); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--encre); text-decoration-color: var(--orchidee); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--police-titre); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-4); }
h2 { font-size: var(--t-3); }
h3 { font-size: var(--t-2); }
p { margin: 0 0 1em; }
.saut { position: absolute; left: -999px; top: 0; background: var(--orchidee); color: var(--sur-orchidee); padding: .7rem 1rem; z-index: 10; border-radius: 0 0 var(--rayon-petit) 0; }
.saut:focus { left: 0; }

.cadre { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); }
.colonne { max-width: var(--large); }
.section { padding-block: var(--esp-5) 0; }
.section:last-child { padding-bottom: var(--esp-5); }
.section-titre { font-size: var(--t-3); margin-bottom: var(--esp-3); }
.section-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--esp-2); margin-bottom: var(--esp-3); }
.section-tete .section-titre { margin: 0; }
.lien-fleche { font-weight: 800; text-decoration: none; color: var(--orchidee-fonce); }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }
.vide { color: var(--discret); }

/* ---------- bandeau ---------- */
.bandeau { background: var(--fond); padding-block: 14px; }
.bandeau-in { display: flex; align-items: center; gap: var(--esp-2) var(--esp-4); flex-wrap: wrap; }
.logo { flex: 0 0 auto; }
.logo img { width: clamp(200px, 22vw, 268px); height: auto; }
.rayons { flex: 1 1 auto; }
.rayons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 2px; justify-content: flex-end; }
.rayons a {
  display: inline-block; padding: .45rem .8rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  color: var(--encre); text-decoration: none; transition: background-color var(--duree), color var(--duree);
}
.rayons a:hover { background: var(--abricot); color: var(--encre); }
.rayons a[aria-current="page"] { background: var(--orchidee); color: var(--sur-orchidee); }
@media (max-width: 860px) {
  .bandeau-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rayons { width: calc(100% + 2 * var(--marge)); margin-inline: calc(-1 * var(--marge)); }
  .rayons ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-inline: var(--marge); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rayons ul::-webkit-scrollbar { display: none; }
  .rayons li { flex: 0 0 auto; }
  .rayons a { background: var(--papier); }
}

/* ---------- la une (accueil) ---------- */
.une { padding-block: clamp(1rem, 2vw, 2rem) 0; }
.une-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--esp-4); align-items: stretch; }
.une-texte {
  background: var(--kraft); border-radius: var(--rayon); padding: clamp(1.5rem, 3vw, 3rem) 5rem clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem);
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
/* la ficelle du paquet : un aplat vertical, pas un filet */
.une-texte::before { content: ""; position: absolute; top: 0; bottom: 0; right: 2.2rem; width: var(--ficelle); background: var(--orchidee); opacity: .9; }
.une-texte > * { position: relative; }
.une h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem); max-width: 16ch; margin-bottom: var(--esp-2); color: var(--encre); }
.une .chapo { font-size: var(--t-2); line-height: 1.4; max-width: 34ch; margin-bottom: var(--esp-3); }
.pour-qui-titre { font-size: var(--t-2); margin-bottom: .7rem; }
.pour-qui ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pour-qui a {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--fond); color: var(--encre);
  font-weight: 800; text-decoration: none; transition: background-color var(--duree), color var(--duree), transform var(--duree);
}
.pour-qui a:hover { background: var(--orchidee); color: var(--sur-orchidee); }
.pour-qui a:active { transform: scale(.97); }
.une-media { border-radius: var(--rayon); overflow: hidden; background: var(--abricot); min-height: 320px; }
.une-media picture, .une-media img, .une-media video { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .media-anime img { animation: derive 16s ease-in-out infinite alternate; transform-origin: 62% 48%; will-change: transform; }
  @keyframes derive { from { transform: scale(1.02) translate3d(1.5%, 0, 0); } to { transform: scale(1.07) translate3d(-2%, -1%, 0); } }
}
@media (max-width: 860px) {
  .une-grille { grid-template-columns: 1fr; gap: var(--esp-2); }
  .une-media { order: -1; aspect-ratio: 4 / 5; min-height: 0; max-height: 44vh; width: 100%; }
  .une-texte { padding-right: 3rem; }
  .une-texte::before { right: 1.1rem; }
  .une-media img { object-position: 55% 50%; }
}

/* ---------- les coins : étiquettes cadeau ---------- */
.etiquettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.etiquettes li { grid-column: span 4; }
.etiquettes li:nth-child(1), .etiquettes li:nth-child(2), .etiquettes li:nth-child(6), .etiquettes li:nth-child(7) { grid-column: span 6; }
.etiquette {
  position: relative; display: flex; flex-direction: column; gap: .35rem; height: 100%;
  padding: 1.4rem 1.4rem 1.5rem 3.2rem; background: var(--abricot); color: var(--encre); text-decoration: none;
  border-radius: var(--rayon-petit);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  transition: background-color var(--duree), color var(--duree), transform var(--duree);
}
/* l'œillet de l'étiquette */
.etiquette::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--fond); }
.etiquettes li:nth-child(3n+2) .etiquette { background: var(--kraft); }
.etiquettes li:nth-child(1) .etiquette { background: var(--orchidee); color: var(--sur-orchidee); }
.etiquette-nom { font-family: var(--police-titre); font-weight: 600; font-size: var(--t-2); line-height: 1.1; }
.etiquettes li:nth-child(-n+2) .etiquette-nom { font-size: var(--t-3); }
.etiquette-pour { font-weight: 800; color: var(--prune); }
.etiquettes li:nth-child(1) .etiquette-pour { color: var(--sur-orchidee); }
.etiquette-texte { font-size: .98rem; line-height: 1.45; }
.etiquette:hover { background: var(--orchidee); color: var(--sur-orchidee); transform: rotate(-1deg); }
.etiquette:hover .etiquette-pour { color: var(--sur-orchidee); }
.etiquettes li:nth-child(1) .etiquette:hover { background: var(--orchidee-fonce); }
@media (max-width: 960px) { .etiquettes li, .etiquettes li:nth-child(n) { grid-column: span 6; } }
@media (max-width: 560px) { .etiquettes { grid-template-columns: 1fr; } .etiquettes li, .etiquettes li:nth-child(n) { grid-column: auto; } }

/* ---------- idées (cartes) ---------- */
.idees { display: grid; gap: var(--esp-3) var(--esp-4); }
.idees-une { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idees-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idees-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.idee { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--esp-2); align-items: start; position: relative; }
.idee-photo { border-radius: var(--rayon-petit); overflow: hidden; background: var(--abricot); aspect-ratio: 4 / 3; }
.idee-photo picture, .idee-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.idee:hover .idee-photo img { transform: scale(1.04); }
.idee-paquet { display: block; width: 100%; height: 100%; position: relative; }
.idee-paquet::before, .idee-paquet::after { content: ""; position: absolute; background: var(--orchidee); }
.idee-paquet::before { left: 50%; top: 0; bottom: 0; width: var(--ficelle); margin-left: calc(var(--ficelle) / -2); }
.idee-paquet::after { top: 50%; left: 0; right: 0; height: var(--ficelle); margin-top: calc(var(--ficelle) / -2); }
.idee h3 { font-size: 1.28rem; line-height: 1.15; margin-bottom: .4rem; }
.idee h3 a { color: var(--encre); text-decoration: none; }
.idee h3 a::after { content: ""; position: absolute; inset: 0; }
.idee:hover h3 a { color: var(--orchidee-fonce); text-decoration: underline; text-decoration-thickness: 2px; }
.idee-desc { font-size: .98rem; line-height: 1.5; margin-bottom: .4rem; }
.idee-meta { font-size: var(--t-0); font-weight: 700; color: var(--rouille); margin: 0; }
.idees-une .idee:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--esp-4); align-items: center; }
.idees-une .idee:first-child .idee-photo { aspect-ratio: 16 / 9; border-radius: var(--rayon); }
.idees-une .idee:first-child h3 { font-size: var(--t-3); }
.idees-trois .idee { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .idees-une, .idees-liste, .idees-trois { grid-template-columns: 1fr; }
  .idees-une .idee:first-child { grid-template-columns: 1fr; gap: var(--esp-2); }
}
@media (max-width: 480px) { .idee { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; } .idees-une .idee:first-child .idee-photo, .idees-trois .idee .idee-photo { aspect-ratio: 16 / 9; } .idees-trois .idee { grid-template-columns: 1fr; } }

/* ---------- le site (accueil) ---------- */
.le-site { padding-bottom: var(--esp-5); }
.le-site-grille { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--esp-4); align-items: center; background: var(--papier); border-radius: var(--rayon); padding: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .le-site-grille { grid-template-columns: 1fr; gap: var(--esp-2); } }

/* ---------- tête de page (hero) ---------- */
.tete { padding-block: clamp(.5rem, 2vw, 1.5rem) var(--esp-4); }
.tete-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--esp-4); align-items: center; }
.tete-image .tete-grille { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.tete h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.4rem); max-width: 22ch; margin-bottom: var(--esp-2); }
.tete .chapo { font-size: var(--t-2); line-height: 1.45; max-width: 46ch; }
.tete-rubrique { margin-bottom: .6rem; }
.tete-rubrique a { display: inline-block; background: var(--abricot); color: var(--prune); font-weight: 800; padding: .3rem .85rem; border-radius: 999px; text-decoration: none; }
.tete-rubrique a:hover { background: var(--orchidee); color: var(--sur-orchidee); }
.tete-photo { border-radius: var(--rayon); overflow: hidden; background: var(--abricot); aspect-ratio: 16 / 10; }
.tete-photo picture, .tete-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .tete-image .tete-grille { grid-template-columns: 1fr; gap: var(--esp-3); }
  .tete-photo { order: -1; aspect-ratio: 16 / 10; }
}
.fil { margin-bottom: var(--esp-3); font-size: var(--t-0); }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.fil li + li::before { content: "›"; margin-inline: .5rem; color: var(--discret); }
.fil a { color: var(--discret); font-weight: 700; }
.fil [aria-current] { color: var(--encre); }
.signature { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; font-size: .95rem; color: var(--discret); margin: var(--esp-2) 0 0; }
.signature a { font-weight: 800; }
.pastille {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--orchidee); color: var(--sur-orchidee); font-family: var(--police-titre); font-weight: 600; font-size: .95rem; flex: 0 0 auto;
}
.pastille-grande { width: 3.4rem; height: 3.4rem; font-size: 1.3rem; }
.pastille-geante { width: clamp(5rem, 10vw, 8rem); height: clamp(5rem, 10vw, 8rem); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.auteur-tete { display: flex; align-items: center; gap: var(--esp-4); }
@media (max-width: 560px) { .auteur-tete { flex-direction: column; align-items: flex-start; gap: var(--esp-2); } }
.tete-404 { text-align: left; }
.vide-paquet { width: 96px; height: 96px; border-radius: 18px; background: var(--abricot); position: relative; margin-bottom: var(--esp-3); }
.vide-paquet::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: var(--ficelle); margin-left: -3px; background: var(--orchidee); transform: rotate(14deg); transform-origin: top; }

/* ---------- texte courant ---------- */
.prose { max-width: var(--etroit); }
.texte-article { padding-bottom: var(--esp-4); }
.prose h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--orchidee); font-weight: 800; }
.prose strong { font-weight: 800; }
.prose blockquote { margin: 1.5em 0; padding: .2rem 0 .2rem 1.2rem; border-left: var(--ficelle) solid var(--abricot); font-size: 1.12rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; vertical-align: top; }
.prose thead th { background: var(--orchidee); color: var(--sur-orchidee); font-family: var(--police-titre); font-weight: 600; }
.prose tbody tr:nth-child(odd) { background: var(--papier); }
.prose .photo { margin: 2em 0; }
.prose .photo img { border-radius: var(--rayon-petit); }
.prose figcaption { font-size: var(--t-0); color: var(--discret); margin-top: .5rem; }
.le-site-grille .prose h2 { margin-top: 0; }

/* résumé : un carré de papier croisé par la ficelle */
.trente { position: relative; background: var(--papier); border-radius: var(--rayon-petit); padding: 1.4rem 1.5rem 1.3rem 1.5rem; margin: 0 0 var(--esp-4); overflow: hidden; }
.trente::before { content: ""; position: absolute; top: 0; bottom: 0; right: 2.2rem; width: var(--ficelle); background: var(--orchidee); }
.trente-titre { font-family: var(--police-titre); font-weight: 600; font-size: 1.2rem; margin-bottom: .6rem; padding-right: 3rem; }
.trente ul { margin: 0; padding: 0 3rem 0 1.2rem; }
.trente li { margin-bottom: .4rem; }
.programme { margin: 0 0 var(--esp-4); }
.programme-titre { font-family: var(--police-titre); font-weight: 600; font-size: 1.2rem; margin-bottom: .5rem; }
.programme ol { margin: 0; padding-left: 1.4rem; columns: 2 16rem; column-gap: 2rem; }
.programme li { break-inside: avoid; margin-bottom: .35rem; }
.programme a { color: var(--encre); text-decoration-color: var(--abricot); }
.programme a:hover { text-decoration-color: var(--orchidee); }

/* encadré : le pense-bête, une étiquette kraft accrochée à la ficelle */
.pense-bete { position: relative; background: var(--abricot); border-radius: var(--rayon-petit); padding: 1.4rem 1.5rem 1.2rem 3.4rem; margin: 2em 0; clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px), 0 24px); }
.pense-bete::before { content: ""; position: absolute; left: 18px; top: 1.75rem; width: 14px; height: 14px; border-radius: 50%; background: var(--fond); }
.pense-bete-titre { font-family: var(--police-titre); font-weight: 600; font-size: 1.25rem; margin-bottom: .5rem; color: var(--encre); }
.pense-bete ul, .pense-bete ol { margin-bottom: 0; }
.pense-bete li::marker { color: var(--prune); }
.pense-bete p:last-child { margin-bottom: 0; }

/* FAQ */
.questions { margin: var(--esp-4) 0; }
.questions h2 { margin-top: 0; }
.questions details { background: var(--surface); border-radius: var(--rayon-petit); margin-bottom: 8px; }
.questions summary { cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 800; list-style: none; position: relative; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 1.1rem; top: .7rem; font-family: var(--police-titre); font-size: 1.6rem; color: var(--orchidee); transition: transform var(--duree); }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding: 0 1.2rem 1.1rem; margin: 0; }
.questions summary:hover { color: var(--orchidee-fonce); }

/* relais IA */
.relais { background: var(--papier); border-radius: var(--rayon); padding: 1.4rem 1.5rem; margin: var(--esp-4) 0; }
.relais-titre { font-size: 1.25rem; margin: 0 0 .8rem; }
.relais-liens { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: 8px; }
.relais-liens li { margin: 0; }
.relais-liens a { display: inline-block; padding: .45rem 1rem; border-radius: 999px; background: var(--orchidee); color: var(--sur-orchidee); font-weight: 800; text-decoration: none; transition: background-color var(--duree), transform var(--duree); }
.relais-liens a:hover { background: var(--orchidee-fonce); color: var(--sur-orchidee); }
.relais-liens a:active, .relais-md button:active { transform: scale(.97); }
.relais-md { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .5rem; }
.relais-md a { font-weight: 700; }
.relais-md button { font: inherit; font-weight: 800; color: var(--encre); background: var(--abricot); border: 0; border-radius: 999px; padding: .4rem .95rem; cursor: pointer; transition: background-color var(--duree); }
.relais-md button:hover { background: var(--kraft); }
.relais-note { font-size: var(--t-0); color: var(--discret); margin: 0; }

/* signataire (fin d'article, accueil) */
.signataire { display: flex; gap: 1rem; align-items: center; padding: 1.2rem 0 0; }
.signataire-nom { font-family: var(--police-titre); font-weight: 600; font-size: 1.2rem; margin: 0 0 .2rem; }
.signataire-nom a { color: var(--encre); }
.signataire-bio { margin: 0; color: var(--discret); }

/* à lire ensuite */
.suite { background: var(--papier); padding-block: var(--esp-5); margin-top: var(--esp-4); }
.suite-titre { font-size: var(--t-3); margin-bottom: var(--esp-3); }
.suite .idee-photo { background: var(--abricot); }

/* ---------- pied ---------- */
.pied { background: var(--pied-fond); color: var(--pied-encre); padding-block: var(--esp-5) var(--esp-3); margin-top: var(--esp-5); }
.type-article .pied, .type-accueil .pied { margin-top: 0; }
.pied a { color: var(--pied-encre); text-decoration-color: var(--pied-lien); }
.pied a:hover { color: var(--pied-lien); }
.pied-haut { margin-bottom: var(--esp-4); }
.pied-nom img { width: 100%; max-width: 980px; height: auto; }
.pied-baseline { font-family: var(--police-titre); font-weight: 500; font-size: var(--t-2); margin-top: var(--esp-2); }
.pied-colonnes { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--esp-4); }
.pied-titre { font-family: var(--police-titre); font-weight: 600; font-size: 1.15rem; color: var(--pied-lien); margin-bottom: .6rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .35rem; }
.pied-note { font-size: .95rem; line-height: 1.55; }
.pied-bas { margin: var(--esp-4) 0 0; font-size: var(--t-0); }
@media (max-width: 760px) { .pied-colonnes { grid-template-columns: 1fr 1fr; } .pied-note { grid-column: 1 / -1; } }

/* ---------- apparitions (CSS seul, coupées par prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .etiquettes li, .idee, .le-site-grille, .questions details, .pense-bete {
      animation: monte linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
    @keyframes monte { from { transform: translate3d(0, 28px, 0) scale(.985); } to { transform: none; } }
  }
  .une-texte > * { animation: arrive 600ms cubic-bezier(.2,.7,.2,1) both; }
  .une-texte > :nth-child(2) { animation-delay: 80ms; }
  .une-texte > :nth-child(3) { animation-delay: 160ms; }
  @keyframes arrive { from { transform: translate3d(0, 18px, 0); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .bandeau .rayons, .relais, .suite, .pied-colonnes { display: none; } }
