/* rested.fr – thème sombre, accent or. Aucune ressource externe. */

@font-face { font-family: "Marcellus"; src: url("fonts/marcellus.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #13100d;
  --fond-2: #1b1713;
  --carte: #221d17;
  --bord: #3b3227;
  --texte: #ece4d8;
  --doux: #b9ad9a;
  --or: #e9b44c;
  --or-clair: #f4cf83;
  --or-fonce: #b9862a;
  --encre: #1a1206;
  --vert: #7fc28a;
  --rouge: #e58a6b;
  --rayon: 14px;
  --large: 1120px;
  --lecture: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 17px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-clair); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .logo, .bandeau-titre, .offre-prix { font-family: "Marcellus", Georgia, serif; font-weight: 400; line-height: 1.2; color: #fff7ea; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.8em 0 .4em; }
p, ul, ol { margin: 0 0 1.1em; }
strong { color: #fff; font-weight: 650; }
.conteneur { width: min(100% - 40px, var(--large)); margin-inline: auto; }
.note { font-size: .86rem; color: var(--doux); }
.centre { text-align: center; }

.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 12px; top: 12px; z-index: 50; background: var(--or); color: var(--encre); padding: 8px 14px; border-radius: 8px; }

/* ---------- en-tête */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(19, 16, 13, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bord); }
.entete .conteneur { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; padding: 12px 0; }
.logo { font-size: 1.55rem; color: #fff7ea; text-decoration: none; letter-spacing: .02em; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-nom > span { color: var(--or); }
.logo-icone { flex: none; width: 30px; height: 30px; }
.entete nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: auto; }
.entete nav a { color: var(--texte); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 7px 11px; border-radius: 8px; }
.entete nav a:hover, .entete nav a.actif { background: var(--carte); color: var(--or-clair); }
.nav-bouton { background: var(--or); color: var(--encre); text-decoration: none; font-weight: 700; font-size: .93rem; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.nav-bouton:hover { background: var(--or-clair); color: var(--encre); }

/* ---------- boutons */
.bouton { display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--or-fonce); color: var(--or-clair); text-align: center; transition: transform .12s, background .12s; }
.bouton:hover { transform: translateY(-1px); background: rgba(233, 180, 76, .12); }
.bouton.plein { background: linear-gradient(180deg, var(--or-clair), var(--or)); color: var(--encre); border-color: var(--or); box-shadow: 0 6px 22px rgba(233, 180, 76, .22); }
.bouton.plein:hover { background: var(--or-clair); color: var(--encre); }
.bouton.grand { padding: 16px 30px; font-size: 1.05rem; }
.bouton.secondaire { background: rgba(19, 16, 13, .55); }
.action { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 1.6em 0; }
.mention-lien { font-size: .74rem; color: var(--doux); letter-spacing: .02em; }

/* ---------- accueil : bandeau d'ouverture */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--bord); }
.hero-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19, 16, 13, .96) 0%, rgba(19, 16, 13, .86) 42%, rgba(19, 16, 13, .35) 100%), linear-gradient(0deg, var(--fond) 0%, transparent 35%); }
.hero-texte { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px); }
.hero-texte > * { max-width: 640px; }
.sur-titre { color: var(--or); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: 14px; }
.chapo { font-size: 1.18rem; color: #e3d9c9; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .93rem; color: var(--doux); }
.hero-points li::before { content: "✓"; color: var(--or); font-weight: 700; margin-right: 7px; }

/* ---------- articles */
.article-tete { padding-top: 34px; max-width: var(--lecture); }
.ariane { font-size: .85rem; color: var(--doux); margin-bottom: 18px; }
.ariane a { color: var(--doux); }
.etiquettes { margin-bottom: 10px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--or); border: 1px solid var(--bord); border-radius: 999px; padding: 3px 11px; }
.signature { font-size: .88rem; color: var(--doux); padding-bottom: 22px; border-bottom: 1px solid var(--bord); }
.corps { max-width: var(--lecture); padding-bottom: 20px; }
.corps h2 { padding-top: .2em; }
.corps li { margin-bottom: .45em; }
.corps ol { padding-left: 1.3em; }
.corps ol > li::marker { color: var(--or); font-weight: 700; }
.corps ul { padding-left: 1.2em; }
.corps ul > li::marker { color: var(--or); }
.accueil-corps { padding-top: 10px; }

.sommaire { background: var(--fond-2); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 20px; margin: 1.6em 0; }
.sommaire summary { cursor: pointer; font-weight: 700; color: #fff7ea; }
.sommaire ol { margin: 10px 0 2px; padding-left: 1.2em; }
.sommaire a { text-decoration: none; }

.boite { border: 1px solid var(--bord); border-left: 4px solid var(--or); background: var(--fond-2); border-radius: var(--rayon); padding: 18px 22px 6px; margin: 1.6em 0; }
.boite-titre { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--or); margin-bottom: 8px; }
.boite-attention { border-left-color: var(--rouge); }
.boite-attention .boite-titre { color: var(--rouge); }
.boite-astuce { border-left-color: var(--vert); }
.boite-astuce .boite-titre { color: var(--vert); }

blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--or); font-size: 1.08rem; line-height: 1.75; color: #f3ead9; font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }

