/* ============================================================
   IT-LOG-ONE — Feuille de style principale
   ------------------------------------------------------------
   Charte graphique : palette bleue "supply chain" + accent
   chaleureux pour les CTA. Toutes les couleurs sont définies
   en variables CSS : ajustez-les ici pour coller exactement
   à votre charte (codes hex de votre logo).
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Couleurs */
  --navy:        #0b2240;   /* Bleu profond — fonds & titres */
  --blue:        #1577c2;   /* Bleu primaire — liens, boutons */
  --cyan:        #35b6e8;   /* Cyan — accents, motif de flux */
  --accent:      #ff8a3d;   /* Accent CTA (à ajuster selon charte) */
  --paper:       #f5f8fb;   /* Fond clair des sections alternées */
  --white:       #ffffff;
  --ink:         #1a2733;   /* Texte courant */
  --ink-soft:    #5b6b7a;   /* Texte secondaire */
  --line:        #dde6ee;   /* Filets / bordures */
  --boutons:     #35b6e8;   /* Couleur des boutons */

  /* Typographie */
  --font-display: "Georama", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  /* Rythme */
  --radius:   14px;
  --radius-l: 26px;
  --shadow:   0 10px 30px rgba(11, 34, 64, .10);
  --maxw:     1180px;
}

/* ---------- 1b. Polices auto-hébergées (RGPD : plus d'appel à fonts.googleapis.com) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/Inter-latin.woff2') format('woff2-variations'),
       url('../fonts/Inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Georama';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/Georama-latin.woff2') format('woff2-variations'),
       url('../fonts/Georama-latin.woff2') format('woff2');
}

/* ---------- 2. Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- 3. Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* "Eyebrow" : petit libellé au-dessus des titres de section */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8rem;
}

/* ---------- 4. Structure ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section   { padding: 4.5rem 0; }
.section--alt  { background: var(--paper); }
.section--navy { background: var(--navy); color: #d7e3ef; }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* Motif signature : filet plein sous les titres de section
   (charte IT-LOG-ONE) */
.flow-line {
  height: 2px;
  background: var(--cyan);
  border: 0;
  margin: 0 0 2.5rem;
  max-width: 120px;
}

/* ---------- 5. En-tête / navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .65rem 1.25rem;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { width: 56px; height: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; color: var(--navy);
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  font-weight: 500; color: var(--ink); font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); text-decoration: none; }

/* Sous-menu Solutions (desktop) */
.nav__item { position: relative; }
.nav__sub {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 230px; padding: .6rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub { display: block; }
.nav__sub a {
  display: block; padding: .45rem .7rem; border-radius: 8px;
}
.nav__sub a:hover { background: var(--paper); }

/* Bouton burger (mobile) */
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.burger span {
  display: block; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform .25s, opacity .25s;
}

.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--boutons); color: var(--navy); }
.btn--ghost   { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--light   { background: var(--white); color: var(--navy); }

/* ---------- 6. Héro ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(53, 182, 232, .18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #103461 70%, #14467e 100%);
  color: #d7e3ef;
  padding: 5.5rem 0 6rem;
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { color: #b9cde0; }
.hero__grid {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 3rem; align-items: center;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* Carte "flux" décorative dans le héro */
.hero__panel {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-l);
  padding: 1.6rem;
}
.hero__panel ul { list-style: none; margin: 0; padding: 0; }
.hero__panel li {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .18);
  font-size: .95rem;
}
.hero__panel li:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex: none; }

