/* ITMACWINOS — feuille de style
   Esprit intégrateur réseau : blanc net, bleu franc, sections marine, cartes arrondies, beaucoup d'air.
   Police : Figtree (licence SIL OFL), hébergée sur le site. */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #050f1e;
  --navy-900: #07182d;
  --navy-800: #0c2442;
  --navy-700: #15375f;
  --blue: #0a6cff;
  --blue-600: #0057d6;
  --blue-50: #edf4ff;
  --cyan: #63c7ff;
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #eceff3;
  --border: #e1e6ed;
  --text: #0b1726;
  --text-2: #4c586a;
  --text-3: #6b7689;
  --on-dark: #e9f0f8;
  --on-dark-2: #a8b6c8;
  --on-dark-line: rgba(233, 240, 248, .13);
  --wa: #12874a;
  --wa-hover: #0d6e3b;

  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 8vw, 7rem);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-hover: 0 1px 2px rgba(11, 23, 38, .05), 0 12px 32px rgba(11, 23, 38, .08);
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.25rem); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg.icon { display: block; flex: none; }

h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.8vw, 4rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-600); text-underline-offset: .2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--cyan); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--navy-900); color: var(--white); padding: .6rem 1rem; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: .75rem; color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn .icon { width: 19px; height: 19px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); color: var(--white); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .07); }
.btn-outline { color: var(--text); border-color: var(--border); background: var(--white); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-white { background: var(--white); color: var(--navy-900); }
.btn-white:hover { background: var(--blue-50); color: var(--navy-900); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--blue-600); text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------ barre du haut */
.topbar { background: var(--navy-900); color: var(--on-dark-2); font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar .avail { display: inline-flex; align-items: center; gap: .45rem; color: var(--on-dark); font-weight: 500; }
.topbar .avail .icon { width: 16px; height: 16px; color: var(--cyan); }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar a { color: var(--on-dark-2); text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--white); }

/* ------------------------------------------------------------ en-tête */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--border); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(11, 23, 38, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { flex: none; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav a { display: block; color: var(--text); text-decoration: none; font-weight: 550; font-size: .98rem; padding: .5rem .85rem; border-radius: 999px; transition: background-color .2s ease; }
.nav a:hover { background: var(--gray-50); color: var(--text); }
.nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-50); }
.nav .nav-home { display: none; }
.nav .lang a { color: var(--text-2); font-weight: 500; }
.header-cta { padding: .7rem 1.2rem; font-size: .95rem; }
.nav-toggle { display: none; font: inherit; font-weight: 600; color: var(--text); background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }

@media (max-width: 999px) {
  .topbar-links .second, .topbar-links .mail { display: none; }
}
@media (max-width: 899px) {
  .site-header .wrap { gap: .6rem; }
  .brand img { height: 26px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 29; background: var(--white); padding: 1.25rem var(--gutter) 7rem; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s; }
  .menu-open .nav { visibility: visible; opacity: 1; transition: opacity .2s ease; }
  .menu-open { overflow: hidden; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav a { font-size: 1.35rem; padding: .85rem 1rem; border-radius: var(--r-sm); }
  .nav .nav-home { display: block; }
  .nav .lang { margin-top: .75rem; border-top: 1px solid var(--border); padding-top: .75rem; }
  .nav .lang a { font-size: 1.05rem; }
}
@media (max-width: 559px) {
  .topbar .wrap { justify-content: center; }
  .topbar-links { display: none; }
}

/* ------------------------------------------------------------ bannière d'accueil */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(10, 108, 255, .38), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(99, 199, 255, .10), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, #0a2445 100%);
}
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 5vw, 4.5rem); }
.hero-text { grid-column: 1 / span 7; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 600; color: var(--white); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); padding: .45rem .9rem .45rem .7rem; border-radius: 999px; margin-bottom: 1.75rem; }
.badge .icon { width: 17px; height: 17px; color: var(--cyan); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.4rem; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--on-dark); max-width: 36rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-media { grid-column: 9 / span 4; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 70px rgba(2, 8, 20, .45); background: var(--navy-800); }
.stats { list-style: none; margin: 0; padding: 2rem 0 clamp(3rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--on-dark-line); }
.stats li { display: flex; flex-direction: column; gap: .25rem; }
.stats strong { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; color: var(--white); line-height: 1.1; }
.stats span { color: var(--on-dark-2); font-size: .98rem; }

