/*
Theme Name: DATIBAT
Theme URI: https://datibat.example
Author: DATIBAT
Author URI: https://datibat.example
Description: Thème vitrine officiel DATIBAT — Data Analytics, Business Intelligence, Intelligence Artificielle et automatisation, multisectoriel avec une spécialisation dans le BTP. Thème classique PHP fidèle au design DATIBAT (marine #081F3F, orange #FF650A, Poppins & Inter).
Version: 1.8.10
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: datibat
Tags: business, portfolio, custom-menu, featured-images, translation-ready, responsive
*/

/* ==========================================================================
   Les styles globaux ci-dessous sont IDENTIQUES au prototype HTML validé.
   (header, footer, boutons, cartes, hero, filtres, responsive…)
   Les styles des pages intérieures sont dans assets/css/pages.css
   ========================================================================== */

/* =====================================================================
   DATIBAT — Landing page officielle
   Feuille de style principale
   Data · Analytics · BTP Solutions
   --------------------------------------------------------------------
   Palette : Bleu marine #081F3F / Orange #FF650A / Blanc & gris clair
   Typographie : Poppins (titres) + Inter (texte)
   Concept de mise en page : grille centrée 1200px, sections pleine
   largeur, bandes alternées blanc / gris très clair, bandeau final marine.
   ===================================================================== */

/* ---------- 1. Tokens (variables) ---------- */
:root {
  /* Couleurs de marque */
  --navy:        #081F3F;
  --navy-800:    #0b264d;
  --navy-700:    #14315f;
  --navy-600:    #1b3f73;
  --orange:      #FF650A;
  --orange-600:  #ea5a05;
  --orange-100:  #ffe9db;
  --orange-50:   #fff3ec;

  /* Neutres (légèrement teintés vers le marine pour un rendu intentionnel) */
  --white:       #ffffff;
  --paper:       #f5f8fc;   /* fond gris très clair des sections */
  --paper-2:     #eef3f9;
  --ink:         #0f2340;   /* texte principal foncé */
  --body:        #41536b;   /* texte courant */
  --muted:       #6b7c93;   /* texte secondaire */
  --line:        #e3eaf3;   /* filets / bordures */
  --line-2:      #d6e0ec;

  /* Effets */
  --shadow-sm:   0 2px 10px rgba(8, 31, 63, .06);
  --shadow:      0 14px 40px rgba(8, 31, 63, .10);
  --shadow-lg:   0 26px 60px rgba(8, 31, 63, .16);
  --radius:      16px;
  --radius-sm:   12px;
  --radius-pill: 999px;

  /* Typographie */
  --font-title: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: light;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--paper { background: var(--paper); }

/* En-tête de section centré */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head h2 .accent { color: var(--orange); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.rule {
  width: 60px; height: 4px; border-radius: 4px;
  background: var(--orange); margin: 16px auto 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .98rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 10px 24px rgba(255, 101, 10, .32);
}
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255,101,10,.40); }
.btn--ghost {
  background: #fff; color: var(--ink); border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ---------- 4. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Header un peu plus large pour tenir le menu sur une seule ligne */
.site-header > .container { max-width: 1280px; }

.nav {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 16px;
  min-height: 74px;
}
.nav__menu {
  display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap;
  gap: 2px; margin-left: auto;
}
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 11px;
  font-weight: 500; font-size: .9rem; color: var(--ink);
  border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--orange); background: var(--orange-50); }