/* ---------- 7. Cartes ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.8rem;
  box-shadow: 0 4px 14px rgba(11, 34, 64, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 a { color: var(--navy); }
.card__logo { display: block; width: 140px; height: 64px; object-fit: contain; object-position: left center; margin-bottom: 1rem; }
.card .more {
  font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.card .more::after { content: "→"; transition: transform .15s; }
.card .more:hover::after { transform: translateX(4px); }

.card--img { padding: 0; overflow: hidden; }
.card--img img { width: 100%; height: 210px; object-fit: cover; }
.card--img .card__body { padding: 1.5rem 1.8rem 1.8rem; }

/* ---------- 8. Logos clients ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.2rem; align-items: center;
}
.logo-wall .logo {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem;
  display: grid; place-items: center; min-height: 110px;
}
.logo-wall img { max-height: 70px; width: auto; filter: grayscale(35%); transition: filter .2s; }
.logo-wall .logo:hover img { filter: none; }

/* ---------- 9c. Bandeau de logos défilant (marquee) ---------- */
.logo-marquee {
  overflow: hidden; position: relative; margin-top: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee__track {
  display: flex; align-items: center; gap: 3rem; width: max-content;
  touch-action: pan-y; /* laisse le scroll vertical natif, le glissement horizontal est géré en JS */
}
.logo-marquee .logo {
  flex: 0 0 auto; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.6rem;
  display: flex; align-items: center; justify-content: center;
  height: 160px;
}
.logo-marquee .logo img {
  height: 120px; width: auto; max-width: 210px;
  object-fit: contain;
  filter: grayscale(35%); opacity: .85; transition: filter .2s, opacity .2s;
}
.logo-marquee .logo:hover img { filter: none; opacity: 1; }
.logo-marquee.is-ready .logo-marquee__track {
  animation: logo-scroll var(--marquee-duration, 30s) linear infinite;
}
.logo-marquee.is-ready:hover .logo-marquee__track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}
/* Repli sans JS : grille centrée qui s'enroule */
.logo-marquee:not(.is-ready) .logo-marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee .logo-marquee__track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- 9. Témoignage ---------- */
.quote {
  background: var(--white); border-left: 5px solid var(--cyan);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem; max-width: 820px; margin: 0 auto;
}
.quote p { font-size: 1.1rem; }
.quote footer { color: var(--ink-soft); font-size: .95rem; }

/* ---------- 9b. Carrousel de témoignages ---------- */
.tcar__title { text-align: center; margin-bottom: 1.6rem; }
.tcar { max-width: 860px; margin: 0 auto; }
/* Sans JS : les avis s'empilent (tous visibles, lisibles, indexables) */
.tcar__track { display: grid; gap: 1.2rem; }
.tcar__slide { min-width: 0; }
/* Avec JS : un seul avis visible, défilement horizontal */
.tcar.is-ready { overflow: hidden; }
.tcar.is-ready .tcar__track {
  display: flex; gap: 0;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  touch-action: pan-y; /* laisse le scroll vertical natif, le swipe horizontal est géré en JS */
}
.tcar.is-ready .tcar__slide {
  flex: 0 0 100%; box-sizing: border-box; padding: .25rem;
  display: flex; align-items: center;
}
.tcar__nav {
  display: flex; align-items: center; justify-content: center;
  gap: .85rem; margin-top: 1.4rem;
}
.tcar__arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  color: var(--navy); font-size: 1.1rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s, color .2s, background .2s;
}
.tcar__arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.tcar__dots { display: flex; gap: .5rem; }
.tcar__dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  border: 0; background: var(--line); cursor: pointer;
  transition: background .2s, transform .2s;
}
.tcar__dot.is-active { background: var(--cyan); transform: scale(1.25); }
.tcar__dot:focus-visible, .tcar__arrow:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .tcar.is-ready .tcar__track { transition: none; }
}

/* ---------- 10. Bandes CTA ---------- */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 1.2rem; }

