/* SARI CONCEPT — feuille de style principale
   Mise en page : sections pleine largeur, contenu centré (1240 px), alternance blanc / bleu glacier / bleu nuit */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/manrope-latin-0.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/sora-latin-1.woff2') format('woff2'); }

:root {
  --blue: #357CA8;
  --blue-dark: #1F5A80;
  --blue-light: #8EC3E6;
  --ice: #EEF5FA;
  --ice-line: #D6E5EF;
  --line: #E3ECF2;
  --ink: #14232F;
  --ink-2: #1C3142;
  --ink-3: #24405A;
  --text: #3B5163;
  --muted: #5A6F80;
  --white: #FFFFFF;
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s ease both; }
::view-transition-new(root) { animation: vt-in .45s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; text-wrap: balance; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-weight: 700; color: var(--blue); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); }
.lead { color: var(--text); }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 10px; padding: 13px 24px; border: 2px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); background: transparent; }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.12); }

/* Barre haute */
.topbar { background: var(--ice); border-bottom: 1px solid var(--ice-line); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 9px; }
.topbar-tag { font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.topbar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; color: var(--text); }
.topbar-links a { font-weight: 700; text-decoration: none; }
.topbar-links strong { color: var(--ink); }
.topbar-links a.tel { color: var(--text); font-weight: 600; }
.topbar-links a.tel strong { color: var(--ink); }
.client-link { display: inline-flex; align-items: center; gap: 6px; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 12px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; }
.nav a { position: relative; text-decoration: none; color: var(--ink); font-weight: 700; padding-block: 8px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--blue); border-radius: 2px; transition: right .3s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--blue); }
.menu-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 1080px) {
  .header .wrap { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* Diaporama d'accueil */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; min-height: 560px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide > img, .banner > img, .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom { animation: zoom 14s ease-in-out infinite alternate; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,28,40,.9) 0%, rgba(14,28,40,.62) 50%, rgba(14,28,40,.12) 100%); }
.slide-body { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; min-height: 560px; padding-block: 56px 96px; }
.slide-tag { align-self: flex-start; background: var(--blue); padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.slide h1, .slide h2 { max-width: 720px; font-size: clamp(34px, 5vw, 62px); line-height: 1.08; }
.slide p { max-width: 560px; font-size: 19px; color: #DCE8F1; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dots { position: absolute; left: 0; right: 0; bottom: 28px; }
.dots .wrap { display: flex; align-items: center; gap: 10px; }
.dot { cursor: pointer; border: none; padding: 0; height: 6px; width: 18px; border-radius: 3px; background: rgba(255,255,255,.45); transition: width .4s ease, background .4s ease; }
.dot.is-active { width: 56px; background: var(--white); }
.dots-pos { margin-left: auto; font-size: 13px; color: #C9D8E3; font-variant-numeric: tabular-nums; }

/* Bandeau de page métier */
.banner { position: relative; color: var(--white); overflow: hidden; min-height: 420px; background: var(--ink); }
.banner .shade { background: linear-gradient(90deg, rgba(14,28,40,.9) 0%, rgba(14,28,40,.55) 60%, rgba(14,28,40,.2) 100%); }
.banner-body { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: 420px; padding-block: 56px; }
.banner h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.banner p { max-width: 620px; font-size: 20px; color: #DCE8F1; }
.crumbs { font-size: 14px; color: #C9D8E3; }
.crumbs a { color: #C9D8E3; }

/* Sections */
.section { padding-block: 96px; }
.section-tight { padding-block: 72px; }
.bg-ice { background: var(--ice); }
.bg-ink { background: var(--ink); color: var(--white); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split.reverse { flex-wrap: wrap-reverse; }
.split > * { flex: 1 1 440px; min-width: 0; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo:hover img { transform: scale(1.06); }
.photo.tall { aspect-ratio: 4 / 5; max-width: 480px; }
.photo-plain { border: 1px solid var(--line); border-radius: 20px; background: #F7FAFC; padding: 20px; display: flex; justify-content: center; }
.badge-exp { position: absolute; right: -10px; bottom: -22px; background: var(--blue); color: var(--white); border-radius: 16px; padding: 16px 22px; box-shadow: 0 16px 34px rgba(53,124,168,.35); }
.badge-exp strong { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.badge-exp span { font-size: 13px; }
.photo-wrap { position: relative; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.checks li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--ice); color: var(--blue-dark); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 8px; }
.chip-round { padding: 10px 18px; border-radius: 999px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head > div { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }

/* Grilles de cartes */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-videos { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1000px) {
  .grid-real { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-real > .real:first-child, .grid-real > .real:last-child { grid-column: span 2; }
  .grid-real > .real:first-child .real-img, .grid-real > .real:last-child .real-img { aspect-ratio: 33 / 10; }
}
.card { background: var(--white); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(53,124,168,.18); color: var(--ink); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.card-body h3 { font-size: 20px; }
.card-body p { font-size: 14px; color: var(--text); }
.card-more { margin-top: 6px; font-weight: 700; color: var(--blue); font-size: 14px; }

.strength { border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s ease, box-shadow .3s ease; }
.strength:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(53,124,168,.18); }
.strength strong { font-family: var(--font-display); font-size: 54px; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.strength h3 { font-size: 22px; }
.strength p { color: var(--text); }
.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.sectors span:first-child { font-weight: 700; color: var(--muted); padding: 10px 4px; }

/* Réalisations (fond bleu nuit) */
.real { background: var(--ink-2); border: 1px solid #2C4558; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.real:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.real-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.real-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.real-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.real-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-light); }
.real-body h3 { font-size: 20px; line-height: 1.25; }
.real-body p { font-size: 15px; color: #C7D6E1; }
.real-techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.real-techs span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: var(--ink-3); color: #DCEBF5; }
.btn-onink { border-color: var(--blue-light); color: var(--white); }
.btn-onink:hover { color: var(--white); background: rgba(142,195,230,.15); }

/* Vidéos */
.video { background: var(--white); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease; }
.video.is-playing { grid-column: 1 / -1; box-shadow: 0 24px 50px rgba(20,35,47,.25); animation: fadein .6s ease both; }
.video-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; border: none; padding: 0; cursor: pointer; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s ease; }
.video-thumb:hover img { transform: scale(1.05); }
.play { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(53,124,168,.6); } 100% { box-shadow: 0 0 0 18px rgba(53,124,168,0); } }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.video-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.video-bar h3 { font-size: 16px; font-family: var(--font-body); font-weight: 700; }
.video.is-playing .video-bar h3 { font-family: var(--font-display); font-size: 18px; }
.video-close { display: none; }
.video.is-playing .video-close { display: inline-flex; padding: 8px 16px; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px; background: var(--ice); }
.contact-card small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card a { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-decoration: none; white-space: nowrap; }
.form { border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; box-shadow: 0 10px 30px rgba(20,35,47,.06); background: var(--white); }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 500; font-size: 16px; padding: 13px; border-radius: 10px; border: 2px solid var(--ice-line); background: var(--white); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.consent { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text); padding-top: 22px; }
.consent input { flex: none; width: 20px; height: 20px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 6px; }
.secure { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--ice-line); border-radius: 8px; padding: 10px 14px; }
.form small, .form .legal { font-size: 13px; color: var(--muted); }
.form .legal { font-size: 12px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.form-status.ok { background: #E6F4EA; color: #1E6B34; }
.form-status.err { background: #FDECEA; color: #A0281C; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .consent { padding-top: 0; } }

/* Nous trouver */
.site-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.map { width: 100%; aspect-ratio: 16 / 10; background: var(--ice) center / cover no-repeat; z-index: 0; }
.site-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.site-role { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--blue); padding: 5px 10px; border-radius: 6px; }
.site-body h2 { font-size: 26px; }
.site-body address { font-style: normal; font-size: 18px; font-weight: 600; }
.site-tel { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-decoration: none; }
.pin { width: 30px; height: 40px; }

/* Pied de page */
.footer { background: var(--ink); color: #C7D6E1; padding-block: 48px 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-col h2 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--white); }
.footer a { color: #C7D6E1; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer strong { color: var(--white); }
.footer-logo { background: var(--white); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; }
.footer-logo img { height: 48px; width: auto; }
.footer-bottom { border-top: 1px solid #2C4152; margin-top: 32px; padding-top: 20px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Texte légal */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 24px; margin-top: 18px; }

/* Apparitions en fondu */
@keyframes fadein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fadein { animation: fadein 1s ease both; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
