/* ==========================================================================
   ASSUR 770 — Feuille de style unique
   Remplace les 25 feuilles de style WordPress / Elementor du site précédent.
   ========================================================================== */

/* --- Polices auto-hébergées (RGPD : aucun appel vers Google) -------------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* --- Jetons de design ---------------------------------------------------- */
:root {
  --vert: #2b6654;
  --vert-fonce: #1f4c3e;
  --jaune: #ffde00;
  --texte: #333333;
  --blanc: #ffffff;
  --gris-clair: #f5f7f6;
  --gris-bord: #e2e8e5;
  --gris-doux: #6b7a75;

  --font-titre: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-corps: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1140px;
  --gouttiere: 20px;
  --rayon: 4px;
  --transition: 0.25s ease;
}

/* --- Réinitialisation ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-corps);
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--vert);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--vert-fonce);
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-titre);
  color: var(--vert);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
p {
  margin: 0 0 1.2em;
}
p:last-child {
  margin-bottom: 0;
}

/* Accessibilité : focus visible au clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--jaune);
  color: var(--vert);
  padding: 12px 20px;
  font-family: var(--font-titre);
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* --- Utilitaires --------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.section {
  padding: 80px 0;
}
.section--vert {
  background: var(--vert);
  color: var(--blanc);
}
.section--vert h1,
.section--vert h2,
.section--vert h3 {
  color: var(--blanc);
}
.section--gris {
  background: var(--gris-clair);
}
.centre {
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Titre de section souligné d'un filet jaune */
.titre-section {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4em;
}
.titre-section::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--jaune);
  margin: 22px auto 0;
}
.titre-section--gauche::after {
  margin-inline: 0;
}
.chapo {
  max-width: 780px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

/* --- En-tête ------------------------------------------------------------- */
.entete {
  background: var(--vert);
  position: sticky;
  top: 0;
  z-index: 100;
}
.entete__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  position: relative;
}
.entete__logo img {
  width: 62px;
}

.nav__liste {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.nav__liste a {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanc);
  padding: 8px 0;
  position: relative;
  display: inline-block;
}
.nav__liste a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--jaune);
  transition: width var(--transition);
}
.nav__liste a:hover,
.nav__liste a[aria-current="page"] {
  color: var(--jaune);
}
.nav__liste a:hover::after,
.nav__liste a[aria-current="page"]::after {
  width: 100%;
}

/* Bouton d'ouverture du menu mobile */
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  color: var(--blanc);
}
.burger svg {
  width: 28px;
  height: 28px;
}

/* --- Bandeau d'accueil (hero) -------------------------------------------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--blanc);
  background: var(--vert-fonce) center / cover no-repeat;
  background-attachment: fixed;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 76, 62, 0.78);
}
.hero .conteneur {
  position: relative;
  z-index: 1;
  padding-block: 90px;
}
.hero__logo {
  width: 155px;
  margin: 0 auto 30px;
}
.hero__titre {
  color: var(--blanc);
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35em;
}
.hero__accroche {
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  max-width: 760px;
  margin: 0 auto;
  font-weight: 300;
}
.hero__accroche strong {
  color: var(--jaune);
  font-weight: 600;
}

/* Vidéo de fond (accueil) : sous le calque coloré, masquée sur mobile comme sur
   le site en ligne, l'image de fond du hero prend alors le relais. */
