* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables globales du design system.
   Les espacements de hero et les couleurs de thème sont pilotés ici pour tout le site. */
:root {
  --bleu-marine: #1b2f5e;
  --bleu-acier: #5b8db8;
  --blanc: #ffffff;
  --gris-clair: #f5f5f5;
  --accent: #ff6b4a;
  --accent-hover: #e75334;
  --accent-soft: rgba(255, 107, 74, 0.18);
  --accent-contrast: #ffffff;
  --nav-height-desktop: 114px;
  --nav-height-mobile: 106px;
  --hero-pad-desktop: clamp(18px, 2.5vh, 40px);
  --hero-pad-mobile: clamp(20px, 3.5vh, 40px);
}

body {
  font-family: "Open Sans", sans-serif;
}

/* Lien d'échappement pour les utilisateurs clavier et lecteurs d'écran. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  background: var(--blanc);
  color: var(--bleu-marine);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--accent);
}

.skip-link:focus-visible {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

main {
  padding-top: var(--nav-height-desktop);
}

/* Navigation fixe partagée par toutes les pages. */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bleu-marine);
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-logo img {
  height: 78px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  position: relative;
}

/* Barre active animée pilotée par le script de navigation. */
.nav-active-indicator {
  position: absolute;
  left: 0;
  width: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  will-change: transform, width;
  transform: translateX(0);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.24s ease;
}

.nav-links.has-indicator .nav-active-indicator {
  opacity: 1;
}

.nav-links a {
  color: var(--blanc);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.nav-links.has-indicator a[aria-current="page"]::after {
  display: none;
}

.nav-cta {
  background: var(--accent);
  color: var(--accent-contrast) !important;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 0.3s !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast) !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--blanc);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hero générique utilisé comme bandeau principal sur l'ensemble du site. */
/*
.hero {
  min-height: max(400px, calc(68svh - var(--nav-height-desktop)));
  background:
    linear-gradient(rgba(27, 47, 94, 0.75), rgba(27, 47, 94, 0.85)),
    url("../images/bandeau00-construction-renovation.jpg") center 80% / cover
      no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--hero-pad-desktop) 20px;
}
*/
.hero {
  min-height: max(400px, calc(68svh - var(--nav-height-desktop)));
  background:
    linear-gradient(rgba(27, 47, 94, 0.75), rgba(27, 47, 94, 0.85)),
    url("../images/bandeau01-construction-renovation.jpg") center 40% / cover
      no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--hero-pad-desktop) 20px;
}

/* Variantes de hero: seule l'image de fond change, la structure reste commune. */
.hero.hero-carriere {
  background-image:
    linear-gradient(rgba(27, 47, 94, 0.75), rgba(27, 47, 94, 0.85)),
    url("../images/bandeau02-carriere-emploi.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero.hero-faq {
  background-image:
    linear-gradient(rgba(27, 47, 94, 0.75), rgba(27, 47, 94, 0.85)),
    url("../images/bandeau03-faq-questions-reponses.jpg");
  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;
}

.hero.hero-contact {
  background-image:
    linear-gradient(rgba(27, 47, 94, 0.75), rgba(27, 47, 94, 0.85)),
    url("../images/bandeau04-contact-telephone.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero.hero-soumission {
  background-image:
    linear-gradient(rgba(27, 47, 94, 0.75), rgba(27, 47, 94, 0.85)),
    url("../images/bandeau05-soumission-devis.jpg");
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 25px;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--blanc);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--bleu-acier);
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Boutons d'action réutilisés dans les sections de contenu et CTA. */
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 16px 40px;
  border: none;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.3s,
    transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--blanc);
  padding: 16px 40px;
  border: 2px solid var(--blanc);
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--blanc);
  color: var(--bleu-marine);
}

/* Stats */
.stats-bar {
  background: var(--bleu-acier);
  padding: 25px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 80px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
}

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--blanc);
}

