/* Pages de contenu de pdfanim.com (même identité que la page d'accueil) */
@font-face { font-family: "Sora"; src: url("/fonts/sora.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
:root {
  --nuit: #14213D; --nuit-2: #1D2D52; --orange: #F2622E; --orange-fonce: #C9481A;
  --papier: #FFFFFF; --brume: #EDF0F6; --encre: #14213D; --gris: #55607A; --trait: #D5DBE7;
  --titre: "Sora", system-ui, sans-serif; --texte: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--texte); color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.cadre { width: min(1160px, 100% - 48px); margin-inline: auto; }
.etroit { width: min(780px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 700 1rem var(--texte); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.bouton.plein { background: var(--orange); color: #fff; }
.bouton.plein:hover { background: var(--orange-fonce); }
.bouton.contour { border-color: currentColor; }
.bouton.contour:hover { background: rgba(255,255,255,.12); }

/* En-tête */
.entete { background: var(--nuit); color: #fff; }
.entete .cadre { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.entete .marque img { height: 40px; width: auto; }
.entete nav { margin-left: auto; display: flex; gap: 24px; }
.entete nav a { text-decoration: none; font-weight: 500; opacity: .86; padding: 10px 0; }
.entete nav a:hover, .entete nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.entete .bouton { min-height: 44px; padding: 0 18px; white-space: nowrap; }
/* Sélecteur de langue */
.langues { position: relative; }
.langues summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 10px; font-weight: 600; font-size: .9rem; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary:hover, .langues[open] summary { border-color: #fff; }
.langues div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 172px; padding: 6px; background: #fff; color: var(--encre); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 14px 32px rgba(20, 33, 61, .2); }
.langues a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.langues a:hover { background: var(--brume); }
.langues a[aria-current] { font-weight: 700; background: var(--brume); }
.marque { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1; }
.marque > a:first-child { display: block; }
.marque .by { display: inline-flex; align-items: center; gap: .32em; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.8); text-decoration: none; white-space: nowrap; }
.marque .by:hover { color: #fff; }
.marque .by svg { width: 1.4em; height: 1.4em; display: block; flex: none; }
.ccd-cligne { transform-box: fill-box; transform-origin: center; animation: ccd-cligne 5s ease-in-out infinite; }
.ccd-regard { animation: ccd-regard 7s ease-in-out infinite; }
@keyframes ccd-cligne { 0%, 86%, 100% { transform: scaleY(1); } 90% { transform: scaleY(.06); } 94% { transform: scaleY(1); } }
@keyframes ccd-regard { 0%, 28% { transform: translateX(0); } 36%, 58% { transform: translateX(-16px); } 66%, 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .ccd-cligne, .ccd-regard { animation: none; } }

/* Bandeau de titre */
.bandeau { background: var(--nuit); color: #fff; padding: 36px 0 64px; }
.fil { font-size: .92rem; color: #AEB9D2; margin-bottom: 26px; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.fil a { color: #fff; }
.surtitre { display: block; margin-bottom: 16px; font: 700 .85rem/1.2 var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.bandeau .chapo { margin-top: 20px; font-size: 1.2rem; color: #C9D2E6; max-width: 60ch; }
.bandeau .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Contenu */
main section { padding: 64px 0; }
main section.brume { background: var(--brume); }
.texte > * + * { margin-top: 18px; }
.texte h2 { margin-top: 48px; }
.texte h2:first-child { margin-top: 0; }
.texte h3 { margin-top: 30px; }
.texte p, .texte li { color: #2B3550; }
.texte ul, .texte ol { padding-left: 1.3em; }
.texte li + li { margin-top: 8px; }
.texte strong { color: var(--encre); }
.reponse { font-size: 1.15rem; border-left: 4px solid var(--orange); padding: 4px 0 4px 18px; color: var(--encre) !important; }
.encadre { background: var(--brume); border-radius: 14px; padding: 22px 26px; }
.encadre p + p { margin-top: 10px; }
.consigne { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; background: #fff; border: 1px solid var(--trait); border-radius: 10px; padding: 12px 16px; }

/* Grilles de cartes */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.carte { display: block; background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; padding: 22px 24px; text-decoration: none; }
a.carte:hover { border-color: var(--orange); }
.carte h3 { font-size: 1.1rem; }
.carte p { color: var(--gris); margin-top: 8px; font-size: .98rem; }
.carte img { border-radius: 10px; margin: -6px -8px 16px; width: calc(100% + 16px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }

/* Vidéo */
.video { margin: 0; }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; }
.video figcaption { margin-top: 12px; color: var(--gris); font-size: .95rem; }
.plans { counter-reset: plan; list-style: none; padding: 0 !important; }
.plans li { counter-increment: plan; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--trait); margin: 0 !important; }
.plans li::before { content: counter(plan); grid-row: span 2; font: 700 1.5rem/1 var(--titre); color: var(--orange); }
.plans b { font-family: var(--titre); }
.plans span { color: var(--gris); }
.pages-fiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pages-fiche img { border: 1px solid var(--trait); border-radius: 6px; background: #fff; }

/* Tableau des prix */
.grille { width: 100%; border-collapse: collapse; background: var(--papier); border-radius: 14px; overflow: hidden; }
.grille caption { text-align: left; color: var(--gris); padding-bottom: 12px; }
.grille th, .grille td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--trait); }
.grille thead th { font: 500 .92rem var(--texte); color: var(--gris); }
.grille tbody th { font: 700 1.05rem var(--titre); }
.grille tbody tr:last-child th, .grille tbody tr:last-child td { border-bottom: 0; }

/* Questions */
details { border-bottom: 1px solid var(--trait); }
details:first-of-type { border-top: 1px solid var(--trait); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 700 1.08rem var(--titre); letter-spacing: -0.01em; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--nuit); border-bottom: 2px solid var(--nuit); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 29px; }
details > p { color: var(--gris); padding: 0 40px 20px 0; }
.groupe-faq + .groupe-faq { margin-top: 48px; }
.groupe-faq h2 { margin-bottom: 18px; }

/* Appel final et pied */
.appel { background: var(--nuit); color: #fff; padding: 64px 0; }
.appel .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.appel p { color: #C9D2E6; margin-top: 10px; max-width: 52ch; }
footer { background: var(--nuit); color: #AEB9D2; border-top: 1px solid var(--nuit-2); padding: 36px 0 40px; font-size: .95rem; }
footer .colonnes { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer h2 { font: 700 .95rem var(--titre); color: #fff; margin-bottom: 12px; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li + li { margin-top: 6px; }
footer a { color: #fff; }
footer .mentions { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--nuit-2); }

@media (max-width: 900px) {
  .entete nav { display: none; }
  .entete .langues { margin-left: auto; }
  footer .colonnes { grid-template-columns: 1fr; }
  .pages-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main section { padding: 48px 0; }
}
@media (max-width: 640px) {
  .entete .marque img { height: 30px; }
  .marque .by { font-size: 11px; }
  .entete .cadre { gap: 12px; }
  .grille th, .grille td { padding: 10px 10px; font-size: .92rem; }
}