.hero--video {
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero--video::before {
  z-index: 1;
}
.hero--video .conteneur {
  z-index: 2;
}

/* Variante compacte pour les pages intérieures */
.hero--compact {
  min-height: 340px;
}
.hero--compact .conteneur {
  padding-block: 70px;
}

/* --- Grilles ------------------------------------------------------------- */
.grille {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grille--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* --- Carte d'offre ------------------------------------------------------- */
.carte {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-top: 5px solid var(--jaune);
  border-radius: var(--rayon);
  padding: 38px 30px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(43, 102, 84, 0.16);
}
.carte__icone {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  color: var(--vert);
}
.carte__titre {
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.7em;
}
.carte p {
  font-size: 0.97rem;
}

/* --- Bloc « atout » ------------------------------------------------------ */
.grille--atouts {
  margin-top: 50px;
  align-items: stretch;
}
.atout {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  padding: 40px 30px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.atout:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(43, 102, 84, 0.16);
}
.atout__icone {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--vert);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.atout__icone svg {
  width: 36px;
  height: 36px;
}
.atout__numero {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gris-doux);
  margin-bottom: 10px;
}
.atout__titre {
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.7em;
  min-height: 2.5em;
  display: flex;
  align-items: center;
}
.atout p {
  font-size: 0.97rem;
}

/* --- Section « À propos » : texte sur panneau vert + photo pleine hauteur -- */
.apropos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--vert);
  color: var(--blanc);
}
.apropos__texte {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.apropos__inner {
  width: 100%;
  max-width: calc(var(--max) / 2);
  padding: 90px 60px 90px var(--gouttiere);
}
.apropos__titre {
  color: var(--blanc);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0;
}
.apropos__titre::after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  margin: 40px 0 36px;
}
.apropos__accroche {
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1.4em;
}
.apropos p {
  font-size: 0.97rem;
}
.apropos__media {
  position: relative;
  min-height: 420px;
}
.apropos__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Section à image de fond -------------------------------------------- */
.section--image {
  position: relative;
  background: var(--vert) center / cover no-repeat;
  color: var(--blanc);
}
.section--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 76, 62, 0.86);
}
.section--image .conteneur {
  position: relative;
  z-index: 1;
}
.section--image h2 {
  color: var(--blanc);
}

/* --- Citation ------------------------------------------------------------ */
.citation {
  max-width: 860px;
  margin: 0 auto 40px;
  font-family: var(--font-titre);
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--vert);
  border-left: 5px solid var(--jaune);
  padding: 6px 0 6px 28px;
}

/* --- Chiffres clés ------------------------------------------------------- */
.chiffre {
  text-align: center;
}
.chiffre__valeur {
  font-family: var(--font-titre);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--jaune);
  line-height: 1;
  margin-bottom: 12px;
}
.chiffre__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: var(--rayon);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn--primaire {
  background: var(--jaune);
  color: var(--vert);
}
.btn--primaire:hover {
  background: var(--vert);
  color: var(--blanc);
  transform: translateY(-2px);
}
/* Sur fond vert, le survol passe en blanc pour rester visible */
.section--vert .btn--primaire:hover,
.pied .btn--primaire:hover,
.hero .btn--primaire:hover {
  background: var(--blanc);
  color: var(--vert);
}
.btn--fantome {
  border-color: var(--blanc);
  color: var(--blanc);
}
.btn--fantome:hover {
  background: var(--blanc);
  color: var(--vert);
}

/* --- Cartes « sites du groupe » ----------------------------------------- */
.carte-site {
  display: block;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-left: 5px solid var(--jaune);
  border-radius: var(--rayon);
  padding: 34px 30px;
  color: var(--texte);
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte-site:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(43, 102, 84, 0.16);
  color: var(--texte);
}
.carte-site__url {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--vert);
  margin-bottom: 0.5em;
  word-break: break-word;
}
.carte-site__fleche {
  color: var(--vert);
  font-weight: 700;
}