/* ------------------------------------------------------------ sections */
.section { padding-block: var(--section); }
.section.gray { background: var(--gray-50); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.head-text { max-width: 44rem; }
.head-text p { color: var(--text-2); font-size: 1.1rem; margin-top: .9rem; }

/* cartes */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.icon-tile .icon { width: 28px; height: 28px; }

/* services */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.svc a { display: flex; flex-direction: column; height: 100%; padding: 1.75rem 1.6rem 1.6rem; color: inherit; text-decoration: none; }
.svc:hover { box-shadow: var(--shadow-hover); border-color: #cfd8e3; transform: translateY(-2px); }
.svc .icon-tile { margin-bottom: 1.4rem; }
.svc h3 { margin-bottom: .55rem; }
.svc p { color: var(--text-2); font-size: .97rem; line-height: 1.55; margin-bottom: 1.4rem; }
.svc .link-arrow { margin-top: auto; font-size: .95rem; }
.svc-cta { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); padding: 1.75rem 1.6rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; background-image: radial-gradient(400px 260px at 100% 0%, rgba(10, 108, 255, .45), transparent 70%); }
.svc-cta h3 { font-size: 1.3rem; }
.svc-cta p { color: var(--on-dark-2); font-size: .97rem; margin-top: .6rem; }
.svc-cta .btn { align-self: flex-start; }

/* approche, avec une seule photo */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: 2.5rem; align-items: center; }
.split figure { grid-column: 1 / span 5; margin: 0; }
.split figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--gray-100); }
.split-text { grid-column: 7 / span 6; }
.split-text h2 { margin-bottom: 1.4rem; }
.split-text p { color: var(--text-2); font-size: 1.08rem; }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.45; }
.checks .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; margin-top: .05rem; }
.checks .tick .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.split-text .link-arrow { margin-top: 1.75rem; }

