/* =====================================================================
   Carrosserie des Cimes - AJOUTS DU SITE DYNAMIQUE
   Ce que la maquette n'avait pas besoin de prévoir : la page d'un article
   (reprise de la mise en page des articles de blog de la maquette, sous
   l'en-tête de l'accueil), la page d'une actualité, les mentions « [à
   compléter] » et les blocs sans photo. site.css et variables.css restent
   ceux de la maquette, tels quels.
   Anonyme Studio - 23/10/2026
   ===================================================================== */

/* Mentions entre crochets : ce qui reste à compléter (textes de la console). */
.attente { background: var(--cdc-maquette-fond, #fff6d6); color: var(--cdc-maquette-texte, #6b5500); border-radius: 4px; padding: 0 4px; }

/* Bloc « photo + texte » sans photo : le texte seul, sur la largeur de lecture. */
.cdc-duo.sans-image { grid-template-columns: 1fr; max-width: var(--cdc-largeur-texte); }

/* Section avis : légende sous le grand chiffre (à la place des étoiles Google, 27/10/2026). */
.cdc-note-legende { color: var(--cdc-texte-sur-sombre); font-size: 15px; font-weight: 600; margin-top: 8px; }

/* ---------- page d'un article (blog) ou d'une actualité ---------- */
.cdc-article { max-width: var(--cdc-largeur); margin: 0 auto; padding: 0 var(--cdc-gouttiere) 70px; }
.cdc-article .fil-ariane { font-size: 13px; color: var(--cdc-gris-titre); padding: 22px 0 0; }
.cdc-article .fil-ariane a { text-decoration: underline; }
.cdc-article .art-tete { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 18px 0 26px; }
.cdc-article .art-tete .cat { display: inline-block; background: var(--cdc-nuit); color: var(--cdc-blanc); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 20px; justify-self: start; }
.cdc-article .art-tete h1 { font-size: 54px; font-weight: 800; max-width: 960px; text-wrap: balance; margin: 0; }
.cdc-article .art-tete .meta { color: var(--cdc-gris-titre); font-size: 14px; }
.cdc-article .couv { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; max-height: 620px; width: 100%; background: var(--cdc-nuit); box-shadow: 0 24px 50px rgba(15, 20, 25, .18); }
.cdc-article .couv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdc-article .corps-art { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; margin-top: 44px; align-items: start; }
.cdc-article .texte { font-size: 17.5px; line-height: 1.75; color: var(--cdc-acier-2); max-width: 740px; }
.cdc-article .texte p { margin: 0 0 18px; text-align: justify; }
.cdc-article .texte h2 { font-size: 36px; margin: 46px 0 14px; color: var(--cdc-nuit); scroll-margin-top: 100px; }
.cdc-article .texte h3 { font-size: 24px; margin: 28px 0 10px; color: var(--cdc-nuit); }
.cdc-article .texte ul, .cdc-article .texte ol { margin: 0 0 20px 22px; padding: 0; }
.cdc-article .texte li { margin: 0 0 9px; text-align: justify; }
.cdc-article .texte a { text-decoration: underline; }
.cdc-article .texte figure { margin: 26px 0 30px; }
.cdc-article .texte figure img { display: block; width: 100%; max-width: 600px; height: auto; border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 20, 25, .16); }
.cdc-article .texte figcaption { font-size: 14px; color: var(--cdc-gris-titre); margin-top: 10px; max-width: 600px; }
.cdc-article .art-lede { font-size: 20px; line-height: 1.65; color: var(--cdc-nuit); font-weight: 500; border-left: 4px solid var(--cdc-nuit); padding-left: 20px; margin-bottom: 28px !important; }
.cdc-article .art-callout { background: var(--cdc-clair); border: 1px solid var(--cdc-trait); border-radius: 14px; padding: 22px 24px; margin: 0 0 18px; }
.cdc-article .art-callout h4, .cdc-article .art-summary h4 { font-family: var(--cdc-police-titre); text-transform: uppercase; font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--cdc-nuit); }
.cdc-article .art-callout ul { margin: 0 0 0 20px; }
.cdc-article .art-callout li { margin-bottom: 7px; font-size: 16px; }
.cdc-article .art-summary { border: 1px solid var(--cdc-trait-fort); border-radius: 14px; padding: 20px 24px; margin: 26px 0 8px; }
.cdc-article .art-summary ol { margin: 0 0 0 20px; }
.cdc-article .art-summary li { margin: 5px 0; font-size: 16px; }
.cdc-article .art-mid-cta { background: linear-gradient(120deg, var(--cdc-nuit), var(--cdc-acier-2)); color: var(--cdc-blanc); border-radius: 16px; padding: 30px; margin: 40px 0; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cdc-article .art-mid-cta b { display: block; font-family: var(--cdc-police-titre); text-transform: uppercase; font-size: 28px; line-height: 1.05; margin-bottom: 6px; }
.cdc-article .art-mid-cta span { color: var(--cdc-argent); font-size: 15.5px; }
/* Bouton des articles écrits par le moteur de blog (« btn wa ») : le bouton bleu du site. */
.cdc-article .art-mid-cta a.btn { display: inline-flex; align-items: center; font-weight: 700; border-radius: var(--cdc-rayon-s); padding: 13px 20px; font-size: 15px; white-space: nowrap; border: 0; background: var(--cdc-degrade-bleu, var(--cdc-bleu)); color: var(--cdc-blanc); box-shadow: var(--cdc-ombre-bleue); text-decoration: none; }
.cdc-article .art-faq { margin-top: 50px; }
.cdc-article .art-faq details { border: 1px solid var(--cdc-trait); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; background: var(--cdc-blanc); }
.cdc-article .art-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--cdc-nuit); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.cdc-article .art-faq summary::-webkit-details-marker { display: none; }
.cdc-article .art-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--cdc-gris-titre); }
.cdc-article .art-faq details[open] summary::after { content: "\2212"; }
.cdc-article .art-faq details p { margin: 12px 0 0; font-size: 16px; }
.cdc-article .art-retenir { background: var(--cdc-nuit); color: var(--cdc-blanc); border-radius: 16px; padding: 30px 32px; margin: 44px 0; }
.cdc-article .art-retenir h2 { color: var(--cdc-blanc) !important; margin-top: 0 !important; }
.cdc-article .art-retenir ul { margin: 0 0 0 20px; }
.cdc-article .art-retenir li { color: var(--cdc-neige); margin-bottom: 10px; }
.cdc-article .art-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.cdc-article .art-services a { border: 1px solid var(--cdc-trait); border-radius: 12px; padding: 18px 20px; display: block; transition: .2s; background: var(--cdc-blanc); text-decoration: none; }
.cdc-article .art-services a:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 20, 25, .08); }
.cdc-article .art-services b { display: block; font-family: var(--cdc-police-titre); text-transform: uppercase; font-size: 21px; color: var(--cdc-nuit); }
.cdc-article .art-services span { font-size: 14.5px; color: var(--cdc-gris-texte); }
.cdc-article .cote { position: sticky; top: 100px; display: grid; gap: 16px; }
.cdc-article .cote .bloc { border: 1px solid var(--cdc-trait); border-radius: 14px; padding: 22px; background: var(--cdc-blanc); }
.cdc-article .cote .bloc.sombre { background: var(--cdc-nuit); color: var(--cdc-blanc); border: 0; }
.cdc-article .cote .bloc b { display: block; font-family: var(--cdc-police-titre); text-transform: uppercase; font-size: 22px; margin-bottom: 6px; }
.cdc-article .cote .bloc p { font-size: 14.5px; color: var(--cdc-gris-texte); margin-bottom: 14px; }
.cdc-article .cote .bloc.sombre p { color: var(--cdc-argent); }
.cdc-article .cote .bloc .cdc-btn { width: 100%; justify-content: center; }
.cdc-article .cote .bloc.sombre .tel { display: block; color: var(--cdc-blanc); font-weight: 800; font-size: 22px; margin-top: 12px; text-align: center; }
.cdc-lire-aussi { background: var(--cdc-clair); padding: 60px 0; }
.cdc-lire-aussi .grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.cdc-lire-aussi a.carte-lire { display: grid; grid-template-columns: 240px 1fr; align-items: center; background: var(--cdc-blanc); border: 1px solid var(--cdc-trait); border-radius: 14px; overflow: hidden; transition: .2s; }
.cdc-lire-aussi a.carte-lire:hover { transform: translateY(-3px); box-shadow: var(--cdc-ombre-carte); }
.cdc-lire-aussi .vig { background: var(--cdc-acier) center / cover; aspect-ratio: 3 / 2; align-self: center; }
.cdc-lire-aussi .t { padding: 18px; }
.cdc-lire-aussi small { color: var(--cdc-gris-titre); font-size: 12.5px; }
.cdc-lire-aussi h3 { font-size: 22px; margin-top: 6px; }
@media (max-width: 980px) {
  .cdc-article .corps-art { grid-template-columns: 1fr; }
  .cdc-article .cote { position: static; }
  .cdc-article .art-tete h1 { font-size: 40px; }
}
@media (max-width: 760px) {
  .cdc-article .art-tete h1 { font-size: 32px; }
  .cdc-article .texte { font-size: 16.5px; }
  .cdc-article .texte h2 { font-size: 28px; }
  .cdc-article .texte p, .cdc-article .texte li { text-align: left; }
  .cdc-article .art-mid-cta { grid-template-columns: 1fr; }
  .cdc-article .art-services, .cdc-lire-aussi .grille { grid-template-columns: 1fr; }
  .cdc-lire-aussi a.carte-lire { grid-template-columns: 1fr; }
}

