/* ==========================================================================
   1GeleC — Feuille de style du site vitrine
   Bureau d'études électricité CFO / CFA — 1gelec.fr
   Palette issue du logo : bleu marine, turquoise, vert anis, gris.
   Aucune dépendance externe.
   ========================================================================== */

/* ---------- 1. Jetons de design ---------- */
:root {
  /* Couleurs du logo */
  --navy: #1b4a7a;
  --navy-700: #163d65;
  --navy-800: #11304f;
  --navy-900: #0c2239;
  --teal: #2aa8b9;
  --teal-600: #218a98;
  --teal-100: #dff3f6;
  --teal-50: #f0fafb;
  --lime: #a8c72b;
  --lime-600: #8fae1f;
  --lime-100: #f0f6d6;
  --grey: #5c5c5c;

  /* Gris de structure */
  --ink: #23292f;
  --steel-700: #3d4750;
  --steel-400: #8a949d;
  --steel-200: #d8dee3;
  --steel-100: #eef1f4;
  --steel-50: #f6f8fa;
  --white: #ffffff;

  --ok: #4f7a12;
  --ok-bg: #f0f6d6;
  --err: #b42318;
  --err-bg: #fdecea;

  --text: var(--ink);
  --muted: var(--grey);
  --border: var(--steel-200);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --container: 1140px;
  --header-h: 80px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(12, 34, 57, 0.06), 0 1px 3px rgba(12, 34, 57, 0.08);
  --shadow-md: 0 6px 16px rgba(12, 34, 57, 0.08), 0 2px 4px rgba(12, 34, 57, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(12, 34, 57, 0.3);

  --t: 180ms ease;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 3. Composants génériques ---------- */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.eyebrow--light {
  color: var(--lime);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--alt {
  background: var(--steel-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2 {
  margin-bottom: 0.5em;
}

.section-head .lead {
  margin: 0;
}

.subhead {
  margin: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-700);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* Les six prestations principales : 3 colonnes, puis 2, puis 1 */
.grid--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid--services {
    grid-template-columns: 1fr;
  }
}

/* Bloc « qui suis-je » */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

.about__text p {
  color: var(--steel-700);
}

.about__facts {
  display: grid;
  gap: 0.75rem;
}

.about__fact {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.about__fact strong {
  flex: none;
  min-width: 7.5rem;
  color: var(--navy);
}

.about__fact span {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--lime);
  color: var(--navy-900);
}

.btn--primary:hover {
  background: var(--lime-600);
  color: var(--navy-900);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--steel-200);
}

.btn--secondary:hover {
  border-color: var(--teal);
  color: var(--teal-600);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.text-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* Apparition au défilement */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 4. En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--navy);
}

.brand:hover {
  color: var(--navy);
}

.brand__logo {
  height: 64px;
  width: auto;
  flex: none;
}

/* Marque typographique : « 1G » marine, « ele » gris, « C » vert anis, comme le logo */
.brand__name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.brand__name .c-navy {
  color: var(--navy);
}

.brand__name .c-grey {
  color: var(--grey);
}

.brand__name .c-lime {
  color: var(--lime);
}

.brand__tag {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--grey);
  letter-spacing: 0.02em;
  max-width: 14rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--border);
}

@media (max-width: 1100px) {
  .brand__tag {
    display: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--steel-700);
}

.nav-list a:hover {
  color: var(--navy);
  background: var(--steel-100);
}

.nav-list a[aria-current="true"] {
  color: var(--navy);
  background: var(--teal-100);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .brand__logo {
    height: 52px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t), visibility 0s linear 180ms;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--t), transform var(--t), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    display: block;
    padding: 0.8rem 0.9rem;
    font-size: 1.05rem;
  }

  .main-nav .btn {
    width: 100%;
  }
}

/* ---------- 5. Accueil (hero) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
  pointer-events: none;
}

.hero::after {
  /* Rappel des chevrons du logo : une bande verte et une turquoise en bas du bandeau */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--lime) 0 50%, var(--teal) 50% 100%);
}