/* ---------- 10b. Compteur animé ---------- */
.stat-counter { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.stat-counter__number {
  font-family: var(--font-head); font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700; color: var(--white); line-height: 1; word-spacing: 0.015em;
}
.stat-counter__label {
  font-size: 1.1rem; color: rgba(255,255,255,.8); letter-spacing: .02em;
}
.stat-counter--inline .stat-counter__number { color: var(--navy); }
.stat-counter--inline .stat-counter__label  { color: var(--ink-soft); }

/* Domain list (ILO Services intro) */
.domain-list {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: .6rem;
}
.domain-list li {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.05rem; color: var(--ink);
}
.domain-list li::before {
  content: "";
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px;
  background: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* Feature list (Speed WMS) */
.feature-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem;
}
.feature-list li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .97rem; color: var(--ink);
}
.feature-list li::before {
  content: ""; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ---------- 11. Formulaire de contact ---------- */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem 1rem; margin-top: .3rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--white);
}
.form select { cursor: pointer; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__status { margin: .4rem 0 0; font-weight: 600; font-size: .95rem; }
.form__status.is-ok    { color: #1a7f4b; }
.form__status.is-error { color: #c0392b; }

/* ---------- 12. Pied de page ---------- */
.footer {
  background: var(--navy); color: #b9cde0;
  padding: 3rem 0 2rem; font-size: .92rem;
}
.footer a { color: #d7e3ef; }
.footer__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer h4 { color: var(--white); font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer__bottom {
  border-top: 1px dashed rgba(255, 255, 255, .2);
  padding-top: 1.2rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: .8rem;
}

/* ---------- 13. Bandeau cookies (opt-in conforme) ---------- */
.cookies {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 100;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem; max-width: 560px; margin-left: auto;
  display: none;
}
.cookies.is-visible { display: block; }
.cookies__actions { display: flex; gap: .8rem; margin-top: .8rem; }

/* ---------- 14. Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 15. Timeline ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 2.5rem auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: .25rem; bottom: .25rem;
  width: 2px;
  background: var(--blue);
  opacity: .18;
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  min-height: 5rem;
  margin-bottom: 0;
}
.tl-year-cell {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.tl-dot-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.tl-dot-cell span {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px rgba(21,119,194,.25);
}
.tl-text-cell { font-size: .93rem; line-height: 1.5; color: var(--ink); }

/* Normal (DOM : année | bulle | texte) */
.tl-item .tl-year-cell { text-align: right; padding-right: 1.25rem; }
.tl-item .tl-text-cell { padding-left: 1.25rem; }

/* Flip (DOM : texte | bulle | année) — pas de grid-column, ordre naturel suffit */
.tl-item--flip .tl-year-cell { text-align: left; padding-left: 1.25rem; }
.tl-item--flip .tl-text-cell { text-align: right; padding-right: 1.25rem; }

@media (max-width: 600px) {
  .timeline::before { left: 9px; top: 0; bottom: 0; transform: none; }
  .tl-item,
  .tl-item--flip {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
    row-gap: .2rem;
    margin-bottom: 1.5rem;
    min-height: auto;
    align-items: start;
  }
  .tl-item .tl-year-cell,
  .tl-item--flip .tl-year-cell { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 .05rem .75rem; font-size: 1.1rem; }
  .tl-item .tl-dot-cell,
  .tl-item--flip .tl-dot-cell  { grid-column: 1; grid-row: 1 / 3; display: flex; justify-content: center; padding-top: .3rem; }
  .tl-item .tl-text-cell,
  .tl-item--flip .tl-text-cell { grid-column: 2; grid-row: 2; text-align: left; padding: 0 0 0 .75rem; }
}

/* ---------- 15b. Vidéo embarquée (lecteur natif auto-hébergé) ---------- */
.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  background: var(--navy);
  margin-top: 2rem;
  display: block;
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  /* Navigation mobile */
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1.2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav__sub {
    display: block; position: static; border: 0; box-shadow: none;
    padding: 0 0 0 1rem; min-width: 0;
  }
  .nav__sub a { border-bottom: 0; padding: .45rem 0; font-size: .9rem; color: var(--ink-soft); }
  .nav .btn { margin-top: 1rem; text-align: center; }
}