.illustration { margin: 1.8em 0; }
.illustration img { border-radius: var(--rayon); border: 1px solid var(--bord); }
.illustration figcaption { font-size: .85rem; color: var(--doux); margin-top: 8px; }

.video { display: flex; align-items: center; gap: 16px; margin: 1.6em 0; padding: 16px 20px; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--carte); text-decoration: none; color: var(--texte); }
.video:hover { border-color: var(--or-fonce); color: var(--texte); }
.video-lecture { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--or); color: var(--encre); display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px; }
.video-titre { display: block; font-weight: 650; color: #fff7ea; }
.video-note { display: block; font-size: .85rem; color: var(--doux); }

/* ---------- tableaux */
.defile { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--bord); border-radius: var(--rayon); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bord); }
thead th { background: var(--carte); color: var(--or-clair); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .018); }

/* ---------- questions */
.faq details { border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond-2); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; color: #fff7ea; padding: 15px 44px 15px 20px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--or); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { padding: 0 20px; }

.plus { margin: 1.6em 0; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond-2); }
.plus summary { cursor: pointer; padding: 13px 20px; font-size: .95rem; font-weight: 600; color: var(--doux); }
.plus summary:hover { color: var(--texte); }
.plus > :not(summary) { padding: 0 20px; }
.plus > :last-child { padding-bottom: 6px; }

/* ---------- formules */
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 2em 0 1em; }
.offre { position: relative; background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 30px 24px 14px; text-align: center; }
.offre.vedette { border-color: var(--or); box-shadow: 0 0 0 1px var(--or), 0 14px 40px rgba(233, 180, 76, .12); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--or); color: var(--encre); font-size: .7rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.offre-nom { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 2px; }
.offre-detail { color: var(--doux); font-size: .9rem; margin-bottom: 10px; }
.offre-prix { font-size: 3rem; color: var(--or-clair); margin-bottom: 2px; }
.offre-unique { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--or); border: 1px solid var(--or-fonce); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.offre-euros { font-size: .88rem; color: var(--doux); margin-bottom: 16px; line-height: 1.5; }
.offre ul { list-style: none; padding: 0; text-align: left; font-size: .94rem; margin-bottom: 0; }
.offre li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--bord); margin: 0; }
.offre li::before { content: "✓"; position: absolute; left: 2px; color: var(--or); font-weight: 700; }

/* ---------- cartes de pages */
.titre-section { margin-top: 1.6em; }
.cartes { list-style: none; padding: 0; margin: 1.2em 0 2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.carte { display: flex; flex-direction: column; align-items: flex-start; height: 100%; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; text-decoration: none; color: var(--texte); transition: border-color .12s, transform .12s; }
.carte:hover { border-color: var(--or-fonce); transform: translateY(-2px); color: var(--texte); }
.carte-titre { font-size: 1.22rem; margin: 12px 0 8px; }
.carte p { font-size: .93rem; color: var(--doux); flex: 1; }
.lire { color: var(--or-clair); font-weight: 700; font-size: .9rem; }
.lire::after { content: " →"; }
.a-lire { padding-bottom: 20px; }

/* ---------- bandeau de fin */
.bandeau-achat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; margin: 2.6em 0 1.6em; padding: 26px 28px; border-radius: 18px; border: 1px solid var(--or-fonce); background: radial-gradient(120% 160% at 0% 0%, rgba(233, 180, 76, .16), transparent 60%), var(--carte); }
.bandeau-achat > div { flex: 1 1 280px; }
.bandeau-titre { font-size: 1.5rem; margin-bottom: 4px; }
.bandeau-achat p { margin-bottom: 0; color: var(--doux); }
.bandeau-achat .action { margin: 0; }

/* ---------- pied */
.pied { margin-top: 50px; border-top: 1px solid var(--bord); background: var(--fond-2); font-size: .9rem; color: var(--doux); }
.pied-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; padding: 40px 0 20px; }
.pied a { color: var(--texte); }
.pied-titre { font-weight: 700; color: #fff7ea; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.logo-pied { margin-bottom: 8px; }
.pied-bas { border-top: 1px solid var(--bord); padding: 18px 0 30px; }
.marques { font-size: .76rem; margin-top: 8px; }

/* ---------- téléphone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .conteneur { width: min(100% - 32px, var(--large)); }
  .entete .conteneur { justify-content: space-between; }
  .entete nav { order: 3; width: 100%; margin-left: -8px; }
  .entete nav a { padding: 6px 8px; font-size: .9rem; }
  .hero::after { background: linear-gradient(0deg, var(--fond) 0%, rgba(19, 16, 13, .9) 45%, rgba(19, 16, 13, .55) 100%); }
  .hero-fond { object-position: 70% 20%; }
  .hero-actions .bouton { width: 100%; }
  .bandeau-achat { padding: 22px 20px; }
  .bandeau-achat .action, .bandeau-achat .bouton { width: 100%; }

  /* tableaux de 3 colonnes et plus : une fiche par ligne */
  table.empile td:first-child { color: #fff7ea; font-weight: 650; }
  th, td { padding: 10px 12px; }
  table.empile thead { position: absolute; left: -9999px; }
  table.empile tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--bord); }
  table.empile td, table.empile th { display: block; border: 0; padding: 4px 16px; }
  table.empile td::before, table.empile tbody th::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--or); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
