/* Coridor360 — site vitrine, couleurs de la charte Coridor360. */
:root {
  --nuit: #0B1F3A;
  --nuit-clair: #12355B;
  --chaussee: #1E3A5F;
  --turquoise: #2DD4BF;
  --turquoise-fonce: #0D9488;
  --ambre: #F59E0B;
  --ardoise: #64748B;
  --ardoise-clair: #94A3B8;
  --fond: #F8FAFC;
  --texte: #0F172A;
  --bord: #E2E8F0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
}
a { color: var(--turquoise-fonce); }
img { max-width: 100%; }
.conteneur { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.entete { background: var(--nuit); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.06); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.entete img { height: 40px; width: auto; display: block; }
.entete nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.entete nav a { color: #fff; text-decoration: none; font-size: 15px; opacity: .85; }
.entete nav a:hover { opacity: 1; color: var(--turquoise); }
.bouton.bouton-entete { padding: 9px 16px; font-size: 14px; border-radius: 8px; white-space: nowrap; }

/* Accroche */
.accroche {
  background: linear-gradient(135deg, var(--nuit) 0%, var(--nuit-clair) 60%, var(--chaussee) 100%);
  color: #fff; padding: 80px 0 88px; position: relative; overflow: hidden;
}
.accroche::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 100%;
  background: repeating-linear-gradient(to bottom, var(--ambre) 0 28px, transparent 28px 56px);
  opacity: .18; transform: translateX(-50%);
}
.accroche .conteneur {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.accroche-visuel { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)); }
.etiquette { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--turquoise); font-weight: 600; }
.accroche h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.15; margin: 14px 0 18px; font-weight: 800; letter-spacing: -.02em; }
.accroche h1 span { color: var(--turquoise); }
.accroche p { font-size: 19px; color: #CBD5E1; margin: 0 0 32px; }
.bouton {
  display: inline-block; background: var(--turquoise); color: var(--nuit); font-weight: 700;
  padding: 14px 26px; border-radius: 10px; text-decoration: none;
}
.bouton:hover { background: #5EEAD4; }
.bouton.secondaire { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); margin-left: 10px; }
.bouton.secondaire:hover { border-color: var(--turquoise); color: var(--turquoise); }
.atouts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: #CBD5E1; }
.atouts li { display: flex; align-items: center; gap: 8px; }
.atouts li::before {
  content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(45, 212, 191, .18); color: var(--turquoise); font-size: 12px; font-weight: 800;
}

/* Sections */
section { padding: 80px 0; }
section[id] { scroll-margin-top: 72px; }
.titre-section { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.titre-section h2 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.25; margin: 8px 0 12px; color: var(--nuit); letter-spacing: -.01em; }
.titre-section p { color: var(--ardoise); margin: 0; font-size: 17px; }
.titre-section .etiquette { color: var(--turquoise-fonce); }

/* 8 fonctions : 4 colonnes sur ordinateur, 2 sur tablette, 1 sur téléphone */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.carte { background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.carte:hover { transform: translateY(-3px); border-color: rgba(13, 148, 136, .35); box-shadow: 0 12px 28px rgba(11, 31, 58, .08); }
.carte h3 { margin: 14px 0 8px; font-size: 19px; color: var(--nuit); }
.carte p { margin: 0; color: var(--ardoise); font-size: 15.5px; }
.icone {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(45, 212, 191, .14); color: var(--turquoise-fonce);
}
.icone svg { width: 24px; height: 24px; }

.bande { background: #fff; border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: etape; }
.etape { padding-left: 58px; position: relative; }
.etape::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--nuit); color: var(--turquoise); font-weight: 800; display: grid; place-items: center;
}
.etape h3 { margin: 6px 0 6px; font-size: 18px; color: var(--nuit); }
.etape p { margin: 0; color: var(--ardoise); }

/* Scènes animées (terrain, écran de hall) : SVG et CSS seuls, aucun script.
   Sans animation, chaque élément montre l'état final : intervention clôturée. */
.scenes { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; margin-bottom: 12px; }
.scene { margin: 0; }
.scene-svg { width: 100%; height: auto; display: block; border-radius: 16px; }
.scene figcaption { margin-top: 12px; text-align: center; font-size: 14.5px; color: var(--ardoise); }
.mention-demo { text-align: center; font-size: 12.5px; color: var(--ardoise-clair); margin: 0 0 44px; }

.scene-svg .halo, .accroche-visuel .halo { transform-box: fill-box; transform-origin: center; animation: halo 1.8s ease-out infinite; }
.scene-svg .feux, .scene-svg .direct-point { animation: clignote 1s steps(2, jump-none) infinite; }
.scene-svg .gyrophare { animation: gyrophare .6s steps(2, jump-none) infinite; }

.voiture-1 { transform: translateX(80px); animation: circulation 5s linear infinite; }
.voiture-2 { transform: translateX(260px); animation: circulation 6.5s linear -3s infinite; }
.voiture-3 { transform: translateX(460px); animation: circulation 9s linear -6s infinite; }

.depanneuse { transform: translate(334px, -50px); animation: depanneuse 14s ease-in-out infinite; }
.panne { animation: apparait-tout 14s linear infinite; }
.flash { opacity: 0; animation: flash 14s linear infinite; }
.photos { animation: photos 14s linear infinite; }
.cloture { animation: cloture 14s linear infinite; }
.etat { opacity: 0; }
.etat-1 { animation: etat-1 14s linear infinite; }
.etat-2 { animation: etat-2 14s linear infinite; }
.etat-3 { animation: etat-3 14s linear infinite; }
.etat-4 { opacity: 1; animation: etat-4 14s linear infinite; }
.etat-point { animation: etat-point 14s linear infinite; }
.progression { stroke-dashoffset: 0; animation: progression 14s linear infinite; }
.etape-2 { animation: etape-2 14s linear infinite; }
.etape-3 { animation: etape-3 14s linear infinite; }
.etape-4 { animation: etape-4 14s linear infinite; }

.avant { opacity: 0; animation: avant 14s linear infinite; }
.apres { animation: apres 14s linear infinite; }
.incident { animation: incident 14s linear infinite; }
.agent-mobile { transform: translateX(290px); animation: agent-mobile 14s ease-in-out infinite; }
.agent-patrouille { transform: translateX(150px); animation: patrouille 9s ease-in-out infinite alternate; }
.bandeau { animation: bandeau 24s linear infinite; }

@keyframes halo { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes clignote { 0% { opacity: 1; } 100% { opacity: .15; } }
@keyframes gyrophare { 0% { fill: #F59E0B; } 100% { fill: #2DD4BF; } }
@keyframes circulation { from { transform: translateX(-80px); } to { transform: translateX(620px); } }
@keyframes depanneuse {
  0%, 18% { transform: translate(-70px, 0); opacity: 1; }
  40% { transform: translate(250px, 0); }
  48%, 94% { transform: translate(334px, -50px); opacity: 1; }
  97%, 100% { transform: translate(334px, -50px); opacity: 0; }
}
@keyframes apparait-tout { 0% { opacity: 0; } 3%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes flash { 0%, 54% { opacity: 0; } 56% { opacity: .85; } 58% { opacity: 0; } 62% { opacity: .85; } 64%, 100% { opacity: 0; } }
@keyframes photos { 0%, 57% { opacity: 0; } 59%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes cloture { 0%, 75% { opacity: 0; } 77%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes etat-1 { 0%, 17% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes etat-2 { 0%, 17% { opacity: 0; } 18%, 47% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes etat-3 { 0%, 47% { opacity: 0; } 48%, 75% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes etat-4 { 0%, 75% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes etat-point { 0%, 47% { fill: #F59E0B; } 48%, 100% { fill: #2DD4BF; } }
@keyframes progression { 0% { stroke-dashoffset: 420; } 18% { stroke-dashoffset: 280; } 48% { stroke-dashoffset: 140; } 76%, 100% { stroke-dashoffset: 0; } }
@keyframes etape-2 { 0%, 17% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes etape-3 { 0%, 47% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes etape-4 { 0%, 75% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes avant { 0%, 75% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes apres { 0%, 75% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes incident { 0%, 75% { fill: #F59E0B; } 76%, 100% { fill: #2DD4BF; } }
@keyframes agent-mobile { 0%, 18% { transform: translateX(80px); } 48%, 100% { transform: translateX(290px); } }
@keyframes patrouille { from { transform: translateX(110px); } to { transform: translateX(210px); } }
@keyframes bandeau { from { transform: translateX(0); } to { transform: translateX(-700px); } }

/* Visiteurs qui ont réduit les animations : image fixe, défilement direct */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-svg *, .accroche-visuel *, .carte, .role, .role-icone { animation: none !important; transition: none !important; }
}

/* Vos données */
.donnees { background: radial-gradient(circle at 15% 20%, var(--nuit-clair) 0%, var(--nuit) 55%); color: #fff; }
.donnees .titre-section h2 { color: #fff; }
.donnees .titre-section p { color: #CBD5E1; }
.donnees .titre-section .etiquette { color: var(--turquoise); }
.donnees-corps { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }


.points { display: grid; gap: 30px; }
.point { padding-left: 18px; border-left: 2px solid rgba(45, 212, 191, .45); }
.point h3 { margin: 0 0 6px; font-size: 20px; }
.point p { margin: 0; color: #CBD5E1; font-size: 16px; }

.schema-anime { background: transparent; }
.schema-anime .vd-activite { animation: vd-activite 1.6s ease-in-out infinite alternate; }
.schema-anime .vd-activite-2 { animation-delay: -.8s; }
.vd-c { animation: vd-c 12s ease-out infinite; }
.vd-c-voie-1 { animation: vd-c-voie-1 12s ease-out infinite; }
.vd-c-voie-2 { animation: vd-c-voie-2 12s ease-out infinite; }
.vd-c-logo { animation: vd-c-logo 12s ease-out infinite; }
.vd-c-barre { animation: vd-c-barre 12s linear infinite; }
.vd-barriere { animation: vd-barriere 12s ease-out infinite; }
.vd-intrus { opacity: 0; animation: vd-intrus 12s ease-in-out infinite; }
.vd-verrou { transform-box: fill-box; transform-origin: center; animation: vd-verrou 12s ease-out infinite; }
.vd-refus { opacity: 0; animation: vd-refus 12s linear infinite; }

@keyframes vd-activite { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes vd-c { 0%, 2% { opacity: 0; transform: translateY(12px); } 7%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes vd-c-voie-1 { 0%, 12% { opacity: 0; transform: translateX(-10px); } 16%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes vd-c-voie-2 { 0%, 20% { opacity: 0; transform: translateX(-10px); } 24%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes vd-c-logo { 0%, 28% { opacity: 0; transform: scale(.9); } 32%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes vd-c-barre { 0%, 28% { fill: #64748B; } 32%, 100% { fill: #2DD4BF; } }
@keyframes vd-barriere { 0%, 36% { opacity: 0; } 40%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes vd-intrus {
  0%, 48% { opacity: 0; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(0); }
  58% { transform: translateX(50px); }
  61% { transform: translateX(56px); }
  65% { transform: translateX(40px); }
  72% { opacity: 1; transform: translateX(0); }
  74%, 100% { opacity: 0; transform: translateX(0); }
}
@keyframes vd-verrou { 0%, 60% { transform: scale(1); } 63% { transform: scale(1.35); } 68%, 100% { transform: scale(1); } }
@keyframes vd-refus { 0%, 61% { opacity: 0; } 63%, 72% { opacity: 1; } 75%, 100% { opacity: 0; } }

/* Pour qui : la demande passe de rôle en rôle */
.role { animation: role-relais 10s ease-in-out infinite; }
.role .role-icone { animation: role-icone 10s ease-in-out infinite; }
.role:nth-child(2), .role:nth-child(2) .role-icone { animation-delay: 1.6s; }
.role:nth-child(3), .role:nth-child(3) .role-icone { animation-delay: 3.2s; }
.role:nth-child(4), .role:nth-child(4) .role-icone { animation-delay: 4.8s; }
.role:nth-child(5), .role:nth-child(5) .role-icone { animation-delay: 6.4s; }
.mention-relais { text-align: center; color: var(--ardoise); font-size: 14.5px; margin: 22px 0 0; }
@keyframes role-relais {
  0%, 100% { border-color: var(--bord); box-shadow: none; transform: none; }
  4%, 15% { border-color: rgba(13, 148, 136, .6); box-shadow: 0 10px 26px rgba(13, 148, 136, .16); transform: translateY(-4px); }
  21% { border-color: var(--bord); box-shadow: none; transform: none; }
}
@keyframes role-icone {
  0%, 100% { background: var(--nuit); color: var(--turquoise); }
  4%, 15% { background: var(--turquoise); color: var(--nuit); }
  21% { background: var(--nuit); color: var(--turquoise); }
}

/* Pour qui */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.role { background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 24px 20px; text-align: center; }
.role-icone {
  width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--nuit); color: var(--turquoise);
}
.role-icone svg { width: 24px; height: 24px; }
.role h3 { margin: 14px 0 6px; font-size: 17px; color: var(--nuit); }
.role p { margin: 0; color: var(--ardoise); font-size: 14.5px; }

/* Questions */
.questions { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.questions details { border: 1px solid var(--bord); border-radius: 12px; background: var(--fond); }
.questions details[open] { border-color: rgba(13, 148, 136, .4); background: #fff; }
.questions summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; color: var(--nuit); font-size: 16.5px;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(45, 212, 191, .14); color: var(--turquoise-fonce); font-size: 18px; font-weight: 700;
}
.questions details[open] summary::after { content: "−"; }
.questions details p { margin: 0; padding: 0 22px 20px; color: var(--ardoise); }

/* Contact */
.contact { background: var(--nuit); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact p { color: #CBD5E1; }
.coordonnees { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.coordonnees a {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 14px 22px; font-weight: 600;
}
.coordonnees a:hover { border-color: var(--turquoise); color: var(--turquoise); }
.coordonnees svg { width: 20px; height: 20px; }

/* Pied de page */
.pied { background: #071528; color: var(--ardoise-clair); font-size: 14px; padding: 28px 0; }
.pied .conteneur { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pied a { color: var(--ardoise-clair); }

/* Menu complet seulement s'il tient sur une ligne ; le bouton « Nous contacter » reste */
@media (max-width: 900px) {
  .entete nav { display: none; }
}

@media (max-width: 960px) {
  .accroche .conteneur, .donnees-corps, .scenes { grid-template-columns: 1fr; }
  .accroche-visuel { max-width: 540px; margin: 0 auto; }
  .accroche::after { left: 88%; }
}

@media (max-width: 640px) {
  .entete img { height: 34px; }
  .bouton.bouton-entete { padding: 8px 12px; font-size: 13.5px; }
  .accroche { padding: 56px 0 64px; }
  .accroche p { font-size: 17px; }
  .bouton.secondaire { margin: 12px 0 0; }
  section { padding: 60px 0; }
  .schema { padding: 18px; }
  .roles { gap: 12px; }
  .role { display: grid; grid-template-columns: 52px 1fr; gap: 0 14px; text-align: left; padding: 16px; align-items: center; }
  .role-icone { grid-row: span 2; }
  .role h3 { margin: 0 0 2px; }
}