.hero__inner {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero__content {
  max-width: 860px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 70ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}


/* Chiffres clés sous le hero */
.key-facts {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.key-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.key-fact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.25rem;
  border-left: 1px solid var(--border);
}

.key-fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.key-fact__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.key-fact__label {
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .key-fact,
  .key-fact:first-child {
    border-left: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .key-fact:last-child {
    border-bottom: 0;
  }
}

/* ---------- 6. Expertise ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card--lime {
  border-top-color: var(--lime);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--navy);
}

.service-card--lime .service-card__icon {
  background: var(--lime-100);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card p {
  color: var(--muted);
}

.service-card__list {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.93rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
}

.mini-grid {
  margin-top: 1.5rem;
}

.mini-card {
  padding: 1.4rem 1.5rem;
  background: var(--steel-50);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

.mini-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Méthode de travail */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.5rem;
}

.process-step {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.process-step__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.process-step h3 {
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tools-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
  padding: 1.1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tools-strip__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tools-list li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- 7. Réalisations ---------- */
.project-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.project-card__tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--steel-100);
  color: var(--steel-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card p {
  color: var(--muted);
}

.project-card__deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.project-card__deliverables li {
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--teal-50);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
}

.tool-showcase {
  position: relative;
  padding: 1.75rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-800), var(--navy));
  border-radius: var(--radius-lg);
}

.tool-showcase h3 {
  color: var(--white);
  padding-right: 6rem;
}

.tool-showcase p {
  color: rgba(255, 255, 255, 0.82);
}

.tool-showcase__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-showcase .text-link {
  color: var(--lime);
}

.tool-showcase .text-link:hover {
  color: var(--white);
}

.sector-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.sector-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--lime);
  background: var(--steel-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sector-item strong {
  color: var(--navy);
}

.sector-item span {
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- 8. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--teal-600);
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-item a,
.contact-item address {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-item a:hover {
  color: var(--teal-600);
}

.contact-note {
  padding: 1.1rem 1.25rem;
  background: var(--lime-100);
  border: 1px solid #e2ebb8;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--steel-700);
}

.contact-note strong {
  color: var(--navy);
}

.contact-note ul {
  margin-top: 0.5rem;
}

.contact-note li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-note li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--lime-600);
}

.contact-form {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--steel-700);
}

.form-field label .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: 8px;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 168, 185, 0.2);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--err);
}

.form-error {
  display: none;
  font-size: 0.85rem;
  color: var(--err);
}

.form-field.has-error .form-error {
  display: block;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-status--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.form-status--error {
  background: var(--err-bg);
  color: var(--err);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Groupe de cases « type de mission » */
.form-field--group {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  min-width: 0;
}

.form-field--group legend {
  padding: 0;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--steel-700);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0.5rem 0.75rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--steel-200);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}

.check-item:hover {
  border-color: var(--teal);
}

.check-item input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0.1rem 0 0;
  accent-color: var(--teal-600);
}

.check-item:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-50);
}

.form-field--group.has-error .check-item {
  border-color: var(--err);
}

/* Pièces jointes */
.form-field--files input[type="file"] {
  padding: 0.55rem 0.7rem;
  border: 1px dashed var(--steel-200);
  border-radius: 8px;
  background: var(--steel-50);
  font-size: 0.95rem;
  cursor: pointer;
}

.form-field--files input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.file-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--white);
}

.file-list__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list__size {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.file-list__remove {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--steel-700);
  font-size: 1rem;
  line-height: 1;
}

.file-list__remove:hover {
  border-color: var(--err);
  color: var(--err);
}

.file-list__total {
  justify-content: flex-end;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.1rem 0;
}

.upload-progress {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress__bar {
  height: 10px;
  border-radius: 999px;
  background: var(--steel-100);
  overflow: hidden;
}

.upload-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transition: width 200ms linear;
}

.upload-progress__label {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. Pied de page ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--navy) 0 34%, var(--teal) 34% 67%, var(--lime) 67% 100%) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: var(--radius);
}

.footer-logo img {
  height: 64px;
  width: auto;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 36ch;
}

.footer-col h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}

.footer-col li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---------- 10. Pages secondaires (mentions légales) ---------- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--steel-50);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.25em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 1.5rem;
}

.legal dt {
  font-weight: 600;
  color: var(--steel-700);
}

.legal dd {
  margin: 0;
}

@media (max-width: 560px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .legal dd {
    margin-bottom: 0.6rem;
  }
}

/* ---------- 11. Impression ---------- */
@media print {
  .site-header,
  .nav-toggle,
  .hero__visual,
  .contact-form,
  .site-footer .footer-grid {
    display: none !important;
  }

  .hero {
    color: var(--navy);
    background: none;
  }

  .hero h1,
  .hero .lead {
    color: inherit;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
