/* ISCOVA – feuille de style unique.
   Palette officielle : bleu #084BA5, orange #FF6500, blanc / gris clair #FFFFFF / #F3F6FA. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #084ba5;
  --blue-deep: #06377a;
  --navy: #072c63;
  --orange: #ff6500;
  --orange-text: #b84400; /* orange assombri : texte lisible sur fond blanc */
  --ink: #0e1a2e;
  --muted: #475670;
  --tint: #f3f6fa;
  --line: #dce3ee;
  --white: #fff;
  --wa: #0f8044;
  --radius: 8px;
  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 2rem);
  --header-h: 4.5rem;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pole:hover .pole__photo img { transform: none; } }

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  font-weight: 420;
  font-stretch: 100%;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-deep); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 0.75rem); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.7rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- icônes ---------- */
.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--fill { fill: currentColor; stroke: none; }
svg.i:not([width]) { width: 1.25rem; height: 1.25rem; }

/* ---------- titres ---------- */
h1, h2, h3 { font-stretch: 125%; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(1.95rem, 1.1rem + 3.5vw, 3.35rem); }
h2 { font-weight: 800; font-size: clamp(1.45rem, 1rem + 1.7vw, 2.2rem); font-stretch: 118%; }
h3 { font-weight: 700; font-size: 1.15rem; font-stretch: 108%; line-height: 1.25; }
p { max-width: 62ch; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 56ch; }

/* ---------- boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: inherit; font-weight: 700; font-stretch: 105%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--sm { min-height: 2.6rem; padding: 0.5rem 1.05rem; font-size: 0.95rem; }
.btn--accent { background: var(--orange); color: var(--ink); }
.btn--accent:hover { background: #ff7a26; color: var(--ink); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #0b6a38; color: var(--white); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.85); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--blue); }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 2.35rem; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.15rem; }
.nav a {
  position: relative; display: block; padding: 0.55rem 0.8rem;
  font-weight: 650; font-stretch: 104%; font-size: 0.95rem; color: var(--ink); text-decoration: none;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.1rem; height: 3px; background: var(--orange); border-radius: 2px;
}
.menu-btn { display: none; }

@media (max-width: 62rem) {
  .site-header__cta { display: none; }
  .site-header__bar { flex-wrap: wrap; padding-block: 0.6rem; row-gap: 0; }
  .nav { margin: 0; flex-basis: 100%; order: 3; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 0.9rem 0; font-size: 1.05rem; border-top: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 2.2rem; bottom: 0.55rem; }

  /* Sans JavaScript, le menu reste visible sous le logo. Avec JavaScript, il se replie derrière le bouton. */
  .js .menu-btn {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 2.9rem; height: 2.9rem; background: none; border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer;
  }
  .menu-btn__close { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; margin-top: 0.5rem; padding-bottom: 0.75rem; }
}

