/* ICTools : charte d'origine (marine, bleu ciel, Jost / Open Sans / Poppins). */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-v18-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jost-v18-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/jost-v18-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-v40-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-v40-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-v40-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-v21-latin-500.woff2") format("woff2"); }

:root {
  --navy: #37517e;
  --navy-deep: #28395a;
  --sky: #47b2e4;
  --sky-hover: #209dd8;
  --mist: #f3f5fa;
  --ink: #444444;
  --line: #e2e7f1;
  --white: #ffffff;
  --head: "Jost", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  --ui: "Poppins", system-ui, sans-serif;
  --wrap: 1140px;
  --shadow: 0 0 25px 0 rgba(55, 81, 126, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-hover); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }

/* En-tête */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 18px 0; transition: background .4s, padding .4s; }
.site-head.solid, .site-head.scrolled { background: rgba(40, 57, 90, .95); padding: 12px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font: 500 15px/1 var(--ui); color: var(--white); padding: 10px 0; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sky); }
.nav .nav-cta { border: 2px solid var(--sky); border-radius: 50px; padding: 9px 22px; }
.nav .nav-cta:hover { background: var(--sky); color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: 6px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-radius: 8px; padding: 10px 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { color: var(--navy); padding: 14px 22px; }
  .nav .nav-cta { border: 0; border-radius: 0; padding: 14px 22px; }
  .nav .nav-cta:hover { background: none; color: var(--sky); }
}

/* Boutons */
.btn { display: inline-block; font: 500 16px/1 var(--head); letter-spacing: .5px; padding: 14px 30px; border-radius: 50px; transition: background .3s, color .3s, border-color .3s; }
.btn-sky { background: var(--sky); color: var(--white); }
.btn-sky:hover { background: var(--sky-hover); color: var(--white); }
.btn-ghost { color: var(--white); border: 2px solid rgba(255, 255, 255, .35); padding: 12px 28px; }
.btn-ghost:hover { border-color: var(--sky); color: var(--white); }
.btn-line { font: 500 14px/1 var(--ui); letter-spacing: 1px; border-radius: 4px; color: var(--sky); border: 2px solid var(--sky); padding: 12px 30px; }
.btn-line:hover { background: var(--sky); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--sky); color: var(--white); }