/* références */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ref { padding: 2rem 1.75rem; }
.ref .icon-tile { margin-bottom: 1.4rem; }
.ref h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.ref > p { color: var(--text-2); font-size: .98rem; }
.ref .checks { font-size: .97rem; gap: .6rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.note { margin-top: 1.75rem; font-size: .95rem; color: var(--text-3); }

/* méthode */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.steps li { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem 1.35rem; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; font-size: .95rem; margin-bottom: 1.1rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.steps p { color: var(--text-2); font-size: .95rem; line-height: 1.5; }

/* disponibilité dans tout le Maroc */
.zone { position: relative; color: var(--white); background: radial-gradient(800px 480px at 100% 100%, rgba(10, 108, 255, .4), transparent 60%), var(--navy-900); padding-block: var(--section); overflow: hidden; }
.zone-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: 2.5rem; align-items: center; }
.zone-text { grid-column: 1 / span 6; }
.zone-text .badge { margin-bottom: 1.4rem; }
.zone-text p { color: var(--on-dark); font-size: 1.1rem; margin-top: 1.2rem; max-width: 34rem; }
.zone-text .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.zone-points { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.zone-points li { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid var(--on-dark-line); font-weight: 600; font-size: 1.05rem; }
.zone-points .icon-tile { width: 46px; height: 46px; border-radius: 12px; background: rgba(99, 199, 255, .12); color: var(--cyan); }
.zone-points .icon-tile .icon { width: 25px; height: 25px; }

/* partenaires */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.partner { padding: 2rem 1.75rem; }
.partner-name { display: block; font-size: clamp(1.6rem, 2.4vw, 2.05rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; color: var(--navy-900); }
.partner-sub { display: inline-block; margin-top: .8rem; font-size: .85rem; font-weight: 600; color: var(--blue-600); background: var(--blue-50); padding: .25rem .65rem; border-radius: 999px; }
.partner p { margin-top: 1.25rem; color: var(--text-2); font-size: .98rem; }

/* bandeau contact */
.contact-cta { padding-block: 0 var(--section); }
.cta-card { border-radius: var(--r-lg); color: var(--white); padding: clamp(2rem, 5vw, 3.75rem); background: radial-gradient(700px 400px at 100% 0%, rgba(99, 199, 255, .28), transparent 60%), linear-gradient(135deg, #0a4fbf 0%, #0a64ec 55%, #1f7dff 100%); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: 2.5rem; align-items: center; }
.cta-card .intro { grid-column: 1 / span 6; }
.cta-card .intro p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; margin-top: 1rem; max-width: 32rem; }
.cta-card .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.cta-card .coords { grid-column: 8 / span 5; }

.coords { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.coords li { display: flex; gap: .9rem; align-items: flex-start; }
.coords .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.coords .icon-tile .icon { width: 22px; height: 22px; }
.coords h3 { font-size: .85rem; font-weight: 600; color: var(--text-3); margin-bottom: .15rem; letter-spacing: 0; }
.coords a, .coords .val { display: block; color: var(--text); text-decoration: none; font-size: 1.06rem; font-weight: 650; line-height: 1.45; }
.coords a:hover { color: var(--blue-600); }
.cta-card .coords .icon-tile { background: rgba(255, 255, 255, .16); color: var(--white); }
.cta-card .coords h3 { color: rgba(255, 255, 255, .8); }
.cta-card .coords a, .cta-card .coords .val { color: var(--white); }
.cta-card .coords a:hover { color: var(--white); text-decoration: underline; }
.cta-card :focus-visible { outline-color: var(--white); }



/* onglet références */
.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.sector { padding: 1.5rem 1.35rem; display: flex; flex-direction: column; gap: 1.1rem; }
.sector h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.sector p { color: var(--text-2); font-size: .93rem; line-height: 1.5; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.project { padding: 1.75rem 1.6rem; display: flex; flex-direction: column; }
.project-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; }
.project-top .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.project-top .icon-tile .icon { width: 24px; height: 24px; }
.project-sector { font-size: .9rem; font-weight: 600; color: var(--blue-600); }
.project h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.project p { color: var(--text-2); font-size: .97rem; line-height: 1.55; }
.chips { list-style: none; margin: auto 0 0; padding: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .82rem; font-weight: 600; color: var(--text-2); background: var(--gray-50); border: 1px solid var(--border); border-radius: 999px; padding: .25rem .7rem; }
.more-card { border-radius: var(--r-lg); color: var(--white); text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); background: radial-gradient(700px 380px at 50% 0%, rgba(10, 108, 255, .45), transparent 65%), var(--navy-900); display: flex; flex-direction: column; align-items: center; }
.more-card .icon-tile { background: rgba(99, 199, 255, .14); color: var(--cyan); margin-bottom: 1.5rem; }
.more-card h2 { max-width: 22ch; }
.more-text { margin-top: 1.25rem; max-width: 40rem; }
.more-text p { color: var(--on-dark); font-size: 1.12rem; line-height: 1.65; }
.more-card .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }

/* mot du fondateur */
.founder-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: 2.5rem; align-items: center; }
.founder-photo { grid-column: 1 / span 5; margin: 0; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-lg); background: var(--gray-100); }
.founder-text { grid-column: 7 / span 6; }
.founder-text h2 { margin-bottom: 1.75rem; }
.founder-text blockquote { margin: 0; padding-left: 1.5rem; border-left: 3px solid var(--blue); }
.founder-text blockquote p { font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.65; color: var(--text-2); }
.founder-sign { margin-top: 2rem; padding-left: 1.5rem; display: flex; flex-direction: column; gap: .15rem; }
.founder-sign strong { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.founder-sign span { color: var(--text-3); font-size: .98rem; }

/* ------------------------------------------------------------ pages intérieures */
.page-hero { color: var(--white); background: radial-gradient(800px 420px at 90% 0%, rgba(10, 108, 255, .35), transparent 62%), linear-gradient(180deg, var(--navy-900), #0a2445); padding-block: clamp(3rem, 6vw, 4.75rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.page-hero .lead { margin-top: 1rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--on-dark); max-width: 42rem; }
.page-hero .badge { margin-bottom: 1.25rem; }

/* services */
.services-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); padding-block: var(--section); }
.service-index { grid-column: 1 / span 3; }
.service-index nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.service-index p { font-size: .85rem; color: var(--text-3); margin-bottom: .6rem; font-weight: 600; }
.service-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.service-index a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.3; }
.service-index a .icon { width: 20px; height: 20px; color: var(--text-3); }
.service-index a:hover { background: var(--gray-50); color: var(--text); }
.service-index a.is-active { background: var(--blue-50); color: var(--blue-600); }
.service-index a.is-active .icon { color: var(--blue); }
.services-body { grid-column: 4 / span 9; display: grid; gap: 1.25rem; }
.service { padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.service-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.service-title h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.service .prose p { color: var(--text-2); }
.service-kit { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.service-kit h3 { font-size: .95rem; margin-bottom: 1rem; }
.service-kit .checks { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem; font-size: .98rem; }
.after { padding-block: 0 var(--section); }
.after .card { padding: clamp(1.75rem, 3.5vw, 2.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: 1rem; background: var(--gray-50); }
.after h2 { grid-column: 1 / span 4; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.after .prose { grid-column: 6 / span 7; color: var(--text-2); }

/* réalisations */
.tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; background: var(--gray-50); border: 1px solid var(--border); border-radius: 999px; margin-bottom: 2.5rem; }
.tabs button { font: inherit; font-size: .95rem; font-weight: 600; color: var(--text-2); background: transparent; border: 0; border-radius: 999px; padding: .55rem 1.05rem; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-pressed="true"] { background: var(--white); color: var(--blue-600); box-shadow: 0 1px 3px rgba(11, 23, 38, .12); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.work-item { margin: 0; }
.work-item[hidden] { display: none; }
.work-item a { display: block; border-radius: var(--r); overflow: hidden; background: var(--gray-100); }
.work-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.work-item a:hover img { transform: scale(1.04); }
.work-item figcaption { margin-top: .85rem; }
.work-item h2 { font-size: 1rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.35; }
.work-item .cat { display: block; font-size: .88rem; color: var(--text-3); margin-top: .15rem; }
.work-item .desc { display: none; }
.more-row { display: flex; justify-content: center; margin-top: 3rem; }
.more-row[hidden] { display: none; }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--navy-950); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(5, 15, 30, .7); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); font-size: .95rem; color: var(--on-dark-2); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 14rem); max-height: calc(100dvh - 14rem); width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.lb-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start; padding: 1.25rem var(--gutter) 1.5rem; }
.lb-caption h2 { font-size: 1.1rem; font-weight: 650; color: var(--white); margin-bottom: .25rem; letter-spacing: 0; }
.lb-caption p { font-size: .95rem; line-height: 1.5; color: var(--on-dark-2); max-width: 46em; }
.lb-btn { font: inherit; font-size: .95rem; font-weight: 600; color: var(--white); background: rgba(255, 255, 255, .06); border: 1px solid var(--on-dark-line); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .12); }
.lightbox :focus-visible { outline-color: var(--cyan); }