.stat-number.stat-number-icon img {
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 auto;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sections */
section {
  padding: 40px 60px;
}

.section-tag {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-tag-light {
  color: var(--bleu-acier);
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--bleu-marine);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  /* max-width: 600px; */
  line-height: 1.7;
  margin-bottom: 50px;
}

.section-subtitle-compact {
  margin: 0 auto 10px;
}

.section-subtitle-centered {
  margin: 0 auto 50px;
}

/* Services */
.services {
  background: var(--gris-clair);
  text-align: center;
  /* padding-top: 45px; */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.services-grid-carriere {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
}

.services-grid-carriere .service-card-clickable {
  flex: 0 1 280px;
  max-width: 320px;
}

.service-card {
  background: var(--blanc);
  border-radius: 8px;
  padding: 35px 20px;
  transition: none;
  /*cursor: pointer;*/
  cursor: default;
  /*border-bottom: 3px solid var(--accent);*/
  border: 1px solid var(--bleu-acier);
}

.service-card:hover {
  transform: none;
  box-shadow: none;
  /*background: #fffffffa;*/
  /*border-color: var(--accent);*/
}

.service-card-clickable {
  background: var(--blanc);
  border: none;
  padding: 35px 20px 22px;
  font-size: inherit;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 120px;
}

.service-card-clickable:hover {
  background: var(--accent-soft);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card-clickable:active {
  transform: translateY(-2px);
}

.service-card-clickable h3 {
  margin-bottom: 8px;
}

.service-card-clickable .service-card-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4c5d78;
}

.service-icon {
  width: clamp(64px, 5.8vw, 80px);
  height: clamp(64px, 5.8vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bleu-marine);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

/* À propos (Accueil) */
.apropos-home {
  background: var(--blanc);
}

.apropos-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.apropos-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.apropos-home-story {
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding: 30px 28px 28px;
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(246, 250, 255, 0.96)
  );
  border: 1px solid rgba(214, 228, 245, 0.9);
  box-shadow: none;
  overflow: hidden;
  height: auto;
  display: block;
}

.apropos-home-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.apropos-home-story::before {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 83, 153, 0.08), transparent 68%);
  pointer-events: none;
}

.apropos-home-story h3 {
  position: relative;
  z-index: 1;
  font-family: "Montserrat", sans-serif;
  color: var(--bleu-marine);
  font-size: 22px;
  margin-bottom: 12px;
}

.apropos-home-story p {
  position: relative;
  z-index: 1;
  color: #4d617d;
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 24px;
}

.apropos-home-card-feature {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: linear-gradient(135deg, #f4f8ff 0%, #eef4ff 100%);
  border: 1px solid #d8e5f6;
  border-left: 5px solid var(--accent);
  box-shadow: 0 12px 28px rgba(27, 47, 94, 0.06);
}

.apropos-home-figure {
  position: relative;
  margin: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
}

.apropos-home-figure::after {
  display: none;
}

.apropos-home-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  object-position: unset;
}

.apropos-home-card {
  background: var(--blanc);
  border: 1px solid #d6e4f5;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 22px 20px;
}

.apropos-home-card h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--bleu-marine);
  margin-bottom: 10px;
  font-size: 20px;
}

.apropos-home-card p {
  color: #50627c;
  line-height: 1.8;
}

.apropos-home-values {
  background: var(--gris-clair);
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  padding: 26px 24px;
}

.apropos-home-values h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--bleu-marine);
  margin-bottom: 18px;
  font-size: 22px;
}

.apropos-home-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.apropos-value-item {
  background: var(--blanc);
  border: 1px solid #d6e4f5;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 14px;
}

.apropos-value-item h4 {
  font-family: "Montserrat", sans-serif;
  color: var(--bleu-marine);
  margin-bottom: 8px;
}

.apropos-value-item p {
  color: #50627c;
  line-height: 1.7;
}

/* Approche */
.approche {
  background: var(--blanc);
}

/* Variante fond bleu (accueil) */
.approche-home {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 255, 255, 0.09),
      transparent 45%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 107, 74, 0.14),
      transparent 40%
    ),
    linear-gradient(140deg, #1b2f5e 0%, #203b74 58%, #284884 100%);
}

.approche-home h2 {
  color: var(--blanc);
}