/* Héro */
.hero { background: var(--navy); color: var(--white); padding: 140px 0 80px; min-height: min(92vh, 820px); display: flex; align-items: center; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; line-height: 1.12; margin-bottom: 18px; max-width: 14ch; }
.hero .lead { color: rgba(255, 255, 255, .7); font: 400 clamp(17px, 1.7vw, 21px)/1.5 var(--head); max-width: 34em; margin-bottom: 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-img img { width: 100%; animation: up-down 2s ease-in-out infinite alternate-reverse both; }
@keyframes up-down { from { transform: translateY(10px); } to { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .hero { padding: 110px 0 60px; min-height: 0; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
  .hero-img { order: -1; max-width: 340px; margin: 0 auto; }
}

/* Sections */
.section { padding: 80px 0; }
.section.mist { background: var(--mist); }
.section-title { text-align: center; max-width: 900px; margin: 0 auto 48px; }
.section-title h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 700; text-transform: uppercase; position: relative; padding-bottom: 20px; margin-bottom: 20px; }
.section-title h2::before { content: ""; position: absolute; width: 120px; height: 1px; background: #d9dee8; bottom: 1px; left: calc(50% - 60px); }
.section-title h2::after { content: ""; position: absolute; width: 40px; height: 3px; background: var(--sky); bottom: 0; left: calc(50% - 20px); }
.section-title p { margin: 0; }

/* Schéma animé */
.flow { max-width: 980px; margin: 0 auto 48px; }
.flow svg { width: 100%; }
.flow .track { stroke: #cfd8e8; }
.flow .lit { stroke: var(--sky); stroke-dasharray: 760; stroke-dashoffset: 760; }
.flow .ring { fill: var(--white); stroke: #cfd8e8; }
.flow .disc { fill: var(--navy); }
.flow .glyph { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow .glyph-fill { fill: var(--white); }
.flow .pulse { fill: none; stroke: var(--sky); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.flow .packet { fill: var(--sky); }
.flow .label { font: 600 17px var(--head); fill: var(--navy); text-anchor: middle; }
.flow .sub { font: 400 13px var(--body); fill: #6b7a95; text-anchor: middle; }
.flow .spark { fill: var(--sky); opacity: .25; }
.flow .led { fill: #cfd8e8; }
@media (prefers-reduced-motion: no-preference) {
  .flow.play .lit { animation: draw 9s linear infinite; }
  .flow.play .packet { animation: travel 9s linear infinite; }
  .flow.play .d1 { animation: glow 9s infinite; }
  .flow.play .d2 { animation: glow 9s infinite 3s; }
  .flow.play .d3 { animation: glow 9s infinite 6s; }
  .flow.play .p1 { animation: ping 9s infinite; }
  .flow.play .p2 { animation: ping 9s infinite 3s; }
  .flow.play .p3 { animation: ping 9s infinite 6s; }
  .flow.play .spark { animation: twinkle 1.5s ease-in-out infinite alternate; }
  .flow.play .spark:nth-of-type(2n) { animation-delay: .5s; }
  .flow.play .spark:nth-of-type(3n) { animation-delay: 1s; }
  .flow.play .led { animation: led 1.2s steps(1) infinite; }
  .flow.play .led:nth-of-type(2) { animation-delay: .4s; }
  .flow.play .led:nth-of-type(3) { animation-delay: .8s; }
}
@media (prefers-reduced-motion: reduce) { .flow .lit { stroke-dashoffset: 0; } .flow .packet { display: none; } .flow .disc { fill: var(--sky); } }
@keyframes draw { 0% { stroke-dashoffset: 760; } 75% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes travel { 0% { transform: translateX(0); opacity: 1; } 75% { transform: translateX(760px); opacity: 1; } 80%, 100% { transform: translateX(760px); opacity: 0; } }
@keyframes glow { 0%, 2% { fill: var(--navy); } 6%, 60% { fill: var(--sky); } 70%, 100% { fill: var(--navy); } }
@keyframes ping { 0% { opacity: 0; transform: scale(1); } 2% { opacity: .9; transform: scale(1); } 16% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
@keyframes twinkle { from { opacity: .2; } to { opacity: 1; } }
@keyframes led { 0% { fill: var(--sky); } 50% { fill: #cfd8e8; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { background: var(--white); box-shadow: var(--shadow); border-radius: 6px; padding: 40px 30px 34px; border-top: 3px solid var(--sky); }
.step-num { display: inline-block; font: 500 13px/1 var(--ui); color: var(--sky); margin-bottom: 14px; }
.step h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.step > p { margin-bottom: 18px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Principes */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.principle .ico { width: 56px; height: 56px; border-radius: 50%; background: rgba(71, 178, 228, .12); display: grid; place-items: center; }
.principle .ico svg { width: 26px; height: 26px; stroke: var(--sky); }
.principle h3 { font-size: 20px; font-weight: 600; margin: 4px 0 6px; }
.principle p { margin: 0; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* À propos */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about .btn-line { margin-top: 8px; }
.id-card { background: var(--mist); border-radius: 6px; padding: 26px 28px; }
.id-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.id-card dt { font: 500 14px/1.6 var(--ui); color: var(--navy); }
.id-card dd { margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Bandeau d'appel */
.cta { background: linear-gradient(rgba(40, 57, 90, .9), rgba(40, 57, 90, .9)), url("../img/cta-bg.jpg") center / cover; color: var(--white); padding: 70px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { color: var(--white); font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 40em; }
.cta .btn { flex: none; border: 2px solid var(--white); background: none; color: var(--white); }
.cta .btn:hover { background: var(--sky); border-color: var(--sky); }
@media (max-width: 760px) { .cta .wrap { flex-direction: column; text-align: center; } }

/* Pages intérieures */
.page-head { background: var(--mist); padding: 120px 0 36px; }
.crumbs { font-size: 14px; margin-bottom: 8px; }
.crumbs a { color: var(--navy); }
.page-head h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; margin-bottom: 10px; }
.page-head p { max-width: 46em; margin: 0; }

.service { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service h2 { font-size: 30px; font-weight: 700; }
.boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.box { background: var(--white); box-shadow: var(--shadow); border-radius: 6px; padding: 28px 26px; }
.box .ico { width: 44px; height: 44px; margin-bottom: 14px; }
.box .ico svg { width: 44px; height: 44px; stroke: var(--sky); }
.box h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.box p { margin: 0; }
@media (max-width: 960px) { .service { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) { .boxes { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 60px 16px 80px; }
.contact-grid .mail { font: 600 clamp(22px, 3vw, 30px)/1.2 var(--head); word-break: break-word; }
.brief { background: var(--white); box-shadow: var(--shadow); border-radius: 6px; padding: 34px 32px; border-top: 3px solid var(--sky); }
.brief h2 { font-size: 24px; }
.brief ol { padding-left: 1.3em; margin: 0 0 24px; }
.brief li { padding: 4px 0; }
.hint { font-size: 14px; color: #6b7a95; margin: 18px 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.prose { max-width: 760px; padding: 50px 0 80px; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }

.lost { padding: 160px 0 100px; text-align: center; }
.lost .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* Pied de page */
.site-foot { font-size: 14px; }
.foot-top { background: var(--white); padding: 60px 0 30px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.foot-grid h2.co { font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.foot-grid address { font-style: normal; line-height: 1.9; color: #5e5e5e; }
.foot-grid ul { list-style: none; }
.foot-grid li { padding: 5px 0; }
.foot-grid li a { color: #777; }
.foot-grid li a:hover { color: var(--sky); }
.foot-bottom { background: var(--navy); color: var(--white); padding: 22px 0; }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img img { animation: none; }
}

@media (max-width: 600px) { .flow .label, .flow .sub { display: none; } .flow { margin-bottom: 28px; } }
