/* ==========================================================================
   Cargo-TMS — feuille de style du site (refonte 2026)
   Esprit : celui de la page Tarif (Outfit / DM Sans, ardoise, rouge de marque).
   Sommaire : 1 Variables · 2 Base · 3 Grille du contenu · 4 Barre de contact, en-tête, menu
              5 Bandeau de page & fil d'Ariane · 6 Boutons · 7 Sections de l'accueil
              8 Contenu éditorial · 9 Actualités & articles · 10 Rubrique · 11 Formulaire
              12 Pied de page · 13 Cookies, haut de page · 14 Responsive
   Les style="…" du contenu sont extraits au build dans /css/content.css (chargée avant celle-ci).
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  --brand: #dc2626;
  --brand-dark: #b91c1c;
  --brand-soft: #fef2f2;
  --amber: #f59e0b;
  --ink: #0f172a;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --text: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --soft-2: #f1f5f9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .06);
  --shadow: 0 12px 34px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  --font-title: "Outfit", "Segoe UI", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --container: 1240px;
  --header-h: 76px;
  /* compatibilité avec le contenu existant */
  --coral: var(--brand);
  --coral-dark: var(--brand-dark);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 16px/1.7 var(--font-body);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.site-wrapper { overflow-x: clip; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--ink); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
p { margin: 0 0 12px; }
strong, b { font-weight: 700; color: var(--ink); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 1.4em 0 .5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .85rem; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
table { border-collapse: collapse; max-width: 100%; border-radius: var(--radius-sm); overflow: hidden; }
td, th { padding: 8px 12px; border: 1px solid var(--line); }
th { background: var(--soft); color: var(--ink); }
iframe { max-width: 100%; border-radius: var(--radius-sm); }
blockquote { margin: 20px 0; padding: 16px 22px; border-left: 3px solid var(--brand); background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
::selection { background: rgba(220, 38, 38, .18); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.text-center { text-align: center; }
.clearfix::after { content: ""; display: table; clear: both; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 1000; }
svg { fill: currentColor; }

/* 3. Grille du contenu (issue de l'ancien site, inchangée) ------------------
   <section class="row"> > .row-inner > .col.col-N (N sur 12) */
.page-content { padding-top: 40px; padding-bottom: 56px; }
.row { margin: 0 -15px; }
.row-inner { display: flex; flex-wrap: wrap; }
.row-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(0px, calc(50vw - 50% - 15px));
  padding-right: max(0px, calc(50vw - 50% - 15px));
}
.row.gap-10 { margin-left: -10px; margin-right: -10px; } .gap-10 > .row-inner > .col { padding: 0 10px; }
.row.gap-20 { margin-left: -20px; margin-right: -20px; } .gap-20 > .row-inner > .col { padding: 0 20px; }
.row.gap-30 { margin-left: -30px; margin-right: -30px; } .gap-30 > .row-inner > .col { padding: 0 30px; }
.row.gap-35 { margin-left: -35px; margin-right: -35px; } .gap-35 > .row-inner > .col { padding: 0 35px; }
.col { padding: 0 15px; width: 100%; min-width: 0; }
.col-1 { width: 8.3333%; } .col-2 { width: 16.6667%; } .col-3 { width: 25%; }
.col-4 { width: 33.3333%; } .col-5 { width: 41.6667%; } .col-6 { width: 50%; }
.col-7 { width: 58.3333%; } .col-8 { width: 66.6667%; } .col-9 { width: 75%; }
.col-10 { width: 83.3333%; } .col-11 { width: 91.6667%; } .col-12 { width: 100%; }
.spacer { display: block; width: 100%; }
/* colonnes Bootstrap héritées de WordPress (pages SEO, articles) */
.row > [class*="col-md-"]:not(.col) { width: 100%; padding: 0 15px; }
@media (min-width: 992px) {
  .col-md-1 { width: 8.3333%; } .col-md-2 { width: 16.6667%; } .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; } .col-md-5 { width: 41.6667%; } .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.3333%; } .col-md-8 { width: 66.6667%; } .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.3333%; } .col-md-11 { width: 91.6667%; } .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
  .col-lg-1 { width: 8.3333%; } .col-lg-2 { width: 16.6667%; } .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; } .col-lg-5 { width: 41.6667%; } .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.3333%; } .col-lg-8 { width: 66.6667%; } .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.3333%; } .col-lg-11 { width: 91.6667%; } .col-lg-12 { width: 100%; }
}

