/* Quale Racchetta — « Terra battuta ». Surcouche IT chargée après main.css (jamais sur le site FR). */
:root {
  --paper: #f6efe4;
  --white: #fffbf5;
  --ink: #2a211b;
  --muted: #6e6258;
  --line: #e6dccd;
  --court: #c8552b;      /* ex-vert : devient l'orange terre battue (fonds, boutons) */
  --court-2: #a8431f;
  --terre: #c8552b;
  --terre-txt: #a8431f;  /* orange en texte sur crème (AA) */
  --ball: #5e6b3a;       /* ex-jaune balle : devient l'olive (pastilles, badges) */
  --olive: #5e6b3a;
  --clay-dark: #3a2a21;
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-text: 'Figtree', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r: 18px;
  --shadow: 0 1px 2px rgba(110, 60, 25, .06), 0 10px 28px -12px rgba(110, 60, 25, .22);
  --lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='320' viewBox='0 0 520 320' fill='none' stroke='%23c8552b' stroke-width='2' stroke-opacity='.16'%3E%3Crect x='20' y='20' width='480' height='280' rx='4'/%3E%3Cpath d='M20 60h480M20 260h480M260 60v200M130 60v200M390 60v200M130 160h260'/%3E%3C/svg%3E");
}
body { font-family: var(--f-text); font-size: 17px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(200, 85, 43, .45); }
.skip { background: var(--court-2); color: #fff; border-radius: 0 0 12px 0; }

/* Titres : serif Fraunces, em en italique */
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 100%; font-variation-settings: 'opsz' 96, 'SOFT' 60; font-weight: 650; letter-spacing: -.015em; line-height: 1.1; }
h3 { font-stretch: 100%; font-size: 1.28rem; font-variation-settings: 'opsz' 36, 'SOFT' 60; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; color: var(--terre-txt); }
.eyebrow { font-family: var(--f-mono); color: var(--terre-txt); letter-spacing: .14em; font-size: .72rem; }
a { color: var(--terre-txt); }
.mono, .specs dd, .prix, .score-val, .num { font-family: var(--f-mono); }