/* Pages d'erreur et de maintenance : le haut de page sombre, sans photo. */
.cdc-hero.sans-photo { background: var(--cdc-nuit); }

/* Logo du pied de page (26/10/2026) : deux fois plus grand que la maquette
   (128 px de haut au lieu de 64, soit 230 px de large), réduit en douceur sur
   les petits téléphones et jamais plus large que sa colonne. La marge à
   gauche dessinée dans logo.svg (6,6 % de sa largeur) est compensée pour que
   le logo reste aligné sur le texte en dessous. */
.cdc-pied .cdc-logo-pied {
  --cdc-logo-pied: clamp(160px, 58vw, 230px);
  width: var(--cdc-logo-pied); max-width: 100%; height: auto;
  margin-left: calc(var(--cdc-logo-pied) * -0.066);
}

/* =====================================================================
   RESPONSIVE — corrections des petits et moyens écrans (23/10/2026)
   La maquette est pensée pour l'ordinateur ; ces règles ne changent rien
   au-dessus de 1224 px (rendu identique à la maquette sur ordinateur).
   ===================================================================== */

/* Rangées à grand espacement (Bootstrap g-lg-5 : 48 px, soit 24 px de chaque
   côté) alors que la marge du site n'est que de 22 px : entre 992 et 1224 px
   la page débordait de 2 px et défilait en largeur. */
