/* =====================================================================
   catalogue.css : monde visuel « la carte des départements »
   Portée : tout ce qui est dans .cq (listings, fiches produit, accueil).
   Papier de carte gris-bleu, encre sombre, bleu carte pour le hero,
   orange routier pour l'unique action, 13 teintes de région.
   Titres et numéros : Archivo (auto-hébergée, fonts/archivo). Texte : Satoshi (auto-hébergée).
   ===================================================================== */


/* Archivo (variable, graisses 500 à 900), auto-hébergée : fichiers Google Fonts v25, licence OFL */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("/fonts/archivo/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("/fonts/archivo/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Satoshi"; src: url("/fonts/ttf/Satoshi-Light-b54cf060.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/ttf/Satoshi-Regular-243b23f6.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/ttf/Satoshi-Italic-14c3d259.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/ttf/Satoshi-Bold-2c122eab.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --cq-papier: #EEF2F6;
    --cq-blanc: #FFFFFF;
    --cq-encre: #0F172A;
    --cq-encre-2: #44546A;
    --cq-bleu: #0B3D91;
    --cq-bleu-2: #082C6B;
    --cq-bleu-clair: #DCE3EE;
    --cq-orange: #F28C28;
    --cq-orange-2: #C86A0E;
    --cq-trait: #CBD5E1;
    --cq-titre: "Archivo", "Satoshi", "Segoe UI", Arial, sans-serif;
    --cq-texte: "Satoshi", "Segoe UI", Roboto, Arial, sans-serif;
}