/* En-tête crème */
.site-header { background: rgba(246, 239, 228, .96); color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.logo { color: var(--ink); font: 600 1.35rem var(--f-display); font-stretch: 100%; text-transform: none; letter-spacing: -.01em; }
.logo b { color: var(--terre-txt); font-weight: 600; font-style: italic; }
.logo-ball { width: 16px; height: 16px; background: var(--court); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .12); }
.menu-btn { color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--f-mono); padding: 8px 18px; }
.menu { background: var(--paper); border-top: 1px solid var(--line); }
.menu > ul > li { border-bottom: 1px solid var(--line); }
.menu a, .menu summary { color: var(--ink); }
.menu details ul a { color: var(--muted); }
.menu a:hover, .menu summary:hover { color: var(--terre-txt); }
.menu .cta a { background: var(--court); color: #fff; border-radius: 999px; }
.menu .cta a:hover { background: var(--court-2); color: #fff; }
@media (min-width: 960px) {
  .menu details ul { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
  .menu a, .menu summary { font-size: .95rem; }
}
.aff-note { background: #efe5d4; border-bottom: 1px solid var(--line); }

/* Boutons en pilules */
.btn { background: var(--court); border-color: var(--court); color: #fff; border-radius: 999px; font-weight: 700; padding: 12px 24px; box-shadow: 0 6px 16px -8px rgba(200, 85, 43, .7); transition: transform .15s, background .15s; }
.btn:hover { background: var(--court-2); border-color: var(--court-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--terre-txt); box-shadow: none; border-color: var(--court); }
.btn-ghost:hover { background: var(--court); color: #fff; }
.btn-ball { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn-ball:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Articles */
.a-head { border-top: 0; position: relative; padding-top: var(--s2); }
.a-head::before { content: ''; display: block; width: 64px; height: 6px; border-radius: 6px; background: var(--court); margin-bottom: var(--s2); }
.lead-answer { border: 1px solid var(--line); border-left: 6px solid var(--court); border-radius: var(--r); box-shadow: var(--shadow); background: var(--white); }
.toc { border-radius: var(--r); background: var(--white); border-color: var(--line); }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--terre-txt); }
.prose h2 { border-top: 0; padding-top: var(--s1); }
.prose h2::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--court); margin-bottom: 12px; }
.tip, .warn { border-radius: 0 var(--r) var(--r) 0; border-left-color: var(--olive); background: var(--white); }
.tip strong { color: var(--olive); }
blockquote { border-left-color: var(--court); font-family: var(--f-display); font-style: italic; }
.breadcrumb li + li::before { color: var(--muted); }

/* Tableaux */
.table-wrap { border-radius: var(--r); border-color: var(--line); box-shadow: var(--shadow); background: var(--white); }
thead th { background: var(--clay-dark); color: #f6efe4; font-family: var(--f-mono); }
table.cmp thead a { color: #fff; }
table.cmp .sil-wrap { color: #e9b08f; }
tbody tr:nth-child(even) > * { background: rgba(246, 239, 228, .55); }
.sil-wrap { color: var(--court-2); }

/* Specs, scores */
.specs { border-top: 0; border-left: 0; background: transparent; gap: 8px; }
.specs > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.specs dt { color: var(--muted); }
.score { border-top: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.score-row { border-bottom-style: solid; border-bottom-color: var(--line); }
.seg { gap: 3px; } .seg i { border-radius: 4px; background: #ebe0cf; } .seg i.on { background: var(--olive); }
.score-label { color: var(--ink); }
.score-nc, .score-vide { color: var(--terre-txt); }

/* Cartes produit : photo en vedette */
.card { border-radius: 20px; border-color: var(--line); box-shadow: var(--shadow); background: var(--white); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(110, 60, 25, .08), 0 18px 36px -14px rgba(110, 60, 25, .32); }
.card h3 a { color: var(--ink); }
.marque { font-family: var(--f-mono); color: var(--terre-txt); letter-spacing: .12em; }
.rang { background: var(--olive); color: #fff; font-family: var(--f-mono); box-shadow: 0 0 0 4px #e3e6d3; }
.card-prix { border-top: 1px dashed var(--line); }
.prix { color: var(--ink); }
.photo-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: inset 0 0 0 4px #fff; }
.card-head .photo-wrap { width: 104px; }
.card .card-head { align-items: flex-start; }
@media (max-width: 640px) { .card-head .photo-wrap { width: 88px; } }
.fiche-tete.avec-photo .photo-wrap { border-radius: 22px; box-shadow: var(--shadow); }
.offres-l { border-top: 0; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }

/* Pastilles et tuiles */
.pour-qui > div { border-radius: var(--r); border-color: var(--line); }
.pour { border-top-color: var(--olive) !important; } .pas-pour { border-top-color: var(--court) !important; }
.chips a, .chips span { border-radius: 999px; border: 1.5px solid var(--ink); font-family: var(--f-text); font-weight: 600; background: var(--white); }
.chips span { border-color: var(--line); }
.chips a:hover { background: var(--court); border-color: var(--court); color: #fff; }
.guides a, .tuiles a, .formes a, .formes li > div { border-radius: var(--r); border: 1px solid var(--line); border-top: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s; }
.guides a:hover, .tuiles a:hover, .formes a:hover { transform: translateY(-3px); border-color: var(--court); box-shadow: var(--shadow); }
.guides strong { font: 650 1.2rem/1.2 var(--f-display); font-stretch: 100%; }
.guides .mono { color: var(--terre-txt); }
.tuiles strong { font: 650 1.25rem/1.1 var(--f-display); font-stretch: 100%; }
.formes strong { font: 650 1.1rem var(--f-display); font-stretch: 100%; }
.formes .sil-wrap { color: var(--court); }
.guide-img { border-radius: var(--r) var(--r) 0 0; }
.hero-img { background: var(--white); border: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.faq-item { border-bottom-color: var(--line); }
.faq-item summary { font-family: var(--f-text); }
.faq-item summary::after { color: var(--terre-txt); }

/* Accueil : hero crème + lignes de terrain */
.hero { background: var(--paper) var(--lines) right -60px top 24px / 640px auto no-repeat; color: var(--ink); border-bottom: 1px solid var(--line); }
.hero::before { display: none; }
.hero-in { padding: var(--s6) var(--s2) var(--s6); }
.hero h1 { color: var(--ink); max-width: 15ch; font-size: clamp(2.5rem, 9vw, 4.6rem); font-weight: 650; }
.hero h1 em { color: var(--terre-txt); font-style: italic; }
.hero .eyebrow { color: var(--terre-txt); }
.hero-lead { color: var(--ink); opacity: .88; }
.outil { background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: var(--s3); position: relative; }
.outil::before { content: ''; position: absolute; left: var(--s3); top: -3px; width: 56px; height: 6px; border-radius: 6px; background: var(--court); }
.outil h2 { font-size: 1.55rem; }
.niveaux { gap: 10px; }
.niveaux a { border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); padding: 12px 20px; min-height: 64px; transition: background .15s, border-color .15s, color .15s; }
.niveaux li:last-child a { border-radius: 999px; }
.niveaux a small { font-family: var(--f-text); font-weight: 400; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.niveaux a:hover { background: var(--court); border-color: var(--court); color: #fff; }
.niveaux a:hover small { color: #fff; }
@media (min-width: 960px) { .hero { background-position: right -120px top 40px; background-size: 760px auto; } .hero-in { padding: var(--s10) var(--s2); } }
.stats { border-top: 1px solid var(--line); }
.hero .stats li { color: var(--muted); }
.hero .stats b { color: var(--olive); font-family: var(--f-display); font-size: 1.9rem; font-weight: 650; }
.section-court { background: var(--clay-dark) var(--lines) right -80px center / 640px auto no-repeat; color: #f6efe4; }
.section-court h2 { color: #fff; } .section-court a { color: #f2b999; }
.methode li { border-top: 3px solid var(--court); }
.methode b { font: 650 1.3rem var(--f-display); font-stretch: 100%; color: #fff; }
.methode p { color: rgba(246, 239, 228, .88); }

/* Quiz : pilules */
.quiz-form { border-radius: 24px; border: 1px solid var(--line); border-top: 6px solid var(--court); box-shadow: var(--shadow); background: var(--white); }
.quiz-form legend { font: 650 1.1rem var(--f-display); font-stretch: 100%; }
.choix span { border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); padding: 10px 18px; transition: background .15s; }
.choix label:hover span { border-color: var(--court); }
.choix input:checked + span { background: var(--court); border-color: var(--court); color: #fff; }
.choix input:focus-visible + span { outline: 3px solid var(--ink); box-shadow: 0 0 0 5px rgba(200, 85, 43, .45); }
.quiz-form select { border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); }
.resultats .vide { border-radius: var(--r); border-color: var(--court); }
.pourquoi { color: var(--ink); }

/* Pied de page brun */
.site-footer { background: var(--clay-dark) var(--lines) right -120px bottom -20px / 700px auto no-repeat; color: rgba(246, 239, 228, .9); border-radius: 32px 32px 0 0; }
.logo-foot { font: 600 1.4rem var(--f-display); font-stretch: 100%; text-transform: none; color: #fff; }
.logo-foot b { color: #f2b999; font-style: italic; font-weight: 600; }
.site-footer h2 { color: #f2b999; font-family: var(--f-mono); }
.site-footer a { color: #fff; }
.foot-aff, .foot-bas { color: rgba(246, 239, 228, .75); }
.foot-bas { border-top-color: rgba(246, 239, 228, .2); }

/* Bandeau consentement */
.consent { background: var(--white); border-top: 3px solid var(--court); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(110, 60, 25, .16); }
.consent-text h2 { font: 650 1.1rem var(--f-display); font-stretch: 100%; }
.consent-text a { color: var(--terre-txt); }
.btn-consent { border-radius: 999px; border-color: var(--court-2); font-family: var(--f-text); }
.btn-consent-refuse { background: var(--white); color: var(--court-2); }
.btn-consent-accept { background: var(--court-2); color: #fff; }
.btn-consent:hover, .btn-consent:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero-img figcaption:empty { display: none; }
.hero-img { background: transparent; }
.hero-img figcaption { color: var(--muted); padding: 8px 4px 0; }
.hero .stats { gap: var(--s1) var(--s3); }
.hero .stats b { font-size: clamp(1.35rem, 5vw, 1.9rem); }
.score-label { font-size: .78rem; letter-spacing: 0; }
.score-row { grid-template-columns: 128px 1fr 56px; }
.score-compact .score-row { grid-template-columns: 112px 1fr 40px; }
.score-compact .score-label { font-size: .68rem; }

/* ───── Fonctions IT (composants.css) : grille, Confronta, note par profil, registro — habillage Terra battuta ───── */
.grille-quiz { border-radius: 24px; border-top-color: var(--court); box-shadow: var(--shadow); }
.grille-quiz-t { font-family: var(--f-display); font-stretch: 100%; font-weight: 650; font-size: 1.25rem; }
.choix-q legend { font-family: var(--f-mono); letter-spacing: .06em; }
.choix-q span { padding: 10px 18px; }
.choix-q input:focus-visible + span { box-shadow: 0 0 0 5px rgba(200, 85, 43, .45); }
.grille-barre { border-bottom-color: var(--line); }
.grille-filtres { border-radius: var(--r); box-shadow: var(--shadow); }
.grille-tri select { border-radius: 999px; font-family: var(--f-text); padding: 10px 18px; }
.grille-axe legend { color: var(--terre-txt); }
.grille-opt-n { font-family: var(--f-mono); background: #efe5d4; border-radius: 999px; padding: 1px 9px; color: var(--ink); }
.grille-opt.est-vide .grille-opt-n { background: transparent; }
.grille-vide { border-radius: var(--r); border-color: var(--court); background: var(--white); }
.cmp-check span { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.cmp-barre { background: var(--clay-dark); border-radius: 24px 24px 0 0; font-family: var(--f-text); }
.cmp-barre .btn { background: var(--court); border-color: var(--court); color: #fff; }
.cmp-barre .btn-ghost { background: transparent; }
.confronta-zone .vide { border-radius: var(--r); }
.sintesi-cols > div { border-radius: var(--r); box-shadow: var(--shadow); border-top-color: var(--olive); }
.sintesi-limite { border-top-color: var(--court) !important; }
.sintesi-cols h3 { font-size: 1.2rem; }
.profils-note .score { box-shadow: var(--shadow); }
.reg-liste { border-top-color: var(--line); }
.reg-agg { font-family: var(--f-mono); color: var(--terre-txt); }
.registro { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2) var(--s3) var(--s3); box-shadow: var(--shadow); }
.registro h2 { margin-top: 0; }