@media (min-width: 992px) and (max-width: 1223.98px) {
  .cdc-w > .row.g-lg-5 { --bs-gutter-x: calc(var(--cdc-gouttiere) * 2); }
}

/* Grilles à largeur minimale (cartes 280 px, étapes 220 px, chiffres 170 px) :
   jamais plus larges que l'écran (téléphone de 320 px). */
.cdc-cartes { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.cdc-etapes { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.cdc-chiffres { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }

/* Étapes et chiffres : rangées complètes selon leur nombre, jamais un
   élément seul sur sa ligne (3 + 1, 2 + 1). */
@media (max-width: 559.98px) {
  .cdc-etapes:has(> .cdc-etape:nth-child(3):last-child) { grid-template-columns: 1fr; }
}
@media (min-width: 560px) {
  .cdc-etapes:has(> .cdc-etape:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .cdc-etapes:has(> .cdc-etape:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
.cdc-chiffres:has(> .cdc-chiffre:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .cdc-chiffres:has(> .cdc-chiffre:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
}

/* Blocs « photo + texte » empilés (tablette) : photo moins haute. */
@media (min-width: 576px) and (max-width: 900px) {
  .cdc-duo-image { aspect-ratio: 16 / 9; }
}

/* Cartes : deux colonnes dès 560 px (une seule colonne de cartes très hautes
   sinon jusqu'à 622 px). */
@media (min-width: 560px) and (max-width: 621.98px) {
  .cdc-cartes { grid-template-columns: repeat(2, 1fr); }
}

/* Une liste de cartes en 2 colonnes (560 à 919 px) dont la dernière reste
   seule sur sa rangée (3 actualités, 3 articles…) : cette carte prend toute
   la largeur, photo à gauche, comme la grande carte mise en avant. */
@media (min-width: 560px) and (max-width: 919.98px) {
  .cdc-cartes:not(:has(.cdc-carte-large)) > .cdc-carte:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .cdc-cartes:not(:has(.cdc-carte-large)) > .cdc-carte:last-child:nth-child(odd) .cdc-carte-image { aspect-ratio: auto; min-height: 100%; }
  .cdc-cartes:not(:has(.cdc-carte-large)) > .cdc-carte:last-child:nth-child(odd) .cdc-carte-corps { align-self: center; }
}

/* Bandeau sombre « Devis gratuit » : ses boutons ne passaient jamais à la
   ligne, la colonne s'élargissait d'autant et le bandeau rognait son propre
   texte (téléphone), ou serrait ses boutons (900 à 1100 px). */
.cdc-cta > * { min-width: 0; }
.cdc-cta .cdc-btn { white-space: normal; text-align: center; }
@media (min-width: 901px) and (max-width: 1199.98px) {
  .cdc-cta { grid-template-columns: 1fr minmax(280px, .8fr); padding: 44px; }
}

/* Numéros de téléphone : jamais coupés en fin de ligne. */
.cdc-tel { white-space: nowrap; }

/* ---------- téléphones (jusqu'à 575 px) ---------- */
@media (max-width: 575.98px) {
  /* Pastilles sous le haut de page : l'icône au-dessus du texte, qui a ainsi
     toute la largeur de la carte (les titres étaient coupés : « Spécialis… »). */
  .cdc-args.flottantes .cdc-arg { flex-direction: column; gap: 10px; padding: 16px 14px; }
  .cdc-args.flottantes .cdc-arg-icone { flex: 0 0 auto; width: 40px; height: 40px; }
  .cdc-arg b { font-size: 18px; overflow-wrap: anywhere; }
  .cdc-arg > div > span { font-size: 13px; line-height: 1.45; }
  /* Boutons : un libellé long passe à la ligne au lieu de sortir de l'écran. */
  .cdc-btn { white-space: normal; text-align: center; justify-content: center; }
  .cdc-hero .cdc-actions .cdc-btn { flex: 1 1 auto; }
  /* Avis : citation plus petite sur un écran étroit. */
  .cdc-diapo blockquote { font-size: 18px; min-height: 0; }
  /* Plan d'accès moins haut. */
  .cdc-carte-plan { min-height: 320px; }
  /* Mosaïque de photos : vignettes moins hautes sur 2 colonnes étroites. */
  .cdc-galerie { grid-auto-rows: 150px; gap: 8px; }
  /* Bandeau « Devis gratuit » et « Bientôt » : moins de marge intérieure. */
  .cdc-cta { padding: 28px 20px; }
}

/* ---------- page d'un article, tablettes ---------- */
@media (min-width: 761px) and (max-width: 980px) {
  .cdc-lire-aussi a.carte-lire { grid-template-columns: 150px 1fr; }
}

/* >>> mobile 03/11/2026 */
/* trois traits du menu : le filtre les inversait en noir */
.cdc-entete .navbar-toggler { border-color: rgba(255, 255, 255, .55); }
.cdc-entete .navbar-toggler-icon { filter: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* lisibilite sur fond sombre et sur fond clair, toutes tailles d'ecran */
.cdc-sombre .cdc-etape p { color: var(--cdc-texte-sur-sombre); }
.cdc-sombre .cdc-etape::before, .cdc-sombre .cdc-etape:hover::before, .cdc-sombre .cdc-etape.actif::before { color: var(--cdc-blanc); }
.cdc-clair .cdc-surtitre { color: var(--cdc-gris-texte); }

/* menu ouvert : sous la barre, sur toute la largeur, jamais coupe */
@media (max-width: 1199.98px) {
  .cdc-entete .navbar > .cdc-w { flex-wrap: wrap; }
  .cdc-entete .navbar-collapse { flex: 0 0 100%; width: 100%; max-height: calc(100vh - 130px); overflow-y: auto; padding-bottom: 14px; }
  .cdc-entete .navbar-nav { width: 100%; }
  .cdc-entete .nav-link { white-space: normal; }
  .cdc-entete .dropdown-menu { position: static; width: 100%; min-width: 0; box-shadow: none; margin: 4px 0 8px; }
  .cdc-entete .dropdown-item { white-space: normal; }
  .cdc-entete .navbar-collapse .cdc-btn { display: flex; width: 100%; }
}

/* avis : on les fait tourner au doigt */
.cdc-carrousel { touch-action: pan-y; }

@media (max-width: 767.98px) {
  /* actualites, articles, prestations, photos, etapes : defilement horizontal, la carte suivante depasse pour le montrer */
  .cdc-cartes, .cdc-galerie, .cdc-local-grille, .cdc-etapes:not(.cdc-etapes-liste), .cdc-article .art-services, .cdc-lire-aussi .grille {
    display: flex !important; grid-template-columns: none !important; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--cdc-defile-marge) * -1); margin-right: calc(var(--cdc-defile-marge) * -1);
    padding: 4px var(--cdc-defile-marge) 12px; scroll-padding-left: var(--cdc-defile-marge);
  }
  .cdc-cartes::-webkit-scrollbar, .cdc-galerie::-webkit-scrollbar, .cdc-local-grille::-webkit-scrollbar, .cdc-etapes::-webkit-scrollbar, .cdc-article .art-services::-webkit-scrollbar, .cdc-lire-aussi .grille::-webkit-scrollbar { display: none; }
  :root { --cdc-defile-marge: 22px; }
  .cdc-cartes > *, .cdc-local-grille > *, .cdc-etapes:not(.cdc-etapes-liste) > *, .cdc-article .art-services > *, .cdc-lire-aussi .grille > * { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; grid-column: auto !important; }
  .cdc-carte, .cdc-carte-large { display: flex !important; flex-direction: column; }
  .cdc-carte-large .cdc-carte-image, .cdc-carte .cdc-carte-image { aspect-ratio: 16 / 10; min-height: 0; }
  .cdc-carte-large .cdc-carte-corps { align-self: stretch; padding: 22px; }
  .cdc-galerie > button { flex: 0 0 78%; height: 240px; min-width: 0; scroll-snap-align: start; grid-column: auto !important; grid-row: auto !important; }

  /* page plus courte */
  .cdc-section { padding: 44px 0; }
  .cdc-carte-plan, #trouver .col-lg-7 .cdc-carte-plan, #trouver .col-lg-7 .cdc-carte-plan iframe { min-height: 240px; height: 240px; }
  .cdc-avis .cdc-diapo blockquote { font-size: 17px; }
  .cdc-top .cdc-w > div:not(:first-child) { display: none; }
  .cdc-telephone { display: none; }
  .cdc-horaires td { padding: 4px 0; }
  #formulaire .cdc-replie-bouton { margin-top: 8px; }
}
/* <<< mobile 03/11/2026 */

/* >>> legal 03/11/2026 */
.cdc-legal { max-width: 980px; margin: 0 auto; }
.cdc-legal-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.cdc-legal-carte { background: var(--cdc-blanc); border: 1px solid var(--cdc-trait); border-radius: 16px; padding: 26px 24px; text-align: center; box-shadow: 0 10px 30px rgba(13, 22, 32, .06); }
.cdc-legal-carte h2 { font-size: 22px; margin: 0 0 12px; }
.cdc-legal-carte p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--cdc-gris-texte); }
.cdc-legal-bloc { background: var(--cdc-blanc); border: 1px solid var(--cdc-trait); border-radius: 16px; padding: 38px 42px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(13, 22, 32, .06); }
.cdc-legal-bloc h2 { font-size: 30px; margin: 0 0 18px; text-align: center; }
.cdc-legal-bloc p, .cdc-legal-bloc li { color: var(--cdc-gris-texte); font-size: 16px; line-height: 1.7; }
.cdc-legal-bloc p { margin: 0 0 14px; }
.cdc-legal-bloc ul { margin: 0 0 14px; padding-left: 22px; }
.cdc-legal-bloc h3 { font-size: 19px; margin: 18px 0 8px; }
.cdc-legal-bloc details { border-top: 1px solid var(--cdc-trait); }
.cdc-legal-bloc details:last-child { border-bottom: 1px solid var(--cdc-trait); }
.cdc-legal-bloc summary { cursor: pointer; padding: 15px 30px 15px 0; font-weight: 700; color: var(--cdc-texte); list-style: none; position: relative; }
.cdc-legal-bloc summary::-webkit-details-marker { display: none; }
.cdc-legal-bloc summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 22px; color: var(--cdc-gris-titre); }
.cdc-legal-bloc details[open] summary::after { content: "\2212"; }
.cdc-legal-bloc details > *:last-child { margin-bottom: 16px; }
.cdc-carte-bientot { position: absolute; top: 14px; left: 14px; z-index: 3; background: var(--cdc-nuit); color: var(--cdc-blanc); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
#formulaire .row > .cdc-replie-bouton { width: calc(100% - var(--bs-gutter-x, 24px)); margin: 8px calc(var(--bs-gutter-x, 24px) / 2) 0; }
@media (max-width: 767.98px) {
  .cdc-legal-cartes { grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
  .cdc-legal-carte { padding: 20px 18px; }
  .cdc-legal-bloc { padding: 24px 18px; margin-bottom: 14px; }
  .cdc-legal-bloc h2 { font-size: 24px; text-align: left; }
  .cdc-legal-bloc p, .cdc-legal-bloc li { font-size: 15px; }
}
/* <<< legal 03/11/2026 */

/* >>> equipe 03/11/2026 */
.cdc-equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 32px; }
.cdc-equipier { margin: 0; background: var(--cdc-blanc); border: 1px solid var(--cdc-trait); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(13, 22, 32, .06); }
.cdc-equipier-photo { aspect-ratio: 4 / 5; background: var(--cdc-acier); display: grid; place-items: center; }
.cdc-equipier-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdc-equipier-photo span { color: var(--cdc-blanc); font-size: 54px; font-weight: 800; letter-spacing: .04em; }
.cdc-equipier figcaption { padding: 16px 18px 20px; }
.cdc-equipier b { display: block; font-size: 18px; color: var(--cdc-texte); }
.cdc-equipier figcaption span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--cdc-gris-texte); }
@media (max-width: 767.98px) {
  .cdc-equipe { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: -22px; margin-right: -22px; padding: 4px 22px 12px; scroll-padding-left: 22px; }
  .cdc-equipe::-webkit-scrollbar { display: none; }
  .cdc-equipier { flex: 0 0 66%; scroll-snap-align: start; }
}
/* <<< equipe 03/11/2026 */

/* >>> tableau article 03/11/2026 */
.art-table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15.5px; table-layout: fixed; }
.art-table th { background: var(--cdc-nuit); color: var(--cdc-blanc); padding: 10px 12px; text-align: left; }
.art-table td { padding: 10px 12px; border-bottom: 1px solid var(--cdc-trait); vertical-align: top; overflow-wrap: break-word; }
@media (max-width: 767.98px) {
  .art-table { font-size: 14px; }
  .art-table th, .art-table td { padding: 8px; }
  /* la colonne du texte ne s'elargit jamais a cause d'une rangee qui defile */
  .cdc-article .corps-art > *, .cdc-article .texte { min-width: 0; }
}
/* <<< tableau article 03/11/2026 */