.approche-home .approche-intro {
  color: rgba(255, 255, 255, 0.82);
}

.approche-home .step-content h4 {
  color: var(--blanc);
}

.approche-home .step-content p {
  color: rgba(255, 255, 255, 0.78);
}

.approche-home .step-detail-list li {
  color: rgba(255, 255, 255, 0.72);
}

.approche-container {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.approche-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.approche-steps {
  flex: 1;
  /* margin-top: 40px;*/
}

.marge-ecran-large {
  display: none;
  height: 0;
}

@media (min-width: 1025px) {
  .marge-ecran-large {
    display: block;
    height: 35px;
  }
}

.approche-intro {
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
}

.approche-intro-last {
  margin-bottom: 30px;
}

.approche-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.approche-solo .approche-container {
  justify-content: center;
}

.approche-solo .approche-text {
  flex: 0 0 auto;
  max-width: 700px;
  width: 100%;
}

/* Image d'ambiance sous le bouton de la colonne texte pour equilibrer la hauteur de la section. */
.approche-illustration {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  align-self: flex-start;
  border-radius: 14px;
  /* border: 1px solid rgba(27, 47, 94, 0.14); */
  /* box-shadow: 0 14px 30px rgba(10, 25, 56, 0.16); */
  object-fit: cover;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.step-number {
  background: var(--accent);
  color: var(--accent-contrast);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--bleu-marine);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.step-detail-intro {
  margin-bottom: 12px;
}

.step-detail-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding-left: 0;
}

.step-detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: #5a6576;
  line-height: 1.55;
}

.step-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Valeurs */
.valeurs {
  background: var(--bleu-marine);
  text-align: center;
}

.valeurs h2 {
  color: var(--blanc);
}

.valeurs .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 50px;
}

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.valeur-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 35px 20px;
  transition: background 0.3s;
  cursor: default;
}