/* Teintes de région : une par classe r-<slug>, lue par la carte, les onglets et les fiches */
.r-auvergne-rhone-alpes { --rc: #8FBDE6; }
.r-bourgogne-franche-comte { --rc: #F2C078; }
.r-bretagne { --rc: #9EDCC4; }
.r-centre-val-de-loire { --rc: #F3E27A; }
.r-corse { --rc: #EDA4BA; }
.r-grand-est { --rc: #B4C4EE; }
.r-hauts-de-france { --rc: #F5B27E; }
.r-ile-de-france { --rc: #F79E9E; }
.r-normandie { --rc: #B6DFF1; }
.r-nouvelle-aquitaine { --rc: #C4E39A; }
.r-occitanie { --rc: #F9D57F; }
.r-pays-de-la-loire { --rc: #D6C4EC; }
.r-provence-alpes-cote-azur { --rc: #F7C9A4; }

/* ---------- socle ---------- */
.cq { font-family: var(--cq-texte); color: var(--cq-encre); background: var(--cq-papier); padding-top: 55px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.cq *, .cq *::before, .cq *::after { box-sizing: border-box; }
.cq ::selection { background: var(--cq-orange); color: #fff; }
.cq :focus-visible { outline: 3px solid var(--cq-orange); outline-offset: 2px; }
.cq a { color: inherit; }
.cq p { text-align: left; }
.cq .container { max-width: 1200px; width: 100%; padding-left: 20px; padding-right: 20px; margin: 0 auto; }
.cq .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cq h1, .cq h2, .cq h3 { font-family: var(--cq-titre); color: var(--cq-encre); letter-spacing: -0.015em; }
.cq-h2 { font-size: 30px; font-weight: 800; line-height: 1.1; margin: 0 0 22px; }

/* ---------- hero : le bloc bleu carte ---------- */
.cq-hero { position: relative; background: var(--cq-bleu); color: #fff; overflow: hidden; isolation: isolate; }
.cq-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 48px 48px;
}
.cq-hero::after {
    content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent 70%);
}
.cq-hero .cq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-top: 34px; padding-bottom: 26px; }
.cq-h1, .cq-hero h1.cq-h1 { font-size: clamp(34px, 4vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 18px; color: #fff; text-wrap: balance; }
.cq-h1 em { font-style: normal; color: var(--cq-orange); }
.cq-lead { font-size: 17.5px; line-height: 1.5; color: rgba(255,255,255,.84); max-width: 46ch; margin: 0 0 26px; }
.cq-lead b { color: #fff; font-weight: 700; }

.cq-search { display: flex; gap: 4px; background: #fff; border-radius: 7px; padding: 4px; box-shadow: 0 14px 34px -14px rgba(0,0,0,.55); }
.cq-search input { flex: 1 1 auto; min-width: 0; height: 50px; border: 0; background: transparent; padding: 0 16px; font: 400 17px/1 var(--cq-texte); color: var(--cq-encre); }
.cq-search input::placeholder { color: #6B7A90; }
.cq-search input:focus { outline: none; }
.cq-search button { height: 50px; border: 0; border-radius: 5px; background: var(--cq-orange); color: #fff; padding: 0 22px; font: 700 14px/1 var(--cq-titre); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.cq-search button:hover { background: var(--cq-orange-2); }
.cq-search:focus-within { box-shadow: 0 0 0 3px var(--cq-orange), 0 14px 34px -14px rgba(0,0,0,.55); }

.cq-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: rgba(255,255,255,.86); }
.cq-legende li { display: inline-flex; align-items: center; gap: 7px; cursor: default; padding: 2px 0; border-bottom: 1px solid transparent; }
.cq-legende li i { width: 12px; height: 12px; border-radius: 2px; background: var(--rc, #DCE3EE); border: 1px solid rgba(255,255,255,.55); flex: none; }
.cq-legende li:hover, .cq-legende li:focus-visible { color: #fff; border-bottom-color: rgba(255,255,255,.6); }

/* la carte */
.cq-carte { position: relative; }
.cq-carte svg { display: block; width: 100%; height: 520px; max-height: 520px; overflow: visible; filter: drop-shadow(0 22px 26px rgba(0,0,0,.38)); }
.cq-carte .dep { fill: var(--rc, var(--cq-bleu-clair)); stroke: #fff; stroke-width: .8; stroke-linejoin: round; cursor: pointer; transition: fill .18s ease; }
.cq-carte .dep.vide { fill: #AEB9C9; cursor: default; }
.cq-carte .dep:hover, .cq-carte .dep.hl, .cq-carte .dep:focus-visible { fill: var(--cq-orange); stroke: #fff; stroke-width: 2.4; outline: none; }
.cq-carte .dep.vide:hover { fill: #AEB9C9; stroke-width: .8; }
.cq-carte .dep-labels text { font-family: var(--cq-titre); font-weight: 700; font-size: 12.5px; fill: var(--cq-encre); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.cq-carte .dep-labels text.cache { display: none; }
.cq-carte .encart-fond { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.6); stroke-width: 1; }
.cq-carte .encart-titre { font-family: var(--cq-titre); font-weight: 700; font-size: 12px; fill: #fff; letter-spacing: .04em; text-transform: uppercase; }
.cq-carte .encart .dep-labels text { font-size: 11px; }

.cq-tip { position: absolute; z-index: 20; pointer-events: none; background: var(--cq-encre); color: #fff; padding: 10px 12px 11px; border-radius: 6px; font-size: 13px; line-height: 1.4; min-width: 190px; box-shadow: 0 12px 24px -8px rgba(0,0,0,.5); transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .12s; }
.cq-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--cq-encre); transform: translateX(-50%) rotate(45deg); }
.cq-tip.on { opacity: 1; }
.cq-tip b { font-family: var(--cq-titre); font-size: 15px; display: block; margin-bottom: 2px; }
.cq-tip .p { color: var(--cq-orange); font-weight: 700; }
.cq-tip .v { color: rgba(255,255,255,.7); }

/* révélation unique : les régions prennent leur teinte l'une après l'autre */
@media (prefers-reduced-motion: no-preference) {
    .cq-carte .dep { animation: cq-teinte .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
    @keyframes cq-teinte { from { fill: var(--cq-bleu-clair); } }
    .cq-carte .dep:hover, .cq-carte .dep.hl, .cq-carte .dep:focus-visible { animation: none; }
}

/* ---------- réglette 01…95 ---------- */
.cq-reglette { position: sticky; top: 55px; z-index: 900; background: #fff; border-bottom: 1px solid var(--cq-trait); box-shadow: 0 6px 16px -12px rgba(15,23,42,.35); }
.cq-reglette ol { display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--cq-trait) transparent; padding: 8px 0 6px; margin: 0; list-style: none; }
.cq-reglette ol::-webkit-scrollbar { height: 6px; }
.cq-reglette ol::-webkit-scrollbar-thumb { background: var(--cq-trait); border-radius: 3px; }
.cq-reglette a { display: block; min-width: 38px; text-align: center; padding: 6px 5px 7px; font-family: var(--cq-titre); font-weight: 700; font-size: 13px; color: var(--cq-encre-2); text-decoration: none; box-shadow: inset 0 -4px 0 var(--rc, #DCE3EE); transition: background .12s, color .12s; }
.cq-reglette a:hover, .cq-reglette a.on { background: var(--cq-encre); color: #fff; }

/* ---------- liste des fiches ---------- */
.cq-liste { padding: 26px 0 56px; }
.cq-fil { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--cq-encre-2); margin: 0 0 6px; }
.cq-fil ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cq-fil a { color: var(--cq-encre-2); text-decoration: none; }
.cq-fil a:hover { color: var(--cq-bleu); text-decoration: underline; }
.cq-fil li + li::before { content: "›"; margin-right: 6px; color: #94A3B8; }
.cq-compte { font-size: 14px; color: var(--cq-encre-2); margin: 0 0 6px; }
.cq-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 18px 0 0; }

.fiche { position: relative; background: #fff; border: 1px solid var(--cq-trait); border-radius: 6px; padding: 22px 18px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease, box-shadow .18s ease; }
/* bande de couleur de région : un onglet peint dans la fiche, pas une bordure */
.fiche::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--rc, var(--cq-bleu-clair)); }
.fiche:hover { transform: translateY(-3px); box-shadow: 0 22px 34px -20px rgba(15,23,42,.45); }
.fiche-tete { display: flex; gap: 14px; align-items: flex-start; }
.fiche-num { font-family: var(--cq-titre); font-weight: 900; font-size: 40px; line-height: 1; color: var(--cq-bleu); letter-spacing: -0.03em; min-width: 54px; }
.fiche-titre { font-family: var(--cq-titre); font-weight: 700; font-size: 19px; line-height: 1.2; margin: 2px 0 0; letter-spacing: -0.01em; }
.fiche-titre a { text-decoration: none; }
.fiche-titre a::after { content: ""; position: absolute; inset: 0; }
.fiche-titre a:hover { color: var(--cq-bleu); }
.fiche-region { font-size: 12.5px; color: var(--cq-encre-2); margin-top: 4px; }
.fiche-photo-lien { margin-left: auto; flex: none; position: relative; z-index: 1; }
.fiche-photo { display: block; width: 84px; height: 84px; border-radius: 6px; object-fit: cover; border: 1px solid var(--cq-trait); }
.fiche-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; padding: 12px 0; list-style: none; border-top: 1px dashed var(--cq-trait); border-bottom: 1px dashed var(--cq-trait); }
.fiche-chiffres li { display: flex; flex-direction: column; min-width: 0; }
.fiche-chiffres b { font-family: var(--cq-titre); font-weight: 800; font-size: 20px; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fiche-chiffres span { font-size: 12px; color: var(--cq-encre-2); }
.fiche-chiffres .emails b { color: var(--cq-orange-2); }
.fiche-chiffres .maj b { font-size: 15px; font-weight: 700; padding-top: 3px; }
.fiche-desc { font-size: 13.5px; line-height: 1.5; color: var(--cq-encre-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fiche-pied { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.fiche-prix { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fiche-prix s { color: #94A3B8; font-size: 13px; }
.fiche-prix b { font-family: var(--cq-titre); font-weight: 900; font-size: 27px; line-height: 1; letter-spacing: -0.02em; }
.fiche-prix small { font-size: 12px; color: var(--cq-encre-2); }
.cq-btn { position: relative; z-index: 1; display: inline-block; background: var(--cq-orange); color: #fff; font-family: var(--cq-titre); font-weight: 700; font-size: 14px; letter-spacing: .02em; padding: 11px 16px; border-radius: 5px; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.cq-btn:hover { background: var(--cq-orange-2); color: #fff; }
.cq-btn--grand { font-size: 17px; padding: 16px 26px; }
.cq-btn--bleu { background: var(--cq-bleu); }
.cq-btn--bleu:hover { background: var(--cq-bleu-2); }
.cq-vide { grid-column: 1 / -1; background: #fff; border: 1px dashed var(--cq-trait); border-radius: 8px; padding: 32px; text-align: center; color: var(--cq-encre-2); }

/* ---------- sections blanches ---------- */
.cq-section { background: #fff; border-top: 1px solid var(--cq-trait); padding: 52px 0; }
.cq-section--papier { background: var(--cq-papier); }
.cq-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.cq-etapes li { position: relative; padding-top: 58px; }
.cq-etapes li::before { counter-increment: etape; content: "0" counter(etape); position: absolute; top: 0; left: 0; font-family: var(--cq-titre); font-weight: 900; font-size: 44px; line-height: 1; color: var(--cq-bleu); letter-spacing: -0.03em; }
.cq-etapes h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.cq-etapes p { margin: 0; color: var(--cq-encre-2); font-size: 15px; }
.cq-recevez { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 0; padding: 0; list-style: none; font-size: 15.5px; }
.cq-recevez li { display: flex; gap: 10px; align-items: flex-start; }
.cq-recevez li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--cq-bleu) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; }
.cq-texte { max-width: 70ch; font-size: 16px; color: var(--cq-encre-2); }
.cq-texte p { margin: 0 0 14px; }
.cq-deux { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }

/* ---------- réactif ---------- */
@media (max-width: 1100px) {
    .cq-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .cq-hero .cq-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
    .cq-carte { max-width: 560px; margin: 0 auto; width: 100%; }
    .cq-carte svg { max-height: none; height: auto; }
    .cq-legende { display: none; }
    .cq-deux { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .cq { padding-top: 50px; }
    .cq-reglette { top: 50px; }
    .cq-etapes, .cq-recevez { grid-template-columns: 1fr; }
    .cq-h2 { font-size: 26px; }
}
@media (max-width: 640px) {
    .cq-grille { grid-template-columns: 1fr; gap: 16px; }
    .cq-search { flex-direction: column; }
    .cq-search button { width: 100%; }
    .fiche-num { font-size: 34px; min-width: 46px; }
    .fiche-photo { width: 64px; height: 64px; }
    .cq-carte .dep-labels text { font-size: 15px; }
    .cq-carte .dep-labels text.petit { display: none; }
}

/* ---------- mode « focus » (fiche produit) : un département allumé, sa région lisible, le reste en retrait ---------- */
.cq-carte.focus-mode .dep { opacity: .38; }
.cq-carte.focus-mode .dep.meme-region { opacity: .85; }
.cq-carte.focus-mode .dep.focus { opacity: 1; fill: var(--cq-orange); stroke: #fff; stroke-width: 2.6; }
.cq-carte.focus-mode .dep-labels text { opacity: .45; }
.cq-carte.focus-mode .dep-labels text.focus { opacity: 1; font-size: 16px; fill: #fff; paint-order: stroke; stroke: var(--cq-encre); stroke-width: 3px; }

/* ---------- finition (revue) ---------- */
/* tête de fiche : numéro, titre et région forment une colonne serrée ; la photo n'impose plus sa hauteur */
.fiche-tete > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fiche .fiche-titre { margin: 2px 0 0; }
.fiche-region { margin-top: 0; }
/* réglette : fondu aux deux bords, accroche des entrées, l'entrée active est ramenée dans la vue par le script */
.cq-reglette ol { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.cq-reglette ol { scroll-snap-type: x proximity; padding-left: 12px; padding-right: 12px; }
.cq-reglette a { scroll-snap-align: center; }
/* style11.css impose h2 { margin-bottom: 50px !important } : neutralisé dans le catalogue, les titres de section gardent leur marge propre */
.cq h2 { margin-bottom: 22px !important; }
.cq .fiche-titre { margin-bottom: 0 !important; }
.cq .cq-h2 { margin-bottom: 22px !important; }

/* ---------- aération (retour propriétaire) : sections plus hautes, étapes en pleine largeur ---------- */
.cq-section { padding: 68px 0; }
.cq-deux { grid-template-columns: 1fr; gap: 56px; }
.cq-etapes { gap: 40px; }
.cq-etapes h3 { font-size: 20px; }
.cq-etapes p { font-size: 16px; max-width: 34ch; }
.cq-recevez { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 32px; font-size: 16px; }
.cq-h2 { margin-bottom: 26px !important; }
@media (max-width: 991px) { .cq-recevez { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .cq-section { padding: 48px 0; } .cq-recevez { grid-template-columns: 1fr; } .cq-etapes { gap: 28px; } }