/* ---------- accueil : hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 7vw, 6rem) clamp(8.5rem, 21vw, 14rem); background: var(--white); }
.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-top: 1.5rem; }
.hero__swoosh {
  position: absolute; z-index: 0; right: -1%; bottom: -1px; width: min(90%, 1120px); height: auto; color: var(--orange);
}
@media (max-width: 40rem) { .hero__swoosh { width: 112%; right: -2%; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section--tint { background: var(--tint); }
.section--flush { padding-top: clamp(2rem, 4vw, 3rem); }
.section__title { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); max-width: 22em; }
.note { margin-top: 2rem; padding-left: 1rem; border-left: 4px solid var(--orange); color: var(--muted); max-width: 60ch; }
.more { margin-top: 1.5rem; font-weight: 650; }

/* pôles : lignes pleine largeur */
.poles { border-top: 2px solid var(--ink); }
.pole {
  display: grid; grid-template-columns: clamp(9rem, 22vw, 15rem) minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 1.75rem;
  padding: clamp(1.4rem, 3vw, 2.1rem) 0.25rem; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: background-color 0.15s;
}
.pole:hover { background: var(--tint); color: inherit; }
.pole__photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--blue); }
.pole__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pole:hover .pole__photo img { transform: scale(1.04); }
.pole__icon { position: absolute; left: 0.6rem; bottom: 0.6rem; display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--blue); color: var(--white); border-radius: 10px; transition: background-color 0.15s; }
.pole:hover .pole__icon { background: var(--orange); color: var(--ink); }
.pole__body { display: block; }
.pole__name { display: block; font-weight: 800; font-stretch: 122%; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.95rem); line-height: 1.15; color: var(--ink); }
.pole__text { display: block; margin-top: 0.45rem; max-width: 60ch; color: var(--muted); }
.pole__go { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
@media (max-width: 48rem) {
  .pole { grid-template-columns: 1fr; }
  .pole__photo { aspect-ratio: 16 / 9; }
}

/* présentation */
.about { display: grid; gap: 1.5rem 4rem; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.about .section__title { margin-bottom: 0; }
.about__text { display: grid; gap: 1rem; }
@media (max-width: 52rem) { .about { grid-template-columns: 1fr; } }

/* autres activités */
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chips li { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--white); }
.chips .i { color: var(--blue); }

/* étapes : une vraie séquence, donc numérotée */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { position: relative; padding-top: 1.1rem; border-top: 4px solid var(--blue); counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 0.5rem;
  font-weight: 800; font-stretch: 125%; font-size: 2.4rem; line-height: 1; color: #e05500; /* orange ISCOVA légèrement assombri : 3,8:1 sur blanc */
}
.section--tint .steps li::before { color: #d24f00; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); }
@media (max-width: 48rem) { .steps { grid-template-columns: 1fr; gap: 1.75rem; } }

/* bandeau d'appel à l'action */
.band { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding-block: clamp(3.25rem, 7vw, 5.25rem); }
.band__inner { position: relative; z-index: 1; }
.band h2, .band p { color: var(--white); }
.band p { margin-top: 0.9rem; max-width: 52ch; color: #e3ecfa; }
.band__swoosh { position: absolute; z-index: 0; right: 1.5%; bottom: -3%; width: min(62%, 760px); height: auto; color: var(--orange); opacity: 0.95; }
@media (max-width: 52rem) { .band__swoosh { width: 105%; right: -2%; bottom: -6%; opacity: 0.3; } }

/* ---------- pages intérieures ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.75rem); background: var(--tint); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.page-hero h1 { font-size: clamp(1.8rem, 1rem + 3vw, 2.9rem); }
.page-hero .lead { margin-top: 1.25rem; }
.page-hero__art { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue); }
.page-hero__art .art, .page-hero__art img { display: block; width: 100%; height: 100%; }
.page-hero__art img { object-fit: cover; }
.page-hero--plain { padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 52rem) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { aspect-ratio: 16 / 9; }
}

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.svc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc { padding-top: 1.25rem; border-top: 3px solid var(--blue); }
.svc__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; background: var(--tint); color: var(--blue); border-radius: 10px; }
.section--tint .svc__icon { background: var(--white); }
.svc h3 { margin-bottom: 0.45rem; }
.svc p { color: var(--muted); }
.svc--photo { padding-top: 0; border-top: 0; }
.svc__media { position: relative; display: block; aspect-ratio: 5 / 4; margin-bottom: 1rem; border-radius: 14px; overflow: hidden; background: var(--blue); }
.svc__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc__media .svc__icon, .section--tint .svc__media .svc__icon { position: absolute; left: 0.6rem; bottom: 0.6rem; width: 2.75rem; height: 2.75rem; margin: 0; background: var(--blue); color: var(--white); }
.svc--cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.9rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 0; border-radius: 14px; background: var(--blue); color: var(--white); }
.svc--cta h3 { margin: 0; color: var(--white); }
.svc--cta p { color: rgba(255, 255, 255, 0.9); }
@media (max-width: 60rem) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .svc-grid, .svc-grid--2 { grid-template-columns: 1fr; } }

/* bloc formulaire + côté */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split__side .section__title { margin-bottom: 1rem; }
.split__side p { color: var(--muted); }
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
  .split__main { order: -1; } /* sur téléphone, le formulaire passe avant le reste */
}

.contact-list { display: grid; gap: 0.9rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-list .i { margin-top: 0.3em; color: var(--blue); }
.contact-list--big { gap: 1.25rem; }
.contact-list--big li > span { display: grid; }
.contact-list--big small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.contact-list--big a, .contact-list--big span span { font-weight: 650; font-size: 1.1rem; overflow-wrap: anywhere; }

/* ---------- formulaires ---------- */
.form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); }
.form h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.6rem); }
.field { display: grid; gap: 0.4rem; }
.field--short { max-width: 14rem; }
.field label { font-weight: 650; font-size: 0.97rem; }
.req { color: var(--orange-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #b3c0d5; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(8, 75, 165, 0.3); outline-offset: 0; border-color: var(--blue); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c0261d; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5rem; font-weight: 600; }
.form__status.is-ok { color: #0b6a38; }
.form__status.is-error { color: #b3261e; }
.form__status a { font-weight: 700; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--navy); color: #dbe6f8; padding-top: clamp(2.75rem, 6vw, 4.25rem); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2.5rem; padding-bottom: 2.75rem; }
.site-footer__brand img { width: 11rem; height: auto; margin-bottom: 1.1rem; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__title { font-size: 1rem; font-stretch: 112%; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.plain { display: grid; gap: 0.6rem; }
.site-footer .contact-list .i { color: var(--orange); }
.social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 50%; }
.social a:hover { border-color: var(--orange); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.9rem; }
@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- contact rapide : barre mobile + bouton WhatsApp ---------- */
.dock { display: none; }
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: grid; place-items: center;
  width: 3.7rem; height: 3.7rem; border-radius: 50%; background: var(--wa); color: var(--white);
  box-shadow: 0 6px 18px rgba(7, 44, 99, 0.35); transition: transform 0.15s;
}
.wa-float:hover { color: var(--white); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .wa-float:hover { transform: none; } }

@media (max-width: 47.99rem) {
  .wa-float { display: none; }
  body { padding-bottom: 4rem; }
  .dock {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 1px; background: var(--line);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .dock__btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 3.5rem;
    font-weight: 700; font-stretch: 105%; font-size: 0.95rem; text-decoration: none;
  }
  .dock__btn--tel { background: var(--blue); color: var(--white); }
  .dock__btn--wa { background: var(--wa); color: var(--white); }
  .dock__btn--quote { background: var(--orange); color: var(--ink); }
}

/* Si les coordonnées ne sont pas renseignées, le formulaire occupe la place seul. */
.split__side[hidden] + .split__main { grid-column: 1 / -1; width: 100%; max-width: 46rem; margin-inline: auto; }
