/*
Theme Name: Tocndix
Theme URI: https://tocndix.com/
Author: Tocndix
Description: Thème du site Tocndix (refonte 2026) — design « Blueprint + grand format », FR/EN avec WPML, compatible Yoast SEO et Contact Form 7. Affiche aussi les anciennes pages et articles faits avec Divi.
Version: 1.0.18
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tocndix
License: Proprietary
*/

/* Tocndix — direction « Blueprint + grand format ».
   Mise en page : bandes pleine largeur alternant bleu nuit quadrillé, blanc et aplats bleu logo ; contenu 1320px ; angles droits.
   Look unique assumé (pas de variante sombre/claire) : chaque bande fixe ses propres couleurs. */
:root {
  --navy: #0B1530;
  --navy-2: #111D40;
  --grid: #1A2A55;
  --line-dark: #3A4E86;
  --blue: #5D7EE8;
  --blue-ink: #2F49B8;
  --sky: #BFD0FF;
  --label: #8FA8F5;
  --paper: #FFFFFF;
  --ink: #0B1530;
  --ink-muted: #4B4E63;
  --line-light: #C9D2EA;
  --soft-text: #B5C1E3;
  --font: 'Albert Sans', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--navy); color: #EEF2FF; font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--sky); }
a:hover { color: #FFFFFF; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 7.2vw, 104px); line-height: 0.98; font-weight: 200; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; font-weight: 200; letter-spacing: -0.03em; }
h1 strong, h2 strong, h1 b, h2 b { font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
p { margin: 0; }

/* Bands: each sets its own palette through local variables */
.band, .page-hero, .cta, .logos-band, .site-footer {
  --fg: #EEF2FF; --muted: var(--soft-text); --line: var(--line-dark); --card: transparent; --tag-bg: #1D2B59; --tag-fg: var(--sky); --eyebrow: var(--label);
  color: var(--fg);
}
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 104px; background-color: var(--navy); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; }
.band.tight { padding-block: 64px; }
.band.dark { background: var(--navy); }
.band.surface { background: var(--paper); --fg: var(--ink); --muted: var(--ink-muted); --line: var(--line-light); --card: var(--paper); --tag-bg: #E3E9FC; --tag-fg: var(--blue-ink); --eyebrow: var(--blue-ink); }
.band.surface a { color: var(--blue-ink); }
.band.surface a:hover { color: var(--ink); }
.band.accent, .cta { background: var(--blue); --fg: var(--ink); --muted: var(--ink); --line: var(--ink); --eyebrow: var(--ink); --tag-bg: var(--ink); --tag-fg: #FFFFFF; }
.band.accent a { color: var(--ink); }

.stack { display: flex; flex-direction: column; gap: 22px; }
.stack.lg { gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.row > * { flex: 1 1 420px; min-width: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }

.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyebrow); }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.note { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Prototype bar + header */
.proto-unused { background: #000000; color: var(--soft-text); font-family: var(--mono); font-size: 12px; text-align: center; padding-block: 7px; position: relative; z-index: 2; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid #22356A; background: var(--navy); }
.home-hero .site-header { background: transparent; border-bottom: 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 18px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 30px; font-size: 15px; font-weight: 600; }
.main-nav a { color: #FFFFFF; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--sky); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { font-family: var(--mono); font-size: 13px; color: var(--sky); text-decoration: none; }

/* Buttons: square corners */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: 0; font-weight: 800; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue); color: var(--navy); }
.btn-primary:hover { background: var(--sky); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--fg, #FFFFFF); border-color: currentColor; font-weight: 600; }
.btn-secondary:hover { color: var(--blue); }
.band.surface .btn-secondary { color: var(--ink); }
.btn-light { background: var(--navy); color: #FFFFFF; }
.btn-light:hover { background: #000000; color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--navy); }
.btn-white:hover { background: var(--sky); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Home hero: full-bleed photo + blueprint grid */
.home-hero { position: relative; background: var(--navy); overflow: hidden; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; max-width: none; }
.home-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.home-hero .inner { position: relative; z-index: 1; padding-block: 112px 104px; display: flex; flex-direction: column; gap: 32px; }
.home-hero h1 { color: #FFFFFF; max-width: 21ch; }
.home-hero .sub { font-size: 18px; color: #DDE3F5; max-width: 460px; }

/* Page hero (inner pages) */
.page-hero { background-color: var(--navy); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; padding-block: 88px 80px; border-bottom: 1px solid #22356A; }
.page-hero h1 { font-size: clamp(40px, 6vw, 84px); max-width: 18ch; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--label); letter-spacing: 0.06em; }
.crumbs a { color: var(--label); }
.subnav { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-dark); align-self: flex-start; }
.subnav a { padding: 10px 16px; font-size: 14px; font-weight: 600; text-decoration: none; color: #FFFFFF; border-right: 1px solid var(--line-dark); }
.subnav a:last-child { border-right: 0; }
.subnav a[aria-current="page"] { background: var(--blue); color: var(--navy); }

/* Logos band */
.logos-band { background: #000000; }
.logos-band .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 56px; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: #FFFFFF; }
.logos-band .eyebrow { color: var(--label); }

/* Offer diagram */
.orbit { position: relative; flex: 0 1 520px; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin-inline: auto; }
.orbit .ring { position: absolute; inset: 12%; border: 1px dashed #4A63A8; border-radius: 50%; }
.orbit .ring.inner { inset: 30%; border: 1px solid #22356A; }
.orbit .hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--blue); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 8px; }
.orbit .hub strong { font-size: clamp(13px, 1.6vw, 18px); line-height: 1.15; }
.orbit .node { position: absolute; transform: translate(-50%, -50%); background: var(--navy); border: 1px solid var(--blue); padding: 10px 14px; text-align: center; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.orbit .node strong { font-size: 15px; }
.orbit .node span, .orbit .hub span { font-family: var(--mono); font-size: 11px; color: var(--label); }
.orbit .hub span { color: var(--navy); }
.orbit .n1 { left: 50%; top: 12%; } .orbit .n2 { left: 86%; top: 50%; } .orbit .n3 { left: 50%; top: 88%; } .orbit .n4 { left: 14%; top: 50%; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 22px; padding-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "Étape 0" counter(step); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eyebrow); }
.steps h3 { font-size: 24px; }
.steps .who { font-size: 14px; color: var(--muted); }
.steps .who b { color: var(--fg); }

/* Big numbers */
.stats { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.stat { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.stat b { font-size: clamp(64px, 7vw, 96px); font-weight: 200; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { font-weight: 600; }

/* Expertise rows */
.rows { display: flex; flex-direction: column; }
.rows a { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; padding-block: 30px; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.rows a:last-child { border-bottom: 1px solid var(--line); }
.rows a > span:first-child { font-size: clamp(30px, 3.8vw, 52px); font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; }
.rows a > span:last-child { font-family: var(--mono); font-size: 13px; color: var(--label); }
.rows a:hover > span:first-child { font-weight: 400; }

/* Cards */
.card { border: 1px solid var(--line); background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card.flat { padding: 22px; gap: 8px; }
.card.hl { border: 2px solid var(--blue); }
.card ul { margin: 0; padding-left: 18px; line-height: 1.8; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.icon { width: 30px; height: 30px; color: var(--blue); }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--tag-bg); color: var(--tag-fg); padding: 5px 10px; }

/* Cases with tall photos */
.case { display: flex; flex-direction: column; gap: 14px; color: var(--fg); }
.case .photo { height: 440px; }
.case .body { display: flex; flex-direction: column; gap: 10px; }
.case .tag { background: transparent; color: var(--label); padding: 0; }
.case h3 { font-size: 24px; font-weight: 600; }
.case p { color: var(--muted); font-size: 15px; }
.photo { overflow: hidden; background: var(--navy-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.h260 { height: 300px; } .photo.h320 { height: 340px; } .photo.h420 { height: 480px; }

.case-light { border: 1px solid var(--line); display: flex; flex-direction: column; background: var(--card); }
.case-light .photo { height: 220px; }
.case-light .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.case-light dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.case-light dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--eyebrow); padding-top: 2px; }
.case-light dd { margin: 0; color: var(--muted); }

.sector { text-decoration: none; color: var(--fg); border: 1px solid var(--line); display: flex; flex-direction: column; background: var(--card); }
.sector .photo { height: 160px; }
.sector span { padding: 14px 16px; font-weight: 700; }
.sector:hover { border-color: var(--blue); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { border: 1px solid var(--line); padding: 9px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.partner-logos { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; background: #FFFFFF; padding: 16px 22px; align-self: flex-start; }
.partner-logos img { height: 30px; width: auto; }
.partner-logos img.academy { height: 46px; }
.partner-logos .only-dark { display: none; }

/* Layer diagram */
.layers { display: flex; flex-direction: column; gap: 10px; }
.layer { border: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; background: var(--navy); }
.layer small { font-family: var(--mono); font-size: 11px; color: var(--label); text-transform: uppercase; letter-spacing: 0.08em; }
.layer.main { background: var(--blue); border-color: var(--blue); color: var(--navy); }
.layer.main small, .layer.main .small { color: var(--navy); }
.arrow { align-self: center; color: var(--label); line-height: 1; }
.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.systems div { border: 1px solid var(--line); padding: 14px 8px; text-align: center; font-weight: 700; background: var(--navy); }
.systems div:first-child { background: #FFFFFF; color: var(--navy); border-color: #FFFFFF; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 500; list-style: none; padding: 0; margin: 0; }
.checks li { display: inline-flex; align-items: center; gap: 10px; }
.checks li::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex-shrink: 0; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--eyebrow); }
tr:last-child td { border-bottom: 0; }

/* Quote */
.quote { max-width: 980px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; font-weight: 300; letter-spacing: -0.01em; }

/* FAQ */
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); padding-block: 22px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 20px; font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Form */
.form { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--label); }
.field input, .field textarea, .field select { font: inherit; color: #FFFFFF; background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 0; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.form-status { font-weight: 700; color: var(--sky); }

/* CTA + footer */
.cta { padding-block: 96px; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1; }
.cta p { color: var(--muted); font-size: 18px; }
.site-footer { background: #000000; font-size: 14px; }
.site-footer .wrap { padding-block: 64px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); line-height: 1.9; color: var(--soft-text); }
.site-footer strong { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--label); display: block; margin-bottom: 6px; }
.site-footer a { color: var(--soft-text); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer .logo img { height: 30px; }

.only-light { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 720px) {
  .band { padding-block: 64px; } .page-hero { padding-block: 56px; } .home-hero .inner { padding-block: 56px 64px; }
  .case .photo { height: 300px; } .photo.h420 { height: 280px; }
  .orbit .node { padding: 6px 8px; } .orbit .node strong { font-size: 12px; } .orbit .node span { display: none; }
}
.band.accent .btn-light, .cta .btn-light { color: #FFFFFF; }
.band.accent .btn-light:hover, .cta .btn-light:hover { color: #FFFFFF; background: #000000; }

/* Mobile menu + logos band */
.menu-btn { display: none; margin-left: auto; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; background: transparent; color: #FFFFFF; border: 1px solid var(--line-dark); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .site-header .main-nav, .site-header .header-actions { display: none; }
  .site-header.open .main-nav { display: flex; flex-direction: column; gap: 0; width: 100%; padding-top: 8px; }
  .site-header.open .main-nav a { padding-block: 12px; border-bottom: 1px solid #22356A; }
  .site-header.open .main-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
  .site-header.open .header-actions { display: flex; width: 100%; justify-content: space-between; padding-block: 8px 4px; }
  .home-hero .site-header.open { background: var(--navy); }
  .logos-band .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; font-size: 20px; }
  .logos-band .wrap > .eyebrow { grid-column: 1 / -1; }
}
.band.surface .btn-primary, .band.surface .btn-primary:hover { color: var(--navy); }
.home-hero h1 { font-size: clamp(42px, 6.2vw, 88px); }
.hero-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 24px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.18); max-width: 760px; }
.hero-partners img { height: 26px; width: auto; }
.hero-partners span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }


/* ===== WordPress integration ===== */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #FFFFFF; color: var(--ink); padding: 8px 12px; }
.skip-link:focus { left: 8px; top: 8px; }
.site-header.over-hero { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; }
.admin-bar .site-header.over-hero { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.over-hero { top: 46px; } }
.site-header.over-hero + * , main > .home-hero .inner { }
.tocndix-designed main > .home-hero:first-child .inner { padding-top: 190px; }
.main-nav a, .main-nav .menu-item a { color: #FFFFFF; }
.main-nav .menu-item { list-style: none; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.band.surface .card-link { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 28px; margin-top: 28px; border-top: 1px solid #22356A; font-size: 13px; color: var(--soft-text); }
.footer-legal a { color: var(--soft-text); }

/* Long-form content (posts, legal pages, legacy content) */
.prose { max-width: 820px; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 300; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose h4 { font-size: 18px; margin: 1.3em 0 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose img { height: auto; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 4px solid var(--blue); }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line-light); padding: 8px 10px; text-align: left; }
.band.surface .prose, .band.surface .dv-text { color: var(--ink); }
.post-hero h1.post-title { font-size: clamp(36px, 5vw, 64px); max-width: 24ch; }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.post-card .post-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.pager .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.pager .page-numbers { padding: 6px 12px; border: 1px solid var(--line-light); text-decoration: none; }
.pager .page-numbers.current { background: var(--ink); color: #FFFFFF; }

/* Legacy Divi content rendered by the theme */
.legacy .dv-hero h1, .legacy .dv-hero h2 { color: #FFFFFF; }
.legacy .dv-hero h4 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); font-weight: 500; margin: 0 0 16px; }
.legacy .dv-hero .dv-text h1 { font-size: clamp(40px, 6vw, 84px); max-width: 18ch; }
.dv-wrap > .dv-row + .dv-row { margin-top: 40px; }
.dv-row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.dv-col { flex: 1 1 0; min-width: 260px; display: flex; flex-direction: column; gap: 20px; }
.dv-col-4_4 { flex-basis: 100%; }
.dv-col-2_3, .dv-col-3_4 { flex-grow: 2; }
.dv-text > * + * { margin-top: 0.9em; }
.dv-text h1 { font-size: clamp(36px, 5vw, 64px); }
.dv-text h2 { font-size: clamp(28px, 3.6vw, 44px); }
.dv-text h3 { font-size: 22px; }
.dv-text ul, .dv-text ol { padding-left: 1.3em; margin: 0; }
.dv-text a { text-decoration: underline; }
.dv-figure { margin: 0; }
.dv-figure img, .dv-blurb img { height: auto; }
.dv-blurb { display: flex; flex-direction: column; gap: 10px; }
.dv-blurb img { max-width: 120px; }
.dv-team img { max-width: 180px; }
.dv-divider { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
.dv-spacer { height: 8px; }
.dv-toggle { border-bottom: 1px solid var(--line); padding: 14px 0; }
.dv-toggle summary { cursor: pointer; font-weight: 700; }
.dv-toggle > div { margin-top: 10px; }
.dv-stat { display: flex; flex-direction: column; }
.dv-stat-n { font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; }
.dv-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.dv-gallery img { width: 100%; height: auto; }
.dv-video iframe, .dv-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.dv-social { margin-right: 14px; }
.dv-list { padding-left: 1.2em; }
.dv-badge .tag { margin-left: 8px; }

/* Contact Form 7 */
.form-wrap .wpcf7-form { display: grid; gap: 16px; }
.form-wrap .wpcf7-form p { margin: 0; }
.form-wrap label { display: block; font-size: 14px; font-weight: 600; }
.form-wrap input[type="text"], .form-wrap input[type="email"], .form-wrap input[type="tel"], .form-wrap select, .form-wrap textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: 0; font: inherit; background: #FFFFFF; color: var(--ink); }
.form-wrap textarea { min-height: 150px; }
.form-wrap input[type="submit"] { justify-self: start; cursor: pointer; padding: 14px 24px; border: 0; border-radius: 0; background: var(--blue); color: var(--ink); font: inherit; font-weight: 700; }
.form-wrap .wpcf7-response-output { margin: 0; padding: 10px 12px; }
.band:not(.surface) .form-wrap label { color: #EEF2FF; }

/* Small phones: never wider than the screen */
html, body { overflow-x: clip; }
.row > * { min-width: 0; }

/* Bandeau cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { pointer-events: auto; max-width: 880px; width: 100%; background: var(--navy); color: #EEF2FF; border: 1px solid var(--line-dark); box-shadow: 0 12px 40px rgba(0,0,0,.35); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.cookie-inner p { margin: 0; flex: 1 1 380px; min-width: 0; font-size: 15px; line-height: 1.5; color: var(--soft-text); }
.cookie-inner p strong { color: #FFFFFF; margin-right: 4px; }
.cookie-inner a { color: var(--sky); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 44px; padding: 10px 20px; }
.cookie-actions .btn-secondary { color: #FFFFFF; }
/* Longues adresses dans les anciens contenus : retour à la ligne sur mobile */
.legacy a, .prose a, .dv-text a, .legacy p, .prose p { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-inner { padding: 14px 16px; gap: 12px; }
  .cookie-inner p { font-size: 13px; line-height: 1.45; flex-basis: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 0; min-height: 40px; padding: 8px 12px; font-size: 15px; }
}

/* Formulaire « Laissez-nous un message » en pied de page */
.site-footer .wrap.footer-message { padding-block: 56px 0; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: start; line-height: 1.6; }
.footer-message-title { font-size: 28px; line-height: 1.2; font-weight: 300; color: #FFFFFF; margin: 4px 0 8px; }
.footer-message p { margin: 0 0 8px; }
.footer-form .wpcf7-form { gap: 12px; }
.footer-form input[type="email"], .footer-form textarea { margin-top: 0; background: #0B1530; color: #FFFFFF; border-color: #3A4E86; }
.footer-form input::placeholder, .footer-form textarea::placeholder { color: #8FA8F5; }
.footer-form textarea { min-height: 96px; height: 96px; }
.footer-form input[type="submit"] { justify-self: end; }
.footer-form .wpcf7-response-output { color: #EEF2FF; }
.footer-form .wpcf7-not-valid-tip { color: #FF9B9B; font-size: 13px; }
.footer-form .wpcf7-form-control-wrap { display: block; margin-bottom: 12px; }
.footer-form br { display: none; }
.site-footer .wrap.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px 32px; line-height: 1.6; }
/* Vidéos YouTube : vignette cliquable, la vidéo ne se charge qu'au clic */
.yt-facade, .yt-frame { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; background: rgba(11,21,48,.85); border-radius: 12px; }
.yt-play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #FFFFFF; }
.yt-facade:hover .yt-play { background: var(--blue); }

/* Échelle générale plus compacte (retours Sarah et Joël, 15/11) */
h1 { font-size: clamp(34px, 4.8vw, 68px); }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: 20px; }
.home-hero h1 { font-size: clamp(36px, 4.8vw, 64px); }
.page-hero h1, .legacy .dv-hero .dv-text h1 { font-size: clamp(32px, 4.2vw, 56px); }
.post-hero h1.post-title { font-size: clamp(30px, 4vw, 50px); }
.cta h2 { font-size: clamp(28px, 3.6vw, 48px); }
.stat b { font-size: clamp(44px, 5vw, 64px); }
.rows a > span:first-child { font-size: clamp(22px, 2.6vw, 34px); }
.steps h3, .case h3 { font-size: 20px; }
.quote blockquote { font-size: clamp(19px, 2vw, 25px); }
.faq summary { font-size: 18px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 34px); }
.lead { font-size: 17px; }
.home-hero .sub { font-size: 17px; }
.band { padding-block: 72px; }
.band.tight { padding-block: 48px; }
.cta { padding-block: 64px; }
.page-hero { padding-block: 56px 48px; }
.home-hero .inner { padding-block: 72px 64px; gap: 24px; }
.site-header .wrap { padding-block: 12px; }
.btn { min-height: 44px; padding: 11px 20px; font-size: 15px; }
.logos-band .wrap { padding-block: 28px; font-size: 22px; }
.rows a { padding-block: 22px; }
.dv-text h1 { font-size: clamp(28px, 3.6vw, 46px); }
.dv-text h2 { font-size: clamp(23px, 2.7vw, 34px); }
.dv-text h3 { font-size: 20px; }
.dv-stat-n { font-size: clamp(34px, 4vw, 50px); }
.dv-wrap > .dv-row + .dv-row { margin-top: 28px; }
.band.dv-section { padding-block: 56px; }
.site-footer .wrap { padding-block: 48px; }
.site-footer .wrap.footer-message { padding-block: 48px 0; }
.footer-message-title { font-size: 24px; }
@media (max-width: 760px) {
  .band { padding-block: 48px; } .page-hero { padding-block: 40px; } .home-hero .inner { padding-block: 48px 56px; }
  .band.dv-section { padding-block: 40px; } .cta { padding-block: 48px; }
}

/* Impression papier : sans menu, bandeaux ni formulaires */
@media print {
  .site-header, .cookie-banner, .footer-message, .subnav, .cta, .yt-facade, .grecaptcha-badge, #wpadminbar, .header-actions, .menu-btn { display: none !important; }
  body, .band, .page-hero, .home-hero, .site-footer, .band.surface { background: #FFFFFF !important; background-image: none !important; color: #000000 !important; }
  h1, h2, h3, p, li, a, .lead, .eyebrow, .small { color: #000000 !important; }
  .band, .page-hero, .home-hero .inner { padding-block: 16px !important; }
  a { text-decoration: underline; }
  img { max-width: 100% !important; page-break-inside: avoid; }
}

/* Menu mobile ouvert : fond plein au-dessus du contenu (y compris sur l'accueil) */
@media (max-width: 900px) {
  .site-header.open, .site-header.over-hero.open { background: var(--navy); z-index: 50; box-shadow: 0 16px 32px rgba(0,0,0,.45); border-bottom: 1px solid #22356A; }
  .site-header.open .main-nav a { font-size: 17px; }
  .site-header.open .header-actions { align-items: center; padding-block: 16px 8px; }
  .site-header.open .lang { font-size: 15px; padding: 10px 4px; color: #FFFFFF; }
}
/* Accueil : espace réduit entre l'en-tête (posé sur l'image) et le texte */
.tocndix-designed main > .home-hero:first-child .inner { padding-top: 148px; }
@media (max-width: 900px) { .tocndix-designed main > .home-hero:first-child .inner { padding-top: 108px; } }
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { font-size: 12px; line-height: 1.5; color: var(--muted, #4B4E63); margin: 4px 0 0; }
.recaptcha-note a { color: inherit; text-decoration: underline; }
.site-footer .recaptcha-note, .band:not(.surface) .recaptcha-note { color: var(--soft-text); }
/* Sous-menu Expertise sur mobile/tablette : une seule ligne qui défile horizontalement */
@media (max-width: 1100px) {
  .subnav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; align-self: stretch; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .subnav a { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; padding: 12px 16px; }
}
.lang-en .steps li::before { content: "Step 0" counter(step); }
/* Anciennes pages : petits titres lisibles */
.dv-text h4 { font-size: 19px; line-height: 1.3; }
.dv-text h5, .dv-text h6 { font-size: 17px; line-height: 1.4; }

/* Cartes entièrement cliquables (pas seulement le titre) */
.card:has(.card-link), .case:has(.card-link), .case-light:has(.card-link), article:has(.card-link) { position: relative; transition: border-color .15s, transform .15s; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(.card-link):hover, .case-light:has(.card-link):hover { border-color: var(--blue); }
.case-light:has(.card-link):hover .photo img, .case:has(.card-link):hover .photo img { transform: scale(1.02); }
.case-light .photo img, .case .photo img { transition: transform .3s; }
.card:has(.card-link) a:not(.card-link), .case-light:has(.card-link) a:not(.card-link) { position: relative; z-index: 2; }
