/* ==========================================================================
   Pages de contenu (À propos, Légal, Conditions…) et pages de service
   ========================================================================== */

/* ÉCHELLE GLOBALE DESKTOP (voir home.css) : "zoom 80%" à 100% du navigateur.
   Mobile (<1024px) non touché. Doublon volontaire pour couvrir les pages qui
   chargent page.css mais pas home.css. */
@media (min-width: 1024px) { :root { zoom: 0.8; } }

.pg { padding-bottom: clamp(60px, 8vw, 110px); }
.pg__head { padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px);
            background: radial-gradient(50% 70% at 85% 0%, var(--brand-100) 0%, transparent 70%),
                        radial-gradient(35% 50% at 0% 30%, #eaf4ff 0%, transparent 70%), #fff;
            border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.crumb a { font-weight: 600; color: var(--brand); }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg__title { margin-top: 12px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); }

.pg__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: clamp(28px, 4vw, 52px); }
.pg__body { max-width: 78ch; }

/* Mise en forme du contenu venant de l'admin */
.prose { color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .5em; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.prose h1 { font-size: 1.9rem; } .prose h2 { font-size: 1.55rem; } .prose h3 { font-size: 1.3rem; } .prose h4 { font-size: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.2em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-ink); }
.prose img { max-width: 100%; height: auto; margin: 1.5em 0; border-radius: var(--r-lg); }
.prose table { width: 100%; margin-bottom: 1.4em; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); font-weight: 600; color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--muted); font-style: italic; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }

/* Colonne latérale */
.pg__side { position: sticky; top: calc(var(--hdr-h) + 24px); }
.pg__card { padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.pg__card h2 { margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pg__card li + li { margin-top: 4px; }
.pg__card a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px;
              font-size: .95rem; font-weight: 500; color: var(--text); transition: .2s var(--ease); }
.pg__card a:hover { background: var(--brand-50); color: var(--brand); }
.pg__card a.is-here { background: var(--brand); color: #fff; font-weight: 600; }
.pg__card svg { width: 16px; height: 16px; opacity: 0; transition: .2s var(--ease); }
.pg__card a:hover svg { opacity: 1; transform: translateX(2px); }

@media (max-width: 980px) {
  .pg__grid { grid-template-columns: 1fr; }
  .pg__side { position: static; order: 2; }
}

/* ---------------- Page « Nous contacter » ---------------- */
.pg__intro { max-width: 70ch; margin-top: 14px; font-size: 1.05rem; color: var(--muted); }
/* Colonne unique CENTRÉE : carte formulaire au milieu de la page, coordonnées centrées dessous. */
.ct__grid { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: clamp(24px, 3vw, 40px); align-items: start; padding-top: clamp(28px, 4vw, 52px); }
.ct__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ct__card { padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.ct__card h2 { margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ct__card li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--ink); }
.ct__card li + li { margin-top: 12px; }
.ct__card a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.ct__ico { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.auth__form textarea { padding: 14px 16px; border: 0; border-radius: 14px; background: var(--soft); font: inherit; color: var(--ink); resize: vertical;
                       box-shadow: inset 0 0 0 1.5px transparent; transition: .2s; }
.auth__form textarea:focus { outline: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand); }
/* Le formulaire occupe toute la largeur de sa colonne */
.ct__panel { width: 100%; }

/* ---------------- Pages de service ---------------- */
.sv__hero { padding: clamp(28px, 4vw, 56px) 0 clamp(32px, 4vw, 64px);
            background: radial-gradient(45% 60% at 80% 10%, var(--brand-100) 0%, transparent 70%), #fff; }
.sv__heroIn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sv__title { margin-top: 12px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.sv__lead { max-width: 60ch; margin-top: 16px; font-size: 1.08rem; color: var(--muted); }
.sv__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.sv__btn { height: 54px; padding-inline: 30px; font-size: 1.02rem; border-radius: 999px; }
.sv__btn.btn--brand { box-shadow: 0 12px 26px rgba(156,3,6,.26); }
.sv__badge { transition: transform .2s var(--ease); }
.sv__badge img { height: 48px; width: auto; display: block; }
.sv__badge:hover { transform: translateY(-2px); }
/* Badges App Store / Play Store regroupés EN BAS : côte à côte, centrés */
.sv__apps { padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); text-align: center; }
.sv__appsLead { margin-bottom: 18px; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.sv__appsRow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.sv__appsRow .sv__badge img { height: 54px; }
.sv__heroImg img { width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }

.sv__nav:not(:empty) { position: sticky; top: var(--hdr-h); z-index: 10; background: rgb(255 255 255 / .9); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.sv__navIn { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.sv__navIn::-webkit-scrollbar { display: none; }
.sv__navIn a { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--muted); }
.sv__navIn a:hover { background: var(--brand-50); color: var(--brand); }

/* Informations du bas CENTRÉES : colonne de contenu centrée dans la page */
.sv__sections { display: grid; gap: clamp(40px, 5vw, 72px); padding: clamp(40px, 5vw, 72px) 0; max-width: 860px; margin-inline: auto; }
.sv__sec { padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); text-align: center; }
.sv__sec:last-child { border-bottom: 0; }
.sv__secTitle { margin-bottom: 18px; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.sv__sec .prose { max-width: 72ch; margin-inline: auto; text-align: left; }
/* images du contenu : taille maîtrisée */
.sv__sec .prose img { max-width: min(100%, 560px); max-height: 380px; width: auto; height: auto; border-radius: var(--r-lg); }
.sv__sec .prose a img { max-height: 54px; margin: 6px 8px 6px 0; border-radius: 8px; }
.sv__secImg { width: 100%; max-width: 560px; max-height: 380px; object-fit: cover; margin-top: 24px; border-radius: var(--r-lg); }

.sv__more { padding: clamp(48px, 6vw, 80px) 0; background: var(--soft); }
.sv__moreGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 32px; }
.sv__more-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: var(--r-md);
                 background: var(--surface); font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: .25s var(--ease); }
.sv__more-card:hover { transform: translateY(-3px); color: var(--brand); box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-200); }
.sv__more-card svg { width: 18px; height: 18px; color: var(--brand); }

@media (max-width: 980px) {
  .ct__grid { grid-template-columns: 1fr; }
  .ct__side { position: static; }
  .sv__heroIn { grid-template-columns: 1fr; }
  .sv__sec { grid-template-columns: 1fr; }
  .sv__secImg { grid-column: 1; }
}

/* ---------------- Pages de présentation ---------------- */
.ld__hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px);
            background: radial-gradient(50% 70% at 78% 10%, var(--brand-100) 0%, transparent 70%),
                        radial-gradient(40% 50% at 0% 60%, #eaf4ff 0%, transparent 70%), #fff; }
.ld__heroIn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ld__eyebrow { display: inline-block; margin-top: 16px; padding: 7px 16px; border-radius: 999px; background: var(--brand); color: #fff;
               font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.ld__title { margin-top: 18px; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.ld__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.ld__btn { height: 54px; }
.ld__img img { width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.ld__body { padding: clamp(40px, 5vw, 72px) 0; }
.ld__body .prose { max-width: 78ch; margin-inline: auto; }
.ld__body .prose img { max-width: min(100%, 560px); height: auto; border-radius: var(--r-lg); }

@media (max-width: 980px) { .ld__heroIn { grid-template-columns: 1fr; } }

/* --- Présentation : version enrichie (sans fil d'Ariane ni badges de téléchargement) --- */
.ld__hero { padding-top: clamp(32px, 4.5vw, 64px); padding-bottom: clamp(44px, 5.5vw, 84px); }
.ld__heroIn { position: relative; z-index: 1; }
.ld__eyebrow { margin-top: 0; box-shadow: 0 8px 18px rgba(156,3,6,.22); }
.ld__title { font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-top: 14px; }
.ld__cta { margin-top: 30px; gap: 14px; }
.ld__cta .ld__btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding-inline: 30px; border-radius: 999px; font-size: 1rem; }
.ld__cta .btn--brand { box-shadow: 0 12px 26px rgba(156,3,6,.26); }
.ld__cta .btn--brand:hover { transform: translateY(-2px); }
/* Image : cadre blanc + léger halo de marque derrière */
.ld__img { position: relative; z-index: 1; }
.ld__img::before { content: ""; position: absolute; inset: 12% -8% -12% 18%; z-index: -1; border-radius: 30px;
  background: radial-gradient(60% 60% at 70% 70%, rgba(156,3,6,.18), transparent 72%); filter: blur(8px); }
.ld__img img { border: 6px solid #fff; }
:root[data-theme="dark"] .ld__img img { border-color: var(--surface); }
/* 1er paragraphe du corps = chapô plus grand et plus net */
.ld__body { padding-top: clamp(36px, 4.5vw, 64px); }
.ld__body .prose > p:first-child { font-size: 1.22rem; line-height: 1.7; color: var(--ink); font-weight: 500; }
/* Section « autres services » : fond dégradé doux + cartes plus rondes */
.sv__more { background: linear-gradient(180deg, var(--soft), var(--bg)); }
.sv__moreGrid { margin-top: 26px; }
.sv__more-card { padding: 20px 22px; border-radius: 16px; }
.sv__more-card:hover { transform: translateY(-4px); }

/* ---------------- FAQ ---------------- */
.faq { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(28px, 4vw, 52px) 0; }
.faq__nav { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 4px; }
.faq__cat { padding: 12px 16px; border-radius: 12px; text-align: left; font-size: .95rem; font-weight: 500; color: var(--text); transition: .2s var(--ease); }
.faq__cat:hover { background: var(--soft); }
.faq__cat.is-active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: var(--shadow-brand); }
.faq__list { display: grid; gap: 12px; }
.faq__group { display: grid; gap: 12px; }
.faq__item { border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq__item[open] { box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-200); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer;
                     font-weight: 500; color: var(--ink); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after { content: ''; position: absolute; inset: 9px 0 auto; height: 2px; border-radius: 2px; background: var(--brand); transition: transform .25s var(--ease); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }
.faq__answer { padding: 0 22px 20px; font-size: .98rem; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
}

/* Mode sombre : bandeaux d'en-tete des pages (le degrade blanc/bleu ne s'adapte pas tout seul) */
:root[data-theme="dark"] .pg__head,
:root[data-theme="dark"] .ld__hero {
  background: radial-gradient(50% 70% at 85% 0%, var(--brand-100) 0%, transparent 70%), var(--surface);
}