/* --- Formulaire ---------------------------------------------------------- */
.formulaire {
  max-width: 720px;
  margin-inline: auto;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  padding: 40px;
}
.champ {
  margin-bottom: 22px;
}
.champ label {
  display: block;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 8px;
}
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  font-family: var(--font-corps);
  font-size: 1rem;
  color: var(--texte);
  padding: 13px 16px;
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  background: var(--blanc);
  transition: border-color var(--transition);
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  border-color: var(--vert);
}
.champ textarea {
  resize: vertical;
  min-height: 150px;
}
.champ__aide {
  font-size: 0.85rem;
  color: var(--gris-doux);
  margin-top: 6px;
}
.obligatoire {
  color: #c0392b;
}
.formulaire__statut {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--rayon);
  font-size: 0.95rem;
  border: 1px solid var(--gris-bord);
  background: var(--gris-clair);
}
.formulaire__statut--erreur {
  border-color: #c0392b;
  background: #fdf1ef;
  color: #7a1f16;
}
.formulaire__statut--succes {
  border-color: var(--vert);
  background: #eef5f2;
  color: var(--vert-fonce);
}
.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.turnstile {
  margin-top: 8px;
  min-height: 65px;
}
/* Piège à robots : invisible pour les humains, rempli par les spambots */
.pot-de-miel {
  position: absolute;
  left: -5000px;
}

/* --- Pages légales ------------------------------------------------------- */
.contenu-legal {
  max-width: 860px;
  margin-inline: auto;
}
.contenu-legal h2 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2em;
  padding-bottom: 0.4em;
  border-bottom: 3px solid var(--jaune);
}
.contenu-legal h2:first-of-type {
  margin-top: 0;
}
.contenu-legal h3 {
  font-size: 1.08rem;
  margin-top: 1.6em;
}
.contenu-legal ul {
  padding-left: 22px;
  margin-bottom: 1.2em;
}
.contenu-legal li {
  margin-bottom: 0.5em;
}
.contenu-legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
}
.contenu-legal th,
.contenu-legal td {
  border: 1px solid var(--gris-bord);
  padding: 12px 14px;
  text-align: left;
}
.contenu-legal th {
  background: var(--gris-clair);
  font-family: var(--font-titre);
  color: var(--vert);
}
.maj {
  font-style: italic;
  color: var(--gris-doux);
  font-size: 0.92rem;
}

/* --- Pied de page -------------------------------------------------------- */
/* Fond clair comme sur le site en ligne : le logo vert y est lisible. */
.pied {
  background: var(--gris-clair);
  color: var(--gris-doux);
  border-top: 1px solid var(--gris-bord);
  padding: 56px 0 28px;
  text-align: center;
}
.pied__logo {
  width: 114px;
  height: auto;
  margin: 0 auto 26px;
}
.pied__nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
  margin: 0 0 16px;
  padding: 0;
}
.pied__nav a {
  display: inline-block;
  padding: 10px 4px;
  color: var(--vert);
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.pied__nav a:hover {
  color: var(--vert-fonce);
}
.pied__legal {
  font-size: 0.84rem;
  border-top: 1px solid var(--gris-bord);
  padding-top: 22px;
  margin: 0;
}

/* --- Adaptatif ----------------------------------------------------------- */
@media (max-width: 860px) {
  .burger {
    display: block;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--vert-fonce);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    display: none;
  }
  .nav[data-ouvert="true"] {
    display: block;
  }
  .nav__liste {
    flex-direction: column;
    gap: 0;
    padding: 10px var(--gouttiere) 20px;
  }
  .nav__liste a {
    display: block;
    padding: 14px 0;
  }
  .nav__liste a::after {
    display: none;
  }
  .hero {
    background-attachment: scroll;
    min-height: 470px;
  }
  .hero__video {
    display: none;
  }
  .apropos {
    grid-template-columns: 1fr;
  }
  .apropos__inner {
    max-width: var(--max);
    padding: 60px var(--gouttiere);
  }
  .apropos__media {
    min-height: 320px;
  }
  .apropos__titre::after {
    margin: 28px 0 24px;
  }
  .section {
    padding: 60px 0;
  }
  .formulaire {
    padding: 28px 22px;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .hero__logo {
    width: 120px;
  }
  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
  }
  .formulaire {
    padding: 24px 16px;
  }
}

/* --- Impression ---------------------------------------------------------- */
@media print {
  .entete,
  .pied__nav,
  .hero__video,
  .burger {
    display: none;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
}

/* --- Respect de la préférence « mouvement réduit » ----------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