/* 4. Barre de contact, en-tête, menu -------------------------------------- */
.topbar { background: var(--navy); color: #cbd5e1; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: flex-end; gap: 24px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.nav-wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { display: block; height: 52px; width: auto; }
.site-navigation { margin-left: auto; }
.site-navigation > ul { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; gap: 2px; }
.site-navigation li { position: relative; }
.site-navigation a { display: block; white-space: nowrap; color: var(--ink); }
.site-navigation > ul > li > a {
  font: 600 15px/1 var(--font-title); padding: 12px 13px; border-radius: 8px;
}
.site-navigation > ul > li.has-children > a > span::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.site-navigation > ul > li:hover > a, .site-navigation > ul > li:focus-within > a { background: var(--soft-2); color: var(--ink); }
.site-navigation > ul > li.is-current > a { color: var(--brand); }
.sub-menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.site-navigation li:hover > .sub-menu, .site-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { font: 500 14.5px/1.35 var(--font-body); padding: 9px 12px; border-radius: 8px; white-space: normal; color: var(--text); }
.sub-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.header-cta { flex: none; }
.navbar-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.navbar-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.navbar-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Bandeau de page & fil d'Ariane --------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; color: #cbd5e1;
  background: radial-gradient(1200px 400px at 85% -40%, rgba(220, 38, 38, .35), transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 34px 0 46px;
}
.page-hero h1, .page-hero .page-title {
  font: 700 clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem)/1.15 var(--font-title); letter-spacing: -.02em;
  color: #fff; margin: 14px 0 0; max-width: 900px;
}
.page-hero-compact { padding: 18px 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; }
.breadcrumb li { color: #94a3b8; }
.breadcrumb li + li::before { content: "›"; margin: 0 9px; color: #64748b; }
.breadcrumb a { color: #cbd5e1; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* 6. Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1.2 var(--font-title); letter-spacing: .01em; text-transform: none;
  color: #fff; background: var(--brand); border: 0; border-radius: 10px;
  padding: 13px 24px; cursor: pointer; text-align: center;
  box-shadow: 0 6px 18px rgba(220, 38, 38, .25);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(220, 38, 38, .32); }
.btn-sm { font-size: 14px; padding: 10px 18px; }
.btn-md { font-size: 15px; }
.btn-lg { font-size: 16.5px; padding: 16px 30px; border-radius: 12px; }
.btn-primary { background: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.btn-white:hover { background: var(--soft); color: var(--brand-dark); }
.btn.style-4, .btn-link {
  background: none; box-shadow: none; padding: 0; border-radius: 0; margin-top: 6px;
  color: var(--brand); font-weight: 600; text-transform: none;
}
.btn.style-4::after, .btn-link::after { content: "\2192" / ""; display: inline-block; margin-left: 6px; transition: transform .2s; }
.btn.style-4:hover, .btn-link:hover { background: none; box-shadow: none; transform: none; color: var(--brand-dark); }
.btn.style-4:hover::after, .btn-link:hover::after { transform: translateX(4px); }

/* 7. Sections de l'accueil ------------------------------------------------ */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #cbd5e1; }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-top: 0; }
.eyebrow {
  display: inline-block; font: 600 13px/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 8px 12px; border-radius: 999px; margin-bottom: 14px;
}

.home-hero {
  position: relative; isolation: isolate; color: #e2e8f0;
  background: var(--navy) center 35% / cover no-repeat;
  padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 12vw, 160px);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(15, 23, 42, .93) 0%, rgba(15, 23, 42, .78) 42%, rgba(15, 23, 42, .3) 100%), linear-gradient(0deg, rgba(15, 23, 42, .55), transparent 40%);
}
.home-hero h1 { color: #fff; margin: 0 0 18px; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.home-hero h1 .kicker { display: block; font-weight: 400; font-size: .55em; letter-spacing: -.01em; color: #fca5a5; margin-bottom: 10px; }
.home-hero h1 strong { color: #fff; font-weight: 800; }
.home-hero p { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); color: #cbd5e1; margin: 0 0 34px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.home-hero .container { max-width: var(--container); }
.home-hero-inner { max-width: 640px; }

.intro { text-align: center; }
.intro .lead-text { font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: 88px; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.split-body h3 { margin-top: 0; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }

.feature-band {
  position: relative; isolation: isolate; color: #cbd5e1;
  background: var(--navy) center / cover no-repeat;
}
.feature-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 23, 42, .93), rgba(30, 41, 59, .90)); }
.feature-band .section-head h2 { color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
  transition: transform .25s, background .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(252, 165, 165, .45); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand), #f97316); color: #fff; box-shadow: 0 10px 24px rgba(220, 38, 38, .35);
}
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { color: #fff; font-size: 1.15rem; margin: 0 0 10px; }
.feature-card h3 span { display: block; font-weight: 500; color: #fca5a5; }
.feature-card p { color: #cbd5e1; font-size: .96rem; flex: 1; }
.feature-card .btn-link { color: #fca5a5; margin-top: 8px; }
.feature-card .btn-link:hover { color: #fff; }

.adapt {
  position: relative; isolation: isolate; background: #fff right center / auto 100% no-repeat;
}
.adapt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #fff 0%, #fff 45%, rgba(255, 255, 255, .55) 75%, rgba(255, 255, 255, .15) 100%); }
.adapt-body { max-width: 600px; }
.adapt h2 { margin-top: 0; }
.adapt h2 .eyebrow { display: table; margin-bottom: 16px; }

.showcase { text-align: center; padding-bottom: 0; overflow: hidden; }
.showcase h2 { margin-top: 0; }
.showcase p { max-width: 640px; margin: 0 auto 28px; }
.showcase-img { display: block; width: min(1100px, 100%); margin: 56px auto 0; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-lg); }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s;
}
.t-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.t-logo { display: flex; align-items: center; height: 64px; margin-bottom: 18px; }
.t-logo img { max-height: 64px; max-width: 160px; width: auto; object-fit: contain; }
.t-card blockquote { margin: 0; padding: 0; border: 0; background: none; flex: 1; position: relative; }
.t-card blockquote::before { content: "\201C" / ""; position: absolute; top: -18px; right: 0; font: 700 64px/1 Georgia, serif; color: var(--brand-soft); }
.t-card blockquote p { font-size: .98rem; color: var(--text); }
.t-card figcaption { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.45; }
.t-card figcaption strong { display: block; font-family: var(--font-title); font-size: 1rem; }
.t-card figcaption span { display: block; color: var(--muted); }
.t-card figcaption .t-company { color: var(--ink); font-weight: 600; }

.cta-band {
  text-align: center; color: #fee2e2;
  background: radial-gradient(900px 300px at 50% -20%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, var(--brand), #9f1239);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p, .cta-band li { color: #fee2e2; }
.checklist { list-style: none; padding: 0; margin: 24px auto 34px; display: grid; gap: 10px; max-width: 640px; text-align: left; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* 8. Contenu éditorial ---------------------------------------------------- */
.page-content img, .blog-single img { border-radius: var(--radius-sm); }
.page-content p a:not([class]), .blog-single p a:not([class]), .page-content li a:not([class]), .blog-single li a:not([class]) {
  color: var(--brand); text-decoration: underline; text-decoration-color: rgba(220, 38, 38, .35); text-underline-offset: 3px;
}
.page-content li::marker, .blog-single li::marker { color: var(--brand); }
figure { margin: 0 0 18px; }
.alignleft { float: left; margin: 0 28px 14px 0; max-width: 45%; }
.alignright { float: right; margin: 0 0 14px 28px; max-width: 45%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
img.aligncenter { margin-bottom: 14px; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.page-content::after, .blog-single article::after { content: ""; display: table; clear: both; }

/* Pages de contenu SEO (bloc .cargo-tms-content) : colonne de lecture */
.cargo-tms-content { max-width: 860px; margin: 0 auto; font-size: 1.04rem; }
.cargo-tms-content h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); margin-top: 0; }
.cargo-tms-content h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); padding-top: 8px; }
.cargo-tms-content h3 { font-size: 1.25rem; }
.cargo-tms-content .lead { font-size: 1.18rem; color: var(--ink); }
.cargo-tms-content ul { padding-left: 0; list-style: none; }
.cargo-tms-content ul li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.cargo-tms-content ul li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.cargo-tms-content hr { margin: 44px 0; }
.cta-block {
  margin: 28px 0; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #cbd5e1;
}
.cta-block small { display: block; margin-top: 10px; color: #94a3b8; }
.cta-block p strong { color: #fff; font-family: var(--font-title); font-size: 1.15rem; }
.cta-block .cta-secondary { display: inline-block; margin-left: 18px; color: #fff; font-weight: 600; text-decoration: none; }
.cta-block .cta-secondary:hover { color: #fca5a5; }
.cargo-tms-content .photo-grid { margin: 20px 0 8px; }
.cta-block br { display: none; }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; margin: 10px 0; background: #fff; }
details[open] { box-shadow: var(--shadow-sm); }
summary { list-style: none; cursor: pointer; font: 600 1.02rem/1.4 var(--font-title); color: var(--ink); padding: 16px 28px 16px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
.lead { font-size: 1.12rem; }

/* Page Actualités : bannière d'écrans au-dessus de l'introduction */
.page-actualites-transport .page-content > .row:first-child { margin-bottom: 36px; border-radius: var(--radius); }

/* Grille de photos cliquables (équipe) */
.photo-grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 20px; margin: 0 0 20px; }
.photo-card { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; border-radius: 0; }
.photo-card:hover img { transform: scale(1.05); }

/* 9. Actualités & articles ------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 10px 0 30px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform .4s; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-card h2, .post-card h3 { font-size: 1.18rem; line-height: 1.3; margin: 8px 0 10px; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--brand); }
.post-card p { font-size: .94rem; color: var(--muted); margin: 0; }

.blog-single { padding: 48px 0 24px; }
.blog-single article { max-width: 820px; margin: 0 auto; font-size: 1.04rem; }
.blog-single article header { margin-bottom: 30px; text-align: center; }
.blog-single article header img { margin: 0 auto 26px; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.blog-single h1.single-blog { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); margin: 0 0 12px; }
.blog-single article header ul { list-style: none; padding: 0; margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.blog-single article header li::marker { content: ""; }
.blog-single article header .fa { margin-right: 6px; }
.blog-single article hr { width: 72px; margin: 36px auto; border-top: 3px solid var(--brand); opacity: .5; border-radius: 3px; }
.fa-calendar::before { content: "\1F4C5"; font-style: normal; font-size: .9em; }

/* 10. Rubrique & articles liés (maillage interne) -------------------------- */
.rubrique, .related { background: var(--soft); border-top: 1px solid var(--line); padding: 40px 0 46px; }
.rubrique-title { font: 700 13px/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.rubrique-title a { color: inherit; }
.rubrique ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rubrique a {
  display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 500; color: var(--ink); transition: border-color .15s, color .15s, box-shadow .15s;
}
.rubrique a:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }
.related .post-grid { margin-bottom: 0; }

/* 11. Formulaire de contact ----------------------------------------------- */
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-form label { display: block; font: 600 14.5px/1.4 var(--font-body); color: var(--ink); margin-bottom: 7px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel],
.contact-form select, .contact-form textarea {
  width: 100%; font: 15.5px var(--font-body); color: var(--ink); background: var(--soft);
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 14px; height: 46px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.contact-form textarea { height: 200px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 0; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}
.contact-form .consent label { font-weight: 400; display: block; position: relative; padding-left: 28px; line-height: 1.5; color: var(--text); }
.contact-form .consent input { position: absolute; left: 0; top: 4px; margin: 0; accent-color: var(--brand); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .actions { text-align: right; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.contact-form .form-status { margin-top: 12px; font-weight: 700; }
.contact-form .form-status.is-ok { color: #15803d; }
.contact-form .form-status.is-error { color: var(--brand-dark); }

/* 12. Pied de page -------------------------------------------------------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); color: var(--text); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; padding-top: 60px; padding-bottom: 44px; }
.footer-logo img { height: 52px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { font: 600 1.05rem/1.4 var(--font-title); color: var(--ink); }
.footer-brand address { font-style: normal; line-height: 1.8; }
.footer-title { font: 700 13px/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.footer-title a { color: inherit; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; line-height: 1.4; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); font-size: 14px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* 13. Cookies, haut de page ----------------------------------------------- */
.scrollup {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; z-index: 40;
  display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s, background .2s;
}
.scrollup svg { width: 24px; height: 24px; }
.scrollup.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.scrollup:hover { background: var(--brand); color: #fff; }
.cookie-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 999; max-width: 560px;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--navy); color: #e2e8f0; border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-lg);
  font: 14px/1.5 var(--font-body);
}
.cookie-notice.is-open { display: flex; }
.cookie-notice button { background: #fff; color: var(--ink); border: 0; border-radius: 8px; font: 600 14px var(--font-title); padding: 9px 18px; cursor: pointer; flex: none; }
.cookie-notice button:hover { background: var(--brand); color: #fff; }

/* 14. Responsive ---------------------------------------------------------- */
@media (max-width: 1240px) {
  .site-navigation > ul > li > a { padding: 12px 9px; font-size: 14.5px; }
  .nav-wrap { gap: 16px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .navbar-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .site-navigation {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15, 23, 42, .12);
    max-height: calc(100vh - var(--header-h)); overflow: auto; display: none; padding: 10px 16px 18px;
  }
  .site-navigation.is-open { display: block; }
  .site-navigation > ul { display: block; }
  .site-navigation > ul > li > a { padding: 14px 8px; font-size: 16px; border-radius: 8px; }
  .site-navigation > ul > li + li { border-top: 1px solid var(--line); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 10px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .site-logo img { height: 44px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .topbar .container { justify-content: center; gap: 16px; }
  .header-cta { padding: 9px 14px; font-size: 13.5px; }
  .section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split + .split { margin-top: 56px; }
  .feature-grid, .testimonials, .post-grid, .photo-grid { grid-template-columns: 1fr; }
  .sub-menu { grid-template-columns: 1fr; }
  .adapt { background-image: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11 { width: 100%; }
  .row-inner > .col + .col { margin-top: 20px; }
  .alignleft, .alignright { float: none; margin: 0 0 16px; }
  .contact-form { padding: 22px 18px; }
  .cookie-notice { right: 16px; max-width: none; flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .topbar a:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .home-hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