/* >>> fleches 03/11/2026 */
.cdc-fleche { display: none; }
@media (max-width: 767.98px) {
  .cdc-defile { position: relative; }
  .cdc-carrousel { position: relative; }
  .cdc-fleche { display: grid; place-items: center; position: absolute; top: 50%; z-index: 6; width: 46px; height: 46px; margin-top: -23px; padding: 0; border: 0; border-radius: 50%; background: var(--cdc-blanc); color: var(--cdc-nuit); box-shadow: 0 6px 20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(13, 22, 32, .12); }
  .cdc-fleche[hidden] { display: none; }
  .cdc-fleche svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .cdc-fleche-droite { right: -8px; animation: cdc-fleche-appel 1.6s ease-in-out 3; }
  .cdc-fleche-gauche { left: -8px; }
  .cdc-fleche-avis { top: auto; bottom: 14px; margin: 0; width: 40px; height: 40px; animation: none; }
  .cdc-fleche-avis.cdc-fleche-droite { right: 14px; }
  .cdc-fleche-avis.cdc-fleche-gauche { left: auto; right: 62px; }
  .cdc-carrousel .cdc-diapo { padding-bottom: 46px; }
  @keyframes cdc-fleche-appel { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
}
@media (prefers-reduced-motion: reduce) { .cdc-fleche-droite { animation: none; } }
/* <<< fleches 03/11/2026 */

/* >>> entete mobile 03/11/2026 */
@media (max-width: 1199.98px) {
  .cdc-entete .navbar > .cdc-w { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; }
  .cdc-entete .cdc-logo { margin: 0 !important; }
  .cdc-entete .cdc-tel-haut { justify-self: center; white-space: nowrap; }
  .cdc-entete .navbar-toggler { justify-self: end; }
  .cdc-entete .navbar-collapse { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 767.98px) {
  .cdc-top .cdc-w { justify-content: center; text-align: center; }
}
@media (max-width: 400px) {
  .cdc-entete .cdc-logo img { width: 84px; height: auto; }
  .cdc-entete .cdc-tel-haut { font-size: 15px; gap: 4px; }
  .cdc-entete .cdc-tel-haut svg { width: 15px; height: 15px; }
  .cdc-entete .navbar-toggler { padding: 4px 8px; }
}
@media (max-width: 345px) {
  .cdc-entete .cdc-tel-haut { font-size: 13.5px; }
  .cdc-entete .cdc-tel-haut svg { display: none; }
}
/* <<< entete mobile 03/11/2026 */

/* >>> derniere rangee 03/11/2026 */
@media (min-width: 992px) {
  .cdc-cartes:has(.cdc-carte-large) > .cdc-carte:last-child:nth-child(9),
  .cdc-cartes:not(:has(.cdc-carte-large)) > .cdc-carte:last-child:nth-child(8) { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
  .cdc-cartes:has(.cdc-carte-large) > .cdc-carte:last-child:nth-child(8) { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; }
  .cdc-cartes > .cdc-carte:last-child:nth-child(8) .cdc-carte-image,
  .cdc-cartes > .cdc-carte:last-child:nth-child(9) .cdc-carte-image { aspect-ratio: auto; min-height: 100%; height: 100%; }
  .cdc-cartes > .cdc-carte:last-child:nth-child(8) .cdc-carte-image img,
  .cdc-cartes > .cdc-carte:last-child:nth-child(9) .cdc-carte-image img { width: 100%; height: 100%; object-fit: cover; }
  .cdc-cartes > .cdc-carte:last-child:nth-child(8) .cdc-carte-corps,
  .cdc-cartes > .cdc-carte:last-child:nth-child(9) .cdc-carte-corps { align-self: center; }
}
/* <<< derniere rangee 03/11/2026 */


/* >>> defilement horizontal ordinateur 17/11/2026 (prestations et photos, fleches sur tous les ecrans) */
@media (min-width: 768px) {
  .cdc-cartes, .cdc-galerie {
    display: flex !important; grid-template-columns: none !important; gap: var(--cdc-rail-ecart); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 16px; scroll-behavior: smooth;
  }
  .cdc-cartes::-webkit-scrollbar, .cdc-galerie::-webkit-scrollbar { display: none; }
  .cdc-cartes > * { flex: 0 0 calc((100% - var(--cdc-rail-ecart) * 2) / 3); min-width: 0; scroll-snap-align: start; grid-column: auto !important; }
  .cdc-cartes > .cdc-carte, .cdc-cartes > .cdc-carte-large { display: flex !important; flex-direction: column; }
  .cdc-cartes .cdc-carte-large .cdc-carte-image, .cdc-cartes .cdc-carte .cdc-carte-image { aspect-ratio: 16 / 10; min-height: 0; }
  .cdc-cartes .cdc-carte-large .cdc-carte-corps { align-self: stretch; padding: 22px; }
  .cdc-galerie > button { flex: 0 0 calc((100% - var(--cdc-rail-ecart) * 2) / 3); height: var(--cdc-rail-photo-h); min-width: 0; scroll-snap-align: start; grid-column: auto !important; grid-row: auto !important; }
  .cdc-defile { position: relative; }
  .cdc-fleche { display: grid; place-items: center; position: absolute; top: 50%; z-index: 6; width: 52px; height: 52px; margin-top: -26px; padding: 0; border: 0; border-radius: 50%;
    background: var(--cdc-blanc); color: var(--cdc-nuit); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(13, 22, 32, .12); transition: transform .2s ease; }
  .cdc-fleche:hover { transform: scale(1.08); }
  .cdc-fleche[hidden] { display: none; }
  .cdc-fleche svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .cdc-fleche-droite { right: -22px; }
  .cdc-fleche-gauche { left: -22px; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .cdc-cartes > *, .cdc-galerie > button { flex-basis: calc((100% - var(--cdc-rail-ecart)) / 2); }
  .cdc-fleche-droite { right: -10px; }
  .cdc-fleche-gauche { left: -10px; }
}
/* <<< defilement horizontal ordinateur 17/11/2026 */

/* 17/11/2026 : titres des encadres des articles (paragraphes, plus de h4 avant le premier h2) */
.cdc-article .art-titre-encadre { font-family: var(--cdc-police-titre); text-transform: uppercase; font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--cdc-nuit); }