.valeur-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.valeur-icon {
  width: clamp(52px, 4.6vw, 64px);
  height: clamp(52px, 4.6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.valeur-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.valeur-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.valeur-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Réalisations */
.realisations {
  background: var(--gris-clair);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 240px;
  background: #ccc;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 47, 94, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--blanc);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, var(--bleu-marine) 0%, #0f1e3d 100%);
  text-align: center;
  padding: 80px 60px;
}

.cta-final h2 {
  color: var(--blanc);
  margin-bottom: 15px;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  margin-bottom: 40px;
}

.cta-final.cta-final-light {
  background: var(--blanc);
  border-top: 1px solid #e6ebf3;
}

.cta-final.cta-final-light .section-tag-light {
  color: var(--accent);
}

.cta-final.cta-final-light h2 {
  color: var(--bleu-marine);
}

.cta-final.cta-final-light p {
  color: #5d6572;
}

.cta-final.cta-candidature {
  background: var(--bleu-acier);
}

/* Utilitaire de masquage piloté par JavaScript, notamment pour les champs conditionnels. */
.is-hidden {
  display: none !important;
}

/* Formulaire carrière/contact: structure, contraste et champs de saisie. */
.career-form {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 36px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bleu-marine);
  box-shadow: 0 18px 44px rgba(4, 12, 30, 0.32);
  text-align: left;
}

.contact-form-note {
  margin-bottom: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

a.contact-email,
a.contact-email:visited {
  color: #666;
  text-decoration: underline;
}
a.contact-email:hover {
  color: var(--accent);
  text-decoration: none;
}

form input.readonly {
  background: none;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  cursor: not-allowed;
}

.form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.form-success-panel {
  display: grid;
  gap: 14px;
}

.form-success-panel .form-status {
  margin: 0;
}

.form-success-help {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.form-status-success {
  background: rgba(75, 181, 67, 0.2);
  border: 1px solid rgba(75, 181, 67, 0.45);
  color: #ddffd8;
}

.form-status-error,
.form-error-global {
  background: rgba(224, 73, 73, 0.2);
  border: 1px solid rgba(224, 73, 73, 0.45);
  color: #ffe2e2;
}

.form-error-global {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.field-error {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(194, 39, 56, 0.95);
  color: #fff2f2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.career-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label,
.radio-group-field legend {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--blanc);
  letter-spacing: 0.4px;
}

.radio-group-field {
  border: 0;
  padding: 0;
  margin: 0;
}

.career-form input,
.career-form select,
.career-form textarea {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--bleu-marine);
  padding: 14px 16px;
  font: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.career-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--bleu-marine) 50%),
    linear-gradient(135deg, var(--bleu-marine) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.career-form textarea {
  resize: vertical;
  min-height: 140px;
}

.career-form input::placeholder,
.career-form textarea::placeholder {
  color: #7b8798;
}

.career-form input:focus,
.career-form select:focus,
.career-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  outline: none;
}

.form-field:has(.field-error) label,
.radio-group-field:has(.field-error) legend {
  color: #ffe4e7;
}

.form-field:has(.field-error) input:not([type="radio"]):not([type="checkbox"]),
.form-field:has(.field-error) select,
.form-field:has(.field-error) textarea {
  border-color: #ff3f53 !important;
  box-shadow: 0 0 0 3px rgba(255, 63, 83, 0.18);
}

.form-field:has(.field-error) .checkbox-option {
  border-color: #ff5f6f;
  background: rgba(255, 63, 83, 0.12);
}

.radio-group-field:has(.field-error) .radio-option {
  border-color: #ff5f6f;
  background: rgba(255, 63, 83, 0.12);
}

.career-form input[type="file"] {
  padding: 12px;
}

.career-form input[type="file"]::file-selector-button {
  margin-right: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bleu-marine);
  color: var(--blanc);
  padding: 10px 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.form-field small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.staged-files-note {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(75, 181, 67, 0.35);
  border-radius: 12px;
  background: rgba(75, 181, 67, 0.12);
}

.staged-files-note p {
  margin: 0 0 8px;
  color: #dfffd9;
  font-size: 13px;
  font-weight: 600;
}

.staged-files-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.staged-files-list li + li {
  margin-top: 4px;
}

.checkbox-option.staged-files-remove {
  margin-top: 10px;
  background: rgba(7, 21, 48, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.form-section-title {
  margin: 4px 0 2px;
  color: var(--blanc);
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.checkbox-option {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanc);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.checkbox-option:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
}

.checkbox-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.checkbox-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  margin: 0;
}

.checkbox-option span {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-option span::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.checkbox-option:has(input:checked) span::before {
  content: "✓";
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

/* Groupe radio custom: l'input natif est masqué, l'état visuel est rendu par le span. */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanc);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.radio-option:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
}

.radio-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  margin: 0;
}

.radio-option span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.radio-option span::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.radio-option:has(input:checked) span::before {
  content: "✓";
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.career-form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.btn-primary.is-loading {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #8e98aa !important;
  color: #f7f9ff !important;
  opacity: 1;
  filter: saturate(0.25);
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}

.btn-primary:disabled {
  background: #8e98aa !important;
  color: #f7f9ff !important;
  filter: saturate(0.25);
  cursor: not-allowed;
  transform: none !important;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 1);
  border-right-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: inline-block;
  will-change: transform;
  animation: form-spin 0.75s linear infinite !important;
}

@keyframes form-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Footer et panneau de thèmes disponibles sur tout le site. */
footer {
  background: #0f1e3d;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 30px 60px;
  font-size: 13px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.faq-item {
  border: 1px solid rgba(27, 47, 94, 0.14);
  border-radius: 10px;
  background: #fafbfd;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(27, 47, 94, 0.22);
  box-shadow: 0 4px 12px rgba(27, 47, 94, 0.08);
}

/* Ligne de question légèrement plus foncée pour distinguer le déclencheur du panneau de réponse. */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  background: #eef3fa;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--bleu-marine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background-color: rgba(27, 47, 94, 0.04);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
  color: var(--accent);
}

/* Wrapper externe réservé à l'animation: pas de padding ici pour éviter les à-coups au repliage. */
.faq-item-answer {
  overflow: hidden;
  height: 0;
  transition: height 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Wrapper interne responsable de l'habillage visuel pendant que le wrapper externe gère la hauteur. */
.faq-item-answer-inner {
  padding: 18px 18px 16px;
  background: #fafbfd;
  color: #555;
  line-height: 1.7;
}

.faq-item-answer-inner p {
  margin: 0;
}

.faq-item[open] .faq-item-answer {
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Ajustements responsive: tablette puis mobile pour conserver la lisibilité sans réécrire la structure. */
@media (max-width: 1024px) {
  nav {
    padding: 16px 30px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 12px;
  }

  section {
    padding: 70px 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valeurs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    gap: 40px;
    padding: 25px 30px;
  }

  .approche-container {
    flex-direction: column;
    gap: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apropos-home-grid {
    grid-template-columns: 1fr;
  }

  .apropos-home-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .apropos-home-aside {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    gap: 14px;
  }

  .apropos-home-figure {
    border-radius: 20px;
  }

  .apropos-home-story {
    margin-right: 0;
    margin-left: 0;
  }

  .apropos-home-values-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive mobile */
@media (max-width: 768px) {
  nav {
    padding: 14px 20px;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition:
      padding 0.28s ease,
      box-shadow 0.28s ease;
  }

  nav.is-compact {
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  .nav-logo img {
    height: 78px;
    transition: height 0.28s ease;
  }

  nav.is-compact .nav-logo img {
    height: 46px;
  }

  main {
    padding-top: var(--nav-height-mobile);
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 20px 0 10px;
    gap: 14px;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links::after {
    display: none;
  }

  .nav-active-indicator {
    display: none;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 12px;
    width: 100%;
  }

  .nav-links a[aria-current="page"] {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 4px;
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .nav-cta {
    margin-top: 6px;
    display: inline-block;
    padding: 12px 20px;
  }

  .hero {
    min-height: max(380px, calc(72svh - var(--nav-height-mobile)));
    padding: var(--hero-pad-mobile) 24px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .hero-badge {
    font-size: 10px;
    letter-spacing: 2px;
    padding: 7px 16px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
  }

  .stats-bar {
    gap: 25px;
    padding: 20px 20px;
  }

  .stat-number {
    font-size: 22px;
  }

  .stat-number.stat-number-icon img {
    width: 34px;
    height: 34px;
  }

  section {
    padding: 60px 20px;
  }

  h2 {
    font-size: 26px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
  }

  .service-card {
    padding: 25px 15px;
  }

  .service-icon {
    width: clamp(58px, 20.2vw, 70px);
    height: clamp(58px, 20.2vw, 70px);
    margin-bottom: 12px;
  }

  .approche-container {
    flex-direction: column;
    gap: 30px;
  }

  .approche-illustration {
    max-width: 100%;
    margin-top: 18px;
  }

  .apropos-home-card {
    padding: 16px 14px;
  }

  .apropos-home-story {
    padding: 22px 18px 18px;
    border-radius: 20px;
    margin-left: 0;
    order: 2;
  }

  .apropos-home-story::before {
    display: none;
  }

  .apropos-home-story h3 {
    font-size: 18px;
  }

  .apropos-home-story p {
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 18px;
  }

  .apropos-home-figure {
    margin: 0;
    border-radius: 20px;
    order: 1;
  }

  .apropos-home-card-feature {
    margin: 0;
    order: 3;
  }

  .apropos-home-aside {
    display: contents;
  }

  .apropos-home-figure img {
    width: 100%;
    height: auto;
  }

  .apropos-home-card h3 {
    font-size: 18px;
  }

  .valeurs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .valeur-icon {
    width: clamp(48px, 16vw, 58px);
    height: clamp(48px, 16vw, 58px);
    margin-bottom: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 200px;
  }

  .cta-final {
    padding: 60px 20px;
  }

  .cta-final p {
    font-size: 15px;
  }

  .career-form {
    padding: 22px 18px;
  }

  .career-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .radio-group {
    flex-direction: column;
  }

  .radio-option {
    width: 100%;
  }

  footer {
    padding: 25px 20px;
    line-height: 2;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-number.stat-number-icon img {
    width: 30px;
    height: 30px;
  }

  .stat-label {
    font-size: 11px;
  }
}