.nav__link .caret { width: 10px; height: 10px; opacity: .5; transition: transform .15s ease; }
.nav__link:hover .caret { transform: translateY(1px); }
.nav__tools { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__demo { padding: 11px 20px; font-size: .9rem; }
.nav__search {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  cursor: pointer; transition: all .15s ease;
}
.nav__search:hover { border-color: var(--orange); color: var(--orange); }
.nav__search svg { width: 18px; height: 18px; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand__name {
  font-family: var(--font-title); font-weight: 800; font-size: 1.5rem;
  letter-spacing: .02em; color: var(--navy); white-space: nowrap;
}
.brand__tag {
  font-size: .56rem; font-weight: 700; letter-spacing: .14em;
  color: var(--muted); margin-top: 4px; text-transform: uppercase; white-space: nowrap;
}

/* Hamburger */
.nav__burger {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff;
  cursor: pointer; padding: 0; margin-left: auto;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--navy); margin-inline: auto; transition: transform .25s ease, opacity .2s ease;
}
.nav__burger span { position: relative; }
.nav__burger span::before { position: absolute; top: -6px; left: 0; }
.nav__burger span::after  { position: absolute; top: 6px; left: 0; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero::before {
  /* motif géométrique discret en arrière-plan */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(255,101,10,.06), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 76px);
}
.hero__title {
  font-size: clamp(1.85rem, 3.9vw, 2.95rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
  margin-top: 18px; max-width: 16ch;
}
.hero__title .accent { color: var(--orange); }
.hero__lead { margin-top: 20px; font-size: 1.04rem; color: var(--body); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__points { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.hero__point { display: flex; align-items: center; gap: 12px; }
.hero__point .ico {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--orange-50); color: var(--orange);
}
.hero__point .ico svg { width: 20px; height: 20px; }
.hero__point span { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* Visuel hero : scène + cartes KPI flottantes */
.hero__visual { position: relative; min-height: 480px; }
.hero__scene {
  position: absolute; inset: 0;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #16365f 0%, #0b2548 55%, #081f3f 100%);
}
.hero__scene img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.hero__scene svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }

/* Cartes KPI flottantes */
.kpi-card {
  position: absolute; z-index: 5;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  backdrop-filter: blur(4px);
  animation: floaty 6s ease-in-out infinite;
}
.kpi-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.kpi-card__ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.kpi-card__ic svg { width: 15px; height: 15px; }
.kpi-card__label { font-size: .72rem; font-weight: 600; color: var(--muted); }
.kpi-card__value { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; color: var(--ink); line-height: 1; }
.kpi-card__sub { font-size: .66rem; color: var(--muted); margin-top: 3px; }

.kpi--progress { top: 8%;  left: -6%;  width: 210px; animation-delay: 0s; }
.kpi--cost     { top: 4%;  right: -4%; width: 150px; animation-delay: .8s; }
.kpi--prod     { top: 46%; left: -8%;  width: 180px; animation-delay: 1.6s; }
.kpi--safety   { bottom: 6%; left: 18%; width: 150px; animation-delay: 1.1s; }

.donut { display: flex; align-items: center; gap: 12px; }
.donut svg { width: 56px; height: 56px; flex: none; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.bars i { width: 7px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #3b82f6, #1d4ed8); display: block; }

.demo-flag {
  position: absolute; bottom: -14px; right: 0;
  font-size: .68rem; color: var(--muted); font-style: italic;
}

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 6. Filtres + cartes cas d'usage ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 40px;
}
.filter {
  font-family: var(--font-body);
  font-weight: 600; font-size: .92rem; color: var(--ink);
  padding: 12px 24px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  transition: all .18s ease;
}
.filter:hover { border-color: var(--orange); color: var(--orange); }
.filter.is-active {
  background: var(--orange); color: #fff; border-color: var(--orange);
  box-shadow: 0 8px 20px rgba(255,101,10,.30);
}

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
}
.card__media img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.card__media svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.card__ic {
  position: absolute; left: 20px; bottom: -24px;
  width: 54px; height: 54px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; color: var(--orange);
  border: 1px solid var(--line);
}
.card__ic svg { width: 26px; height: 26px; }
.card__body { padding: 36px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.22rem; font-weight: 700; }
.card__text { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.card__link { font-weight: 600; font-size: .92rem; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.card__link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.card:hover .card__link svg { transform: translateX(4px); }
.card__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  color: var(--ink); transition: all .18s ease; flex: none;
}
.card:hover .card__arrow { background: var(--orange); border-color: var(--orange); color: #fff; }
.card__arrow svg { width: 18px; height: 18px; }

.cards__empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: #fff;
}
.cards__empty strong { color: var(--ink); display: block; margin-bottom: 6px; font-family: var(--font-title); }

.tag-note { text-align: center; margin-top: 26px; font-size: .82rem; color: var(--muted); font-style: italic; }

/* ---------- 7. Technologies ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tech {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tech:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); }
.tech__ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.tech__ic svg { width: 32px; height: 32px; }
.tech__name { font-size: 1.12rem; font-weight: 700; }
.tech__text { margin-top: 8px; font-size: .92rem; color: var(--muted); }

/* Bande de statistiques (démonstratives) */
.stats {
  margin-top: 54px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat { padding: 28px 22px; display: flex; align-items: center; gap: 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; flex: none; }
.stat__ic svg { width: 24px; height: 24px; }
.stat__num { font-family: var(--font-title); font-weight: 800; font-size: 1.7rem; color: var(--orange); line-height: 1; }
.stat__lbl { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* ---------- 8. Bandeau contact ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0a2550 0%, var(--navy) 60%);
  color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.cta-band__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.cta-band .eyebrow { color: #ffb183; }
.cta-band .eyebrow::before { background: var(--orange); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-top: 16px; }
.cta-band p { margin-top: 16px; color: #c6d4e8; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.cta-band__checks { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.cta-check { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #dbe6f5; }
.cta-check .tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,101,10,.2); color: var(--orange); display: grid; place-items: center; flex: none; }
.cta-check .tick svg { width: 13px; height: 13px; }
.cta-band__right { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---------- 9. Footer ---------- */
.footer { background: #061731; color: #c6d4e8; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding-block: clamp(44px, 6vw, 68px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: inline-flex; align-items: center; line-height: 0; max-width: 100%; }
.footer-brand__image { display: block; width: min(100%, 320px); height: auto; }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: #8ea4c2; }
.footer__about { margin-top: 18px; font-size: .92rem; color: #9fb2cd; max-width: 34ch; }
.footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.footer__socials a, .footer__socials .footer__social-placeholder {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.09); color: #fff; transition: background .18s ease, transform .18s ease;
}
.footer__socials a:hover, .footer__socials a:focus-visible { background: var(--orange); transform: translateY(-2px); }
.footer__socials a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.footer__socials .footer__social-placeholder { opacity: .85; cursor: default; }
.footer__socials svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .footer__socials a { transition: none; } }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: .92rem; color: #9fb2cd; transition: color .15s ease; }
.footer__col a:hover { color: var(--orange); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding-block: 22px; font-size: .85rem; color: #7f93b2;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a:hover { color: var(--orange); }

/* ---------- 10. Animations d'apparition ---------- */
/* Repli : si le JS est absent/bloqué, le contenu reste visible (classe .js posée par le script). */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 400px; margin-top: 10px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .cta-band__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1040px) {
  .nav__menu, .nav__tools .nav__search { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .nav__tools { margin-left: 0; }
  .nav__link .caret { display: none; }

  /* Menu mobile déroulant */
  .nav__menu.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px var(--gutter) 18px; margin: 0;
  }
  .nav__menu.is-open .nav__link { padding: 14px 10px; border-radius: 10px; font-size: 1rem; }
  .nav__menu.is-open .nav__link:not(:last-child) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .kpi--progress, .kpi--cost, .kpi--prod, .kpi--safety { position: static; width: auto; margin: 0; animation: none; }
  .hero__visual { min-height: auto; display: flex; flex-direction: column; gap: 14px; }
  .hero__scene { position: relative; height: 240px; }
  .hero__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .demo-flag { position: static; display: block; margin-top: 8px; }
  .nav { min-height: 66px; }
  .brand__name { font-size: 1.3rem; }
}


/* DATIBAT ÉDITION PHOTOS RÉALISTES + ICÔNES SVG — 31/10/2026 */
.card[hidden], .cards__empty[hidden] { display: none !important; }
.card__media { overflow: visible; }
.card__media > img { border-radius: 0; }
.card__ic { z-index: 4; }
.card__ic img { width: 26px; height: 26px; display: block; }
.tech__ic img { width: 32px; height: 32px; display: block; }
.brand__mark { max-width: 44px; max-height: 44px; object-fit: contain; display: block; }
.hero__scene { background: #15325b; }
.hero__scene > img { object-position: 58% center; }
.hero__scene > svg { display:none; }
.card__media > svg { display:none; }
/* Les images possèdent leur propre couleur et texture : pas de filtre artificiel. */
/* Réduire les déplacements des cartes KPI pour la lisibilité. */
@media (prefers-reduced-motion: reduce) { .kpi-card {animation:none!important;} }
@media (max-width:620px) {
  .hero__scene > img { object-position: 65% center; }
  .card__media { overflow: visible; }
}

/* Ajustements finaux pour toutes les tailles d'écran. */
@media (min-width: 1041px) { .hero__title { max-width: 22ch; } }
@media (max-width: 620px) {
  .nav__tools .nav__demo { display: none; }
  .nav { gap: 8px; }
  .brand { gap: 8px; }
  .brand__tag { letter-spacing: .08em; }
}

/* Bouton recherche non opérationnel tant que la fonction n'est pas implémentée */
.nav__search:disabled { opacity: .4; cursor: not-allowed; }
.nav__search:disabled:hover { border-color: var(--line-2); color: var(--ink); }

/* ---------- Correctif responsive : débordement footer sur très petits écrans (<=600px) ---------- */
/* Le slogan du footer était en nowrap et forçait une colonne trop large (débordement ~24px à 360px). */
@media (max-width: 600px) {
  .footer__top > * { min-width: 0; }
  .footer .brand__tag { white-space: normal; }
}

/* ==========================================================================
   AJOUTS THÈME WORDPRESS (C1 — corrections)
   ========================================================================== */

/* Logo personnalisé (Apparence > Personnaliser) : conserve proportions, alignement
   et responsive du design DATIBAT, dans le header comme dans le footer. */
.brand--custom { display: inline-flex; align-items: center; }
.brand--custom .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.brand--custom .custom-logo {
  height: 44px; width: auto; max-width: 200px; display: block; object-fit: contain;
}
.footer .brand--custom .custom-logo { height: 40px; max-width: 190px; }
.footer-brand__image { filter: none; }
@media (max-width: 480px) {
  .brand--custom .custom-logo { height: 38px; max-width: 160px; }
}

/* Entrées de navigation provisoires (pages non encore créées — étape C2).
   Visibles et à l'identique du design, mais NON cliquables : on ne présente pas
   un lien vers une page inexistante comme fonctionnel. */
.nav__link.is-provisional { cursor: default; }
.footer__col .is-provisional { color: #9fb2cd; cursor: default; }

/* C2.2.2 — Logos des technologies et bibliothèques de l'écosystème Python.
   Ciblage strictement limité aux quatre cartes .tech--brands. */
.tech--brands { display: flex; flex-direction: column; }
.tech--brands .tech__visual {
  min-height: 108px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
}
.tech--brands .tech__brand { width: 64px; height: 64px; max-width: 100%; display: block; object-fit: contain; }
.tech--brands .tech__brand--python { width: 50px; height: 50px; }
.tech--brands .tech__visual--python { gap: 11px; }
.tech--brands .tech__library-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 7px;
  align-items: center;
  width: 100%;
  max-width: 265px;
  min-width: 0;
}
.tech--brands .tech__library-logo { width: 100%; min-width: 0; height: 31px; object-fit: contain; object-position: left center; }
.tech--brands .tech__ai-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 15px; background: var(--orange-50); }
.tech--brands .tech__brand--ai { width: 39px; height: 39px; }
.tech--brands .tech__name { line-height: 1.35; }
@media (max-width: 340px) {
 .tech--brands .tech__library-logos { column-gap: 4px; }
 .tech--brands .tech__library-logo { height: 24px; }
}

/* C3.5 : Accueil — 22 contenus, filtres complets et fiches accessibles. */
.home-cases__summary { color: var(--muted); font-size: .88rem; font-weight: 600; text-align: center; margin: -18px 0 26px; }
.home-cases__label { color: var(--orange); font-size: .73rem; font-weight: 750; text-transform: uppercase; letter-spacing: .065em; display: inline-block; margin-bottom: 8px; }
#cas-usage .card__arrow { text-decoration: none; }
#cas-usage .card__arrow:hover, #cas-usage .card__arrow:focus-visible { background: var(--orange); border-color: var(--orange); color: #fff; }
#cas-usage .card__body { min-height: 215px; }
#cas-usage .card:focus-within { box-shadow: var(--shadow); border-color: var(--orange); }
#cas-usage .tag-note a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; font-style: normal; font-weight: 600; }
@media (max-width: 600px) { .home-cases__summary { margin-top: -12px; } #cas-usage .card__body { min-height: auto; } }

/* C4.6 — Accès mobile/tablette à la page Demander une démo.
   L'en-tête desktop conserve le bouton d'origine. */
.nav__menu .nav__mobile-demo {
  display: none;
}
@media (max-width: 1040px) {
  /* Le menu déroulant remplace le bouton de la barre d'en-tête. */
  .nav__tools .nav__demo {
    display: none;
  }
  /* Permet de voir le dernier lien sur les petits écrans. */
  .nav__menu.is-open {
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav__menu.is-open .nav__mobile-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #FF650A;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    text-decoration: none;
  }
  .nav__menu.is-open .nav__mobile-demo:hover,
  .nav__menu.is-open .nav__mobile-demo:focus-visible {
    background: #E65C08;
    color: #FFFFFF;
  }
}


/* ==========================================================================
   Correctifs Header / Footer / Mobile — v1.8.6
   Objectif : logos mieux proportionnés, bouton burger mieux positionné,
   rendu global plus professionnel sur desktop, tablette et mobile.
   ========================================================================== */

/* Header : proportions plus équilibrées */
.site-header {
  box-shadow: 0 8px 22px rgba(8, 31, 63, .04);
}
.site-header > .container {
  padding-inline: clamp(16px, 3vw, 32px);
}
.nav {
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}
.brand,
.brand--custom {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.brand--custom .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.brand--custom .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 56px;
  max-width: min(100%, 250px);
  object-fit: contain;
}
.nav__tools {
  margin-left: auto;
  gap: 12px;
  align-items: center;
}
.nav__burger {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: none;
  place-items: center;
  padding: 0;
  align-self: center;
  box-shadow: 0 4px 14px rgba(8, 31, 63, .04);
}
.nav__burger:hover {
  border-color: var(--orange);
  background: var(--orange-50);
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  width: 22px;
  height: 2.5px;
}
.nav__burger span::before { top: -7px; }
.nav__burger span::after  { top: 7px; }
.nav__menu.is-open {
  border-top: 1px solid var(--line);
}

/* Footer : logo moins grand, colonnes plus équilibrées */
.footer {
  background: linear-gradient(180deg, #061731 0%, #051429 100%);
}
.footer__top {
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(160px, 1fr));
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}
.footer-brand {
  max-width: 260px;
}
.footer-brand__image {
  width: min(100%, 255px);
  height: auto;
}
.footer__about {
  max-width: 31ch;
  line-height: 1.7;
}
.footer__col h4 {
  margin-bottom: 18px;
}
.footer__col li {
  margin-bottom: 12px;
}
.footer__bottom {
  gap: 16px;
}

/* Responsive header/footer */
@media (max-width: 1200px) {
  .brand--custom .custom-logo {
    max-height: 52px;
    max-width: 220px;
  }
  .footer-brand__image {
    width: min(100%, 235px);
  }
}

@media (max-width: 1040px) {
  .nav {
    min-height: 72px;
  }
  .nav__tools {
    gap: 10px;
  }
  .nav__burger {
    display: grid;
  }
  .brand--custom .custom-logo {
    max-height: 46px;
    max-width: 210px;
  }
  .nav__menu.is-open {
    padding: 14px var(--gutter) 20px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header > .container {
    padding-inline: 14px;
  }
  .nav {
    min-height: 68px;
    gap: 10px;
  }
  .brand--custom .custom-logo {
    max-height: 40px;
    max-width: 170px;
  }
  .nav__tools {
    gap: 8px;
  }
  .nav__burger {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
  }
  .nav__burger span,
  .nav__burger span::before,
  .nav__burger span::after {
    width: 20px;
    height: 2px;
  }
  .nav__burger span::before { top: -6px; }
  .nav__burger span::after  { top: 6px; }
  .nav__menu.is-open {
    padding-inline: 14px;
  }
  .footer-brand,
  .footer-brand__image {
    max-width: 200px;
    width: min(100%, 200px);
  }
}

@media (max-width: 420px) {
  .brand--custom .custom-logo {
    max-height: 36px;
    max-width: 150px;
  }
  .footer-brand,
  .footer-brand__image {
    max-width: 180px;
    width: min(100%, 180px);
  }
  .footer__about {
    max-width: none;
  }
}


/* DATIBAT v1.8.7 — tailles verrouillées desktop/mobile sur le header natif */
.site-header .nav > .brand,
.site-header .nav > .brand--custom { flex: 0 1 auto; width: auto; max-width: 230px; min-width: 0; margin-right: 0; }
.site-header .nav > .brand--custom > .custom-logo-link,
.site-header .nav > .brand--custom > a { max-width: 100%; line-height: 0; }
.site-header .nav .custom-logo,
.site-header .nav .brand--custom img.custom-logo,
.site-header .nav .brand--custom .custom-logo-link img {
  display: block; width: auto; height: auto; max-width: 210px; max-height: 52px;
  object-fit: contain; object-position: left center;
}
.site-header .nav__tools { flex: 0 0 auto; margin-left: auto; align-items: center; }
.footer .footer__top > div:first-child { min-width: 0; }
.footer .footer-brand, .footer .footer-brand__image { max-width: 220px; }
.footer .footer-brand__image { display: block; width: 100%; height: auto; object-fit: contain; }

@media (max-width: 1040px) {
  .site-header .nav__menu:not(.is-open) { display: none; }
  .site-header .nav__burger { display: grid; margin: 0; }
  .site-header .nav > .brand, .site-header .nav > .brand--custom { max-width: 190px; }
  .site-header .nav .custom-logo,
  .site-header .nav .brand--custom img.custom-logo,
  .site-header .nav .brand--custom .custom-logo-link img {
    max-width: 180px; max-height: 44px;
  }
}
@media (max-width: 680px) {
  .site-header .nav { min-height: 62px; justify-content: space-between; flex-wrap: nowrap; gap: 8px; }
  .site-header .nav > .brand,
  .site-header .nav > .brand--custom { max-width: 165px; margin: 0; flex: 0 1 auto; }
  .site-header .nav .custom-logo,
  .site-header .nav .brand--custom img.custom-logo,
  .site-header .nav .brand--custom .custom-logo-link img {
    max-width: min(42vw, 155px); max-height: 36px;
  }
  .site-header .nav__tools { margin-left: auto; min-width: 42px; }
  .site-header .nav__burger { width: 42px; height: 42px; min-width: 42px; margin: 0; }
  .site-header .nav__burger span { position: relative; }
  .footer .footer-brand, .footer .footer-brand__image { max-width: 175px; }
  .footer .footer__top { gap: 26px; padding-block: 38px; }
}
@media (max-width: 360px) {
  .site-header .nav > .brand, .site-header .nav > .brand--custom { max-width: 138px; }
  .site-header .nav .custom-logo,
  .site-header .nav .brand--custom img.custom-logo,
  .site-header .nav .brand--custom .custom-logo-link img { max-width: 135px; max-height: 32px; }
  .footer .footer-brand, .footer .footer-brand__image { max-width: 160px; }
}