/* page contact */
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: 1.25rem; padding-block: var(--section); align-items: start; }
.contact-side { grid-column: 1 / span 5; display: grid; gap: 1.25rem; }
.contact-main { grid-column: 6 / span 7; }
.panel { padding: clamp(1.5rem, 3vw, 2.25rem); }
.panel > h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 1.4rem; }
.panel .checks { margin-top: 0; }
.avail-panel { background: var(--blue-50); border-color: #d3e3ff; display: flex; gap: 1rem; align-items: flex-start; }
.avail-panel .icon-tile { background: var(--white); }
.avail-panel strong { display: block; font-size: 1.08rem; margin-bottom: .2rem; }
.avail-panel p { color: var(--text-2); font-size: .97rem; }
.copy-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; font-size: .93rem; }
.copy-btn { font: inherit; font-weight: 600; color: var(--text); background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .45rem .95rem; cursor: pointer; }
.copy-btn:hover { border-color: var(--text); }
.copy-status { color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .93rem; font-weight: 600; }
.field .opt { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .8rem .95rem; width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c4cfdc; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 108, 255, .12); outline: none; }
.form-foot { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.form-note { font-size: .92rem; line-height: 1.55; color: var(--text-3); }
.form-status { font-size: .97rem; color: var(--blue-600); font-weight: 600; }

/* 404 */
.notfound { padding-block: clamp(4rem, 12vw, 8rem); }
.notfound .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.notfound h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.notfound h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.notfound p { color: var(--text-2); margin-top: 1rem; }

/* ------------------------------------------------------------ pied de page */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding-block: clamp(3.5rem, 6vw, 4.75rem) 2rem; font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: 2.5rem; }
.footer-brand { grid-column: 1 / span 4; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin-top: 1.25rem; line-height: 1.6; max-width: 24rem; }
.footer-brand .badge { margin: 1.25rem 0 0; font-size: .85rem; }
.footer-col { grid-column: span 2; }
.footer-col.wide, .footer-col.contact { grid-column: span 3; }
.footer-col h2 { font-size: .95rem; font-weight: 650; color: var(--white); margin-bottom: 1rem; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.contact-line { display: flex; gap: .6rem; align-items: flex-start; }
.contact-line .icon { width: 18px; height: 18px; color: var(--cyan); margin-top: .18rem; }
.footer-bottom { margin-top: clamp(3rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--on-dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }

/* ------------------------------------------------------------ bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: clamp(1rem, 2.5vw, 1.5rem); bottom: clamp(1rem, 2.5vw, 1.5rem); z-index: 40;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--wa); color: var(--white); text-decoration: none; font-weight: 650; font-size: 1rem;
  padding: .8rem 1.2rem .8rem .95rem; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(5, 15, 30, .25), 0 1px 3px rgba(5, 15, 30, .2);
  transition: background-color .2s ease, transform .2s ease;
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { background: var(--wa-hover); color: var(--white); transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ------------------------------------------------------------ adaptatif */
@media (max-width: 1099px) {
  .header-cta { display: none; }
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero-text, .hero-media { grid-column: 1 / -1; }
  .hero-media { max-width: 520px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .split figure, .split-text { grid-column: 1 / -1; }
  .split figure img { aspect-ratio: 16 / 10; }
  .refs, .partners { grid-template-columns: 1fr; }
  .zone-text, .zone-points { grid-column: 1 / -1; }
  .cta-card .intro, .cta-card .coords { grid-column: 1 / -1; }
  .founder-photo, .founder-text { grid-column: 1 / -1; }
  .founder-photo { max-width: 420px; }
  .service-index { display: none; }
  .services-body { grid-column: 1 / -1; }
  .after h2, .after .prose { grid-column: 1 / -1; }
  .contact-side, .contact-main { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col.wide, .footer-col.contact { grid-column: span 6; }
}
@media (max-width: 599px) {
  .stats { grid-template-columns: 1fr; gap: 1.1rem; }
  .sectors, .projects { grid-template-columns: 1fr; }
  .sector { flex-direction: row; align-items: flex-start; }
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .service-kit .checks { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { gap: 1.5rem .9rem; }
  .tabs { border-radius: var(--r); }
  .footer-col, .footer-col.wide, .footer-col.contact { grid-column: 1 / -1; }
  .notfound .cols { grid-template-columns: 1fr; }
  .lb-foot { grid-template-columns: 1fr 1fr; }
  .lb-caption { grid-column: 1 / -1; grid-row: 1; }
  .wa-float { padding: .9rem; }
  .wa-float .wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-footer { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .topbar, .site-header, .wa-float, .contact-cta { display: none; }
}
