/* Capsule Repair : thème crème du site
   Fusion : la clarté d'Apple (hero centré, grands blancs, photos arrondies),
   la chaleur de Back Market (crème, pastilles d'appareils),
   les grilles nettes d'iFixit et le bento des sites produits.
   Palette : crème, sable, encre chaude, une touche de caramel. */

body.theme-creme {
  --creme: #fbf8f3;
  --sable: #f3ece1;
  --sable-2: #e8dcc9;
  --encre-c: #1f1c18;
  --doux: #6f675d;
  --caramel: #b5814f;
  --caramel-f: #8f6237;
  --trait: rgba(31, 28, 24, 0.1);
  --encre: #1f1c18;
  --encre-douce: #6f675d;
  --papier: #f3ece1;
  --blanc: #fbf8f3;
  --ligne: rgba(31, 28, 24, 0.1);
  --cobalt: #b5814f;
  --cobalt-fonce: #8f6237;
  --ciel: #f3ece1;
  background: var(--creme);
  color: var(--encre-c);
}
body.theme-creme ::selection { background: var(--caramel); color: #fff; }

/* En-tête translucide, façon Apple */
body.theme-creme .entete {
  background: rgba(251, 248, 243, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--trait);
}
body.theme-creme .nav a { color: var(--encre-c); font-weight: 500; }
body.theme-creme .nav a:hover { background: var(--sable); color: var(--encre-c); }
body.theme-creme .nav a[aria-current="page"] { color: var(--caramel-f); }
body.theme-creme .tel-entete { background: var(--encre-c); color: var(--creme); border-radius: 999px; }
body.theme-creme .tel-entete:hover { background: #3a352f; color: var(--creme); }
body.theme-creme .pied { background: var(--encre-c); color: #b9b0a4; }
body.theme-creme .pied a { color: var(--creme); }
body.theme-creme .pied h2 { color: var(--creme); }
body.theme-creme .pied .logo-plaque { background: var(--creme); }
body.theme-creme .pied-grille { border-bottom-color: rgba(251, 248, 243, 0.12); }
body.theme-creme .bandeau-test { background: var(--sable); color: var(--doux); border-bottom: 1px solid var(--trait); }

/* Base de la page */
.page-test { color: var(--encre-c); }
.page-test h1, .page-test h2, .page-test h3 { color: var(--encre-c); text-wrap: balance; }
.page-test p { text-wrap: pretty; }
.page-test img { display: block; max-width: 100%; height: auto; }
.page-test svg { flex: none; }
.v-conteneur { width: min(100% - 2 * var(--gouttiere), 1180px); margin-inline: auto; }
.v-section { padding-block: clamp(80px, 10vw, 128px); }
.v-sable { background: var(--sable); }

/* Boutons en pilule */
.v-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.v-centre { justify-content: center; }
.v-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.v-btn svg { width: 18px; height: 18px; }
.v-btn-plein { background: var(--encre-c); color: var(--creme); }
.v-btn-plein:hover { background: #3a352f; }
.v-btn-contour { border-color: rgba(31, 28, 24, 0.22); color: var(--encre-c); background: transparent; }
.v-btn-contour:hover { border-color: var(--encre-c); background: #fff; }
.v-btn-creme { background: var(--creme); color: var(--encre-c); }
.v-btn-creme:hover { background: #fff; }
.v-btn-contour-clair { border-color: rgba(251, 248, 243, 0.3); color: var(--creme); }
.v-btn-contour-clair:hover { border-color: var(--creme); }
.v-btn:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; }

.v-etiquette {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--caramel-f); background: rgba(181, 129, 79, 0.12);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* Hero centré */
.v-hero { padding-top: clamp(56px, 8vw, 104px); }
.v-hero-texte { text-align: center; display: flex; flex-direction: column; align-items: center; }
.v-pastille {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--doux);
  background: #fff; border: 1px solid var(--trait);
  padding: 8px 16px; border-radius: 999px; margin: 0 0 28px;
}
.v-point { width: 8px; height: 8px; border-radius: 50%; background: #3f9c5c; box-shadow: 0 0 0 4px rgba(63, 156, 92, 0.15); }
.v-hero h1 {
  font-size: clamp(40px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.045em;
  font-weight: 750; max-width: 15ch; margin: 0 0 24px;
}
.v-chapo { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--doux); max-width: 58ch; margin: 0 0 36px; }
.v-appareils {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px;
}
.v-appareils li {
  font-size: 14px; font-weight: 500; color: var(--encre-c);
  background: var(--sable); padding: 7px 14px; border-radius: 999px;
}
.v-hero-photo { position: relative; margin: clamp(48px, 6vw, 72px) 0 0; }
.v-hero-photo img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%;
  border-radius: 28px;
}
.v-garanties {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px;
  background: rgba(251, 248, 243, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 999px; box-shadow: 0 10px 30px rgba(31, 28, 24, 0.12);
  white-space: nowrap;
}
.v-garanties span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px 16px; }
.v-garanties span + span { border-left: 1px solid var(--trait); }
.v-garanties svg { width: 18px; height: 18px; color: var(--caramel-f); }

/* En-têtes de section */
.v-tete { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.v-tete h2, .v-pro h2, .v-seniors h2, .v-final h2 {
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 720; margin: 0;
}
.v-tete p { font-size: 18px; line-height: 1.6; color: var(--doux); margin: 0; max-width: 46ch; justify-self: end; }

/* Bento des réparations */
.v-bento { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.v-carte {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; overflow: hidden;
  text-decoration: none; color: inherit;
  border: 1px solid var(--trait);
  transition: transform .3s ease, box-shadow .3s ease;
}
.v-carte:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(31, 28, 24, 0.1); }
.v-carte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.v-carte-grande { grid-row: span 2; }
.v-carte-grande img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.v-carte-texte { padding: 24px 28px 28px; }
.v-carte h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px; }
.v-carte-grande h3 { font-size: 28px; }
.v-carte p { font-size: 16px; line-height: 1.55; color: var(--doux); margin: 0; }

/* Grille d'appareils façon iFixit */
.v-tuiles {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.v-tuiles li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 22px;
}
.v-tuiles svg, .v-usages svg {
  width: 44px; height: 44px; padding: 11px; border-radius: 12px;
  background: var(--sable); color: var(--encre-c);
}
.v-tuiles h3 { font-size: 17px; margin: 2px 0 4px; }
.v-tuiles p { font-size: 15px; line-height: 1.5; color: var(--doux); margin: 0; }
.v-suite { margin: 32px 0 0; text-align: center; }
.v-suite a { font-weight: 700; color: var(--encre-c); text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Étapes : une vraie séquence, donc numérotée */
.v-etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v-etapes li { background: var(--creme); border-radius: 24px; padding: 32px; }
.v-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--encre-c); color: var(--creme); font-weight: 700; font-size: 16px; margin-bottom: 24px;
}
.v-etapes h3 { font-size: 22px; margin: 0 0 8px; }
.v-etapes p { font-size: 16px; line-height: 1.55; color: var(--doux); margin: 0; }

/* Bloc entreprises : la seule zone sombre de la page */
.v-pro { background: var(--encre-c); color: #cfc6b9; border-radius: 32px; padding: clamp(28px, 5vw, 64px); }
.v-pro h2 { color: var(--creme); margin-bottom: 20px; }
.v-pro p { font-size: 18px; line-height: 1.6; margin: 0 0 32px; }
.v-pro-haut { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.v-pro-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.v-usages {
  list-style: none; padding: 0; margin: clamp(40px, 5vw, 56px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(251, 248, 243, 0.1); border-radius: 20px; overflow: hidden;
}
.v-usages li { display: flex; gap: 16px; align-items: flex-start; background: var(--encre-c); padding: 24px; }
.v-usages svg { background: rgba(251, 248, 243, 0.08); color: #e3c39c; }
.v-usages h3 { color: var(--creme); font-size: 17px; margin: 2px 0 4px; }
.v-usages p { font-size: 15px; line-height: 1.5; margin: 0; }

/* Accompagnement */
.v-seniors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.v-seniors-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.v-seniors h2 { margin-bottom: 20px; }
.v-seniors-texte > p { font-size: 18px; line-height: 1.6; color: var(--doux); margin: 0 0 24px; }
.v-seniors .liste-coches { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.v-seniors .liste-coches li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.v-seniors .liste-coches svg {
  width: 24px; height: 24px; padding: 4px; border-radius: 50%;
  background: var(--encre-c); color: var(--creme); margin-top: 1px;
}

/* Appel final */
.v-final { text-align: center; padding-block: clamp(88px, 11vw, 144px); }
.v-final p { font-size: 19px; line-height: 1.6; color: var(--doux); max-width: 52ch; margin: 20px auto 0; }
.v-numero {
  display: block; margin: 32px 0 36px;
  font-family: var(--display); font-weight: 750; letter-spacing: -0.04em;
  font-size: clamp(48px, 10vw, 128px); line-height: 1;
  color: var(--encre-c); text-decoration: none; font-variant-numeric: tabular-nums;
}
.v-numero:hover { color: var(--caramel-f); }

/* Photos : léger réchauffement pour harmoniser des images d'origines différentes */
.page-test img:not([src$=".svg"]) { filter: saturate(0.9) sepia(0.08); }

/* Tablette */
@media (max-width: 960px) {
  .v-tete { grid-template-columns: 1fr; gap: 16px; }
  .v-tete p { justify-self: start; }
  .v-bento { grid-template-columns: 1fr 1fr; }
  .v-carte-grande { grid-column: 1 / -1; grid-row: auto; }
  .v-carte-grande img { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .v-tuiles, .v-usages { grid-template-columns: 1fr 1fr; }
  .v-pro-haut, .v-seniors { grid-template-columns: 1fr; }
  .v-seniors-photo { aspect-ratio: 4 / 3; }
  .v-garanties { position: static; transform: none; margin: 16px auto 0; width: fit-content; box-shadow: none; background: #fff; border: 1px solid var(--trait); }
}
/* Mobile */
@media (max-width: 640px) {
  .v-hero-photo img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .v-garanties { flex-direction: column; border-radius: 20px; width: 100%; white-space: normal; }
  .v-garanties span + span { border-left: 0; border-top: 1px solid var(--trait); }
  .v-bento, .v-tuiles, .v-usages, .v-etapes { grid-template-columns: 1fr; }
  .v-actions .v-btn { width: 100%; justify-content: center; }
  .v-appareils { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .v-carte, .v-btn { transition: none; }
  .v-carte:hover { transform: none; }
}

/* Retouches après relecture à 1800 px */
body.theme-creme .bandeau-test { text-align: center; padding: 10px var(--gouttiere); font-size: 14px; font-weight: 600; }
.v-hero h1 { max-width: 18ch; }
.v-pro h2 { font-size: clamp(30px, 3.2vw, 44px); }

/* ================================================================
   Pages intérieures : même langage que l'accueil
   ================================================================ */

/* Boutons hérités en pilule encre */
body.theme-creme .bouton {
  background: var(--encre-c); border: 1.5px solid var(--encre-c); color: var(--creme);
  min-height: 52px; padding: 0 26px; font-size: 16px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
body.theme-creme .bouton:hover { background: #3a352f; border-color: #3a352f; color: var(--creme); }
body.theme-creme .bouton.secondaire { background: transparent; color: var(--encre-c); border-color: rgba(31, 28, 24, 0.22); }
body.theme-creme .bouton.secondaire:hover { background: #fff; border-color: var(--encre-c); color: var(--encre-c); }
body.theme-creme .bouton:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; }

/* Titres */
body.theme-creme main h1, body.theme-creme main h2, body.theme-creme main h3 { color: var(--encre-c); text-wrap: balance; }
body.theme-creme main h2 { letter-spacing: -0.03em; }

/* En-tête de page : grand titre aéré, comme le haut de l'accueil */
body.theme-creme .entete-page {
  background: var(--creme); border-bottom: 0;
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px);
}
body.theme-creme .entete-page h1 {
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -0.045em;
  font-weight: 750; max-width: 18ch; margin-bottom: 20px;
}
body.theme-creme .entete-page .chapo { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--doux); max-width: 56ch; margin-bottom: 32px; }
body.theme-creme .fil {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--doux);
  background: #fff; border: 1px solid var(--trait);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
}
body.theme-creme .fil a { color: var(--doux); text-decoration: none; }
body.theme-creme .fil a:hover { color: var(--encre-c); }

/* Fonds de section */
body.theme-creme .section { padding-block: clamp(72px, 9vw, 120px); }
body.theme-creme .section.papier { background: var(--sable); }
body.theme-creme .section.ciel { background: var(--creme); padding-top: 0; }
body.theme-creme .entete-page + .section { padding-top: clamp(16px, 3vw, 40px); }

/* Fiches de réparation et de services : cartes blanches */
body.theme-creme .detail {
  background: #fff; border: 1px solid var(--trait); border-radius: 24px;
  padding: clamp(24px, 3.4vw, 40px); margin-bottom: 16px;
  grid-template-columns: 260px minmax(0, 1fr); gap: 16px 48px;
}
body.theme-creme .detail:last-child { border-bottom: 1px solid var(--trait); margin-bottom: 0; }
body.theme-creme .detail-titre { align-items: center; }
body.theme-creme .detail-titre svg {
  width: 48px; height: 48px; padding: 12px; border-radius: 14px;
  background: var(--sable); color: var(--encre-c); margin: 0;
}
body.theme-creme .detail h2 { font-size: 22px; letter-spacing: -0.01em; }
body.theme-creme .detail li { color: var(--encre-c); }
body.theme-creme .detail li::marker { color: var(--caramel); }
body.theme-creme .detail p { color: var(--doux); }
@media (max-width: 760px) { body.theme-creme .detail { grid-template-columns: 1fr; } }

/* Questions fréquentes : accordéon en cartes */
body.theme-creme .faq { max-width: 860px; display: grid; gap: 12px; margin-top: 32px; }
body.theme-creme .faq details { background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 0; }
body.theme-creme .faq details:last-child { border-bottom: 1px solid var(--trait); }
body.theme-creme .faq summary { padding: 22px 26px; font-size: 18px; align-items: center; }
body.theme-creme .faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sable); color: var(--encre-c); font-size: 20px;
}
body.theme-creme .faq details[open] summary::after { background: var(--encre-c); color: var(--creme); }
body.theme-creme .faq details p { padding: 0 26px 24px; margin: 0; color: var(--doux); max-width: 70ch; }

/* Colonnes et étapes */
body.theme-creme .colonnes { gap: 16px; }
body.theme-creme .colonnes > div { background: #fff; border: 1px solid var(--trait); border-radius: 24px; padding: 32px; }
body.theme-creme .section.papier .colonnes > div { background: var(--creme); border-color: transparent; }
body.theme-creme .colonnes h3 { font-size: 20px; margin-bottom: 8px; }
body.theme-creme .colonnes p { color: var(--doux); }
body.theme-creme .etapes { gap: 16px; }
body.theme-creme .etapes li { background: #fff; border-radius: 24px; padding: 32px; border: 1px solid var(--trait); }
body.theme-creme .section.papier .etapes li { background: var(--creme); border-color: transparent; }
body.theme-creme .etapes li::before {
  position: static; display: grid; margin-bottom: 24px;
  width: 40px; height: 40px; border: 0; background: var(--encre-c); color: var(--creme);
  font-family: var(--texte); font-weight: 700; font-size: 16px;
}
body.theme-creme .etapes li::after { display: none; }
body.theme-creme .etapes h3 { font-size: 20px; margin-bottom: 8px; }

/* Bandeau d'appel en bas de page : même carte sombre que le bloc entreprises */
body.theme-creme .appel {
  background: var(--encre-c); color: #cfc6b9; border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
}
body.theme-creme .appel h2 { color: var(--creme); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; margin-bottom: 10px; }
body.theme-creme .appel p { font-size: 18px; }
body.theme-creme .appel .bouton { background: var(--creme); border-color: var(--creme); color: var(--encre-c); }
body.theme-creme .appel .bouton:hover { background: #fff; border-color: #fff; }
body.theme-creme .appel .bouton.secondaire { background: transparent; color: var(--creme); border-color: rgba(251, 248, 243, 0.3); }
body.theme-creme .appel .bouton.secondaire:hover { border-color: var(--creme); }

/* Textes légaux */
body.theme-creme .texte-long { background: #fff; border: 1px solid var(--trait); border-radius: 28px; padding: clamp(28px, 5vw, 56px); max-width: 860px; }
body.theme-creme .texte-long h2 { font-size: 24px; }
body.theme-creme .texte-long p, body.theme-creme .texte-long li { color: #3d3731; }
body.theme-creme .texte-long a { color: var(--encre-c); text-decoration-color: var(--caramel); }

/* Contact */
body.theme-creme .coordonnees { background: var(--sable); border-radius: 28px; padding: clamp(28px, 4vw, 40px); }
body.theme-creme .coordonnees h2 { font-size: 15px; font-weight: 700; color: var(--doux); letter-spacing: 0; }
body.theme-creme .coordonnees .gros { color: var(--encre-c); font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
body.theme-creme .coordonnees .gros:hover { color: var(--caramel-f); }
body.theme-creme .formulaire {
  background: #fff; border: 1px solid var(--trait); border-radius: 28px;
  padding: clamp(24px, 4vw, 48px); box-shadow: 0 24px 60px -30px rgba(31, 28, 24, 0.25);
}
body.theme-creme .formulaire h2 { font-size: 28px; letter-spacing: -0.03em; }
body.theme-creme .choix label { border: 1.5px solid var(--trait); background: var(--creme); font-weight: 600; padding: 10px 18px; }
body.theme-creme .choix label:hover { border-color: rgba(31, 28, 24, 0.3); }
body.theme-creme .choix label:has(input:checked) { border-color: var(--encre-c); background: var(--encre-c); color: var(--creme); }
body.theme-creme .choix label:has(input:focus-visible) { outline-color: var(--caramel); }
body.theme-creme .champ label { font-weight: 600; font-size: 15px; }
body.theme-creme .champ input, body.theme-creme .champ select, body.theme-creme .champ textarea {
  border: 1.5px solid var(--trait); border-radius: 14px; background: var(--creme); padding: 14px 16px;
}
body.theme-creme .champ input:focus, body.theme-creme .champ select:focus, body.theme-creme .champ textarea:focus {
  border-color: var(--encre-c); background: #fff; box-shadow: 0 0 0 4px rgba(181, 129, 79, 0.18);
}
body.theme-creme .formulaire .bouton { width: 100%; }
body.theme-creme .message-erreur { border-radius: 16px; border-width: 1.5px; }
body.theme-creme .a-completer { background: #f6e7c8; border-color: var(--caramel); }

/* Bandeau cookies et barre mobile */
body.theme-creme .bandeau-cookies {
  background: #fff; border: 1px solid var(--trait); border-radius: 24px;
  box-shadow: 0 24px 60px -20px rgba(31, 28, 24, 0.35);
}
body.theme-creme .bandeau-cookies .bouton.secondaire { border-color: var(--trait); }
body.theme-creme .barre-mobile {
  background: rgba(251, 248, 243, 0.9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--trait);
}

/* Logo Capsule Repair (version vectorielle) */
body.theme-creme .entete .marque img { height: 52px; width: auto; }
body.theme-creme .pied .logo-plaque img { height: 40px; width: auto; }
@media (max-width: 720px) { body.theme-creme .entete .marque img { height: 42px; } }

/* Bloc entreprises de l'accueil : titres en clair sur le fond sombre */
body.theme-creme main .v-pro h2,
body.theme-creme main .v-usages h3 { color: var(--creme); }

/* Tablette : garanties qui passent à la ligne au lieu de déborder */
@media (max-width: 960px) and (min-width: 641px) {
  .v-garanties { flex-wrap: wrap; justify-content: center; white-space: normal; border-radius: 20px; max-width: 100%; }
}