/* GUIDE DE MODIFICATION
   - Les styles sont regroupés par section ; une déclaration par ligne.
   - Chaque élément possède un seul réglage font-size, sans remplacement en media query.
   - clamp(min, fluide, max) et min()/max() sont des calculs, pas des variables cachées.
     Pour imposer une valeur fixe, remplacer l’expression entière (ex. font-size: 20px).
   - Les media queries de mise en page suivent immédiatement la section concernée.
     Pour un changement sur tous les écrans, vérifier aussi ces adaptations explicitement listées.
   - Les seules variables sont les couleurs de la palette dans :root.
   - :hover, :focus-visible et aria-expanded décrivent des états interactifs intentionnels.
   Pour les prochaines modifications : réutiliser le réglage existant, éviter les doublons
   et les !important de présentation, puis vérifier la cascade à 1440, 768 et 390px.
*/

/* 01. Police locale, palette et éléments communs */
@font-face { font-family: Sora; src: url('assets/fonts/Sora-VariableFont_wght.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }
:root {
  --dark: #052B33;
  --green: #59E371;
  --accent: #087344;
  --muted: #77819f;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--dark);
  background: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: 'Sora', sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -.055em;
}

h2 {
  line-height: 1.13;
}

h2 span {
  color: var(--accent);
}

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

/* Priorité conservée pour respecter l’attribut HTML hidden, notamment sans JavaScript. */
[hidden] {
  display: none !important;
}

/* Largeur commune : les marges tablette/mobile sont adaptées à la fin de cette section. Ne pas imbriquer deux .container. */
.container {
  width: min(1350px, calc(100% - 122px));
  margin-inline: auto;
}

.eyebrow {
  color: var(--accent);
  margin-bottom: 17px;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: .075em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* Style commun des boutons. Les différences du header et du contact sont définies dans leurs sections. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 31px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: var(--dark);
  font-size: clamp(12px, 1.1vw, 13px);
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  transition: background .2s ease, box-shadow .2s ease;
}

.button:hover {
  background: #83ed95;
  box-shadow: 0 4px 22px #59e37125;
}

.button--outline {
  color: #fff;
  background: #052b3330;
  border-color: #cbe5de;
}

.button--outline:hover {
  background: #ffffff20;
}

.text-link {
  border-bottom: 1px solid var(--green);
  padding-block: 8px 3px;
  font-size: 14px;
  font-weight: 500;
}

.text-link:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

main a:focus-visible {
  outline-color: var(--accent);
}

::selection {
  background: var(--green);
  color: var(--dark);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

/* Adaptations de cette section : (max-width: 1000px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1000px) {
  .container {
    width: min(1350px, calc(100% - 64px));
  }
}

/* Adaptations de cette section : (max-width: 600px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 600px) {
  .container {
    width: min(1350px, calc(100% - 36px));
  }

  .eyebrow {
    margin-bottom: 13px;
  }

  .button {
    min-height: 46px;
    padding-inline: 24px;
  }
}

/* 02. Header flottant et hero — voile indépendant du contenu */

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  color: #fff;
  background: var(--dark);
}

/* Ville en plein cadre, sans déformation. Le cadrage tablette/mobile est défini ci-dessous. */
.hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #052b3320, #052b3345 48%, #052b3366);
}

/* Voile uniforme ajouté au dégradé existant : régler uniquement opacity ici.
   Même réglage sur ordinateur, tablette et mobile ; aucun effet sur le contenu. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #052B33;
  opacity: .7;
  pointer-events: none;
}

.hero__inner {
  padding-top: 24px;
}

.header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 26px;
  border: 0px solid #a9e6c94a;
  border-radius: 24px;
  background: #163e3c00;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 164px;
  flex-shrink: 0;
}

.brand__symbol {
  width: 43px;
  height: auto;
}

.brand__word {
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 0px solid #95dbbd35;
  border-radius: 99px;
  background: #00444a00;
}

.header__nav a {
  display: block;
  padding: 9px 16px;
  font-size: clamp(11px, 1.2vw, 12px);
  font-weight: 500;
  white-space: nowrap;
  border-radius: 99px;
}

.header__nav a:hover {
  background: #ffffff18;
}

.header__nav .header__home {
  color: var(--green);
}

.header__contact {
  min-height: 44px;
  padding-inline: 24px;
  font-size: 12px;
}

.header__toggle, .header__nav .header__mobile-contact {
  display: none;
}

.hero__content {
  padding: 100px 0 180px;
  text-align: center;
}

/* Taille unique du titre. clamp(minimum, taille fluide, maximum) ; remplacer toute la valeur par des px pour une taille fixe. */
.hero h1 {
  font-size: clamp(32px, 3.65vw, 54px);
  line-height: 1.18;
  font-weight: 800;
  text-shadow: 0 2px 16px #00171d40;
}

.hero h1 span {
  color: var(--green);
}

.hero h1 .hero__second-line {
  color: #fff;
  font-size: .86em;
}

.hero__content > p {
  max-width: 800px;
  margin: 25px auto 0;
  font-size: clamp(13px, 1.55vw, 15px);
  line-height: 1.55;
  color: #edf5f3;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

/* Adaptations de cette section : (max-width: 1200px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1200px) {
  .header {
    padding-inline: 20px;
    gap: 14px;
  }

  .header__nav a {
    padding-inline: 12px;
  }

  .brand {
    width: 145px;
  }

  .brand__symbol {
    width: 36px;
  }

  .brand__word {
    width: 100px;
  }
}

/* Adaptations de cette section : (max-width: 1000px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1000px) {
  .hero__inner {
    padding-top: 20px;
  }

  .hero__image {
    object-position: 62% 55%;
  }

  .header {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .header__contact {
    margin-left: auto;
  }

  .header__nav {
    order: 4;
    width: 100%;
    justify-content: center;
  }

  .header--interactive .header__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 3;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #a9e6c94a;
    border-radius: 99px;
    background: #052b3355;
    color: #fff;
    font-size: 13px;
  }

  .header__toggle span {
    width: 15px;
    height: 10px;
    border-block: 1px solid currentColor;
  }

  .header--interactive .header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    padding: 16px;
    border-radius: 20px;
    background: #052b33f7;
    box-shadow: 0 15px 30px #001d2b30;
  }

  .header__toggle[aria-expanded="true"] + .header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .header__nav a {
    padding: 12px 16px;
  }

  .header__nav .header__mobile-contact {
    display: block;
    color: var(--green);
  }

  .hero__content {
    padding-block: 120px 115px;
  }

  .hero__content > p {
    max-width: 650px;
  }
}

/* Adaptations de cette section : (max-width: 600px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 600px) {
  .hero__inner {
    padding-top: 16px;
  }

  .header {
    padding: 12px 15px;
  }

  .header__contact {
    display: none;
  }

  .header__nav {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .hero__content {
    padding: 90px 0 98px;
  }

  .hero h1 .hero__second-line {
    display: inline-block;
    margin-top: 12px;
    line-height: 1.3;
  }

  .hero__content > p {
    margin-top: 22px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
  }

  .hero__actions .button {
    min-width: 235px;
  }

  .hero__image {
    /* Garde la ville et l’angle des bandes lumineuses dans le cadrage vertical. */
    object-position: 70% center;
  }
}

/* 03. Pensé pour vous — fond blanc et vague décorative */

main {
  background: linear-gradient(180deg, #f0fff6 0, #fff 420px);
}

.for-you {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -44px;
  display: grid;
  grid-template-columns: 40% 60%;
  padding: 50px 64px;
  border: 1px solid #eff9f1;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 5px 25px #59e37116;
}

/* Décoration hors du flux : aucun effet sur la hauteur ou les colonnes.
   Réglages communs ici ; seuls le cadrage et le fondu changent sur petit écran. */
.for-you::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('assets/connect-wave.webp');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center -105px;
  opacity: .4;
  mask-image: linear-gradient(90deg, #000 0%, #000 30%, rgb(0 0 0 / .2) 62%, rgb(0 0 0 / .05) 100%), linear-gradient(180deg, transparent 110px, #000 175px);
  mask-composite: intersect;
}

.for-you__heading {
  align-self: center;
  padding-right: 32px;
}

.for-you_title {
  font-size: clamp(32px, 3.9vw, 30px);
  line-height: 1.05;
  font-weight: 900;
}

.for-you__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 0 8px 48px;
  border-left: 1px solid #8eeeb0;
}

.for-you__content::before, .for-you__content::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid #8eeeb0;
  border-radius: 50%;
  background: #fff;
}

.for-you__content::before {
  top: 0;
}

.for-you__content::after {
  bottom: 0;
}

/* RÉGLAGE UNIQUE DU PARAGRAPHE, pour toutes les largeurs.
   Pour une taille fixe, remplacer le clamp complet par 20px, par exemple.
   Le clamp actuel varie de 14px à 21px ; aucune media query ne le remplace. */
.for-you__content > p {
  color: var(--muted);
  font-size: clamp(14px, 1.45vw, 14px);
  line-height: 1.55;
}

/* Adaptations de cette section : (max-width: 1200px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1200px) {
  .for-you {
    padding: 42px;
  }

  .for-you__content {
    padding-left: 35px;
  }
}

/* Adaptations de cette section : (max-width: 1000px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1000px) {
  .for-you {
    grid-template-columns: 43% 57%;
    padding: 36px 30px;
  }

  .for-you::before {
    background-position: center 175px;
  }

  .for-you__heading {
    padding-right: 20px;
  }

  .for-you__content {
    padding: 12px 0 12px 28px;
  }
}

/* Empiler avant que les deux colonnes ne compriment le titre. */
@media (max-width: 700px) {
  .for-you {
    margin-top: -32px;
    grid-template-columns: 1fr;
    padding: 30px 25px;
    border-radius: 22px;
  }

  .for-you::before {
    background-size: 185% auto;
    background-position: 28% 170px;
    mask-image: linear-gradient(180deg, transparent 140px, rgb(0 0 0 / .65) 205px, rgb(0 0 0 / .12) 280px, transparent 350px);
  }

  .for-you__heading {
    padding: 0 0 27px;
  }

  .for-you__content {
    border-left: 0;
    border-top: 1px solid #8eeeb0;
    padding: 25px 0 0;
  }

  .for-you__content::before {
    left: 0;
    top: -4px;
  }

  .for-you__content::after {
    left: auto;
    right: 0;
    top: -4px;
    bottom: auto;
  }
}

/* 04. Services — photos pleine carte et dégradés translucides */

.services h2 {
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 900;
}

.services {
  padding-block: 102px 102px;
}

.services__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.services__heading .text-link{
    padding: 13px 31px;
    border-radius: 100px;
    background-color: var(--green);
    font-size:clamp(12px, 1.1vw, 13px);
    font-weight: 600;
    transition: background .2s ease, box-shadow .2s ease;
}

.services__heading .text-link:hover{
    background: #83ed95;
    box-shadow: 0 4px 22px #59e37125;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Le ratio fixe le format initial ; min-height peut agrandir la carte sur petit écran.
   overflow masque uniquement la photo aux coins arrondis. Vérifier le contenu si vous augmentez fortement les textes. */
.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / .85;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
  box-shadow: 0 4px 12px #052b3312;
}

.service-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Automatisation : garder le Touch à gauche et le salon à droite. */
.service-card--automatisation > img {
  object-position: 15% center;
}

/* Téléphonie : cadrage un peu plus large, avec un fondu vers le fond de la carte.
   Réglage unique à toutes les largeurs ; 88% réduit le téléphone d'environ 12%. */
.service-card--telephonie > img {
  height: 70%;
  object-position: center top;
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #052b3300 15%, #052b331a 34%, #052b33c9 64%, #052b33e8 100%);
}

/* Le bas de cette photo est déjà sombre : alléger le voile sur l’appareil. */
.service-card--automatisation::before {
  background: linear-gradient(180deg, #052b3300 34%, #052b3326 50%, #052b3399 72%, #052b33bf 100%);
}

.service-card__badge {
  position: absolute;
  top: 20px;
  left: 18px;
  padding: 8px 13px;
  border-radius: 99px;
  background: #d5ffdf;
  color: var(--dark);
  font-size: clamp(10px, .85vw, 11px);
  font-weight: 600;
}

.service-card__content {
  width: 100%;
  padding: 24px;
}

.service-card h3 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  white-space: nowrap;
}

.service-card p {
  min-height: 3.1em;
  margin-top: 13px;
  font-size: clamp(13px, 1.17vw, 14px);
  line-height: 1.55;
  color: #f1f7f6;
}

.service-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
}

.service-card a:hover {
  text-decoration: none;
  text-underline-offset: 5px;
}

.service-card a:focus-visible {
  outline-color: var(--green);
}

/* Adaptations de cette section : (max-width: 1200px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1200px) {
  .service-card__content {
    padding: 20px;
  }

  .service-card p {
    min-height: 4.65em;
  }
}

/* Adaptations de cette section : (max-width: 1000px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1000px) {
  .services {
    padding-block: 64px;
  }

  .services__heading {
    margin-bottom: 32px;
  }

  .services__grid {
    gap: 16px;
  }

  .service-card {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .service-card__content {
    padding: 16px;
  }

  .service-card h3 {
    white-space: normal;
    min-height: 2.4em;
    display: flex;
    align-items: flex-end;
  }

  .service-card p {
    min-height: 7.75em;
  }

  .service-card a {
    min-height: 3.1em;
    margin-top: 14px;
  }

  .service-card__badge {
    top: 14px;
    left: 12px;
    padding: 7px 9px;
  }
}

/* Une colonne dès que les trois cartes deviennent trop étroites. */
@media (max-width: 700px) {
  .services {
    padding-block: 42px 34px;
  }

  .services__heading {
    display: block;
    margin-bottom: 24px;
  }

  .services__heading h2 br {
    display: none;
  }

  .services__heading .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 18px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 440px;
    margin-inline: auto;
  }

  .service-card {
    aspect-ratio: 1 / .89;
    min-height: 290px;
    border-radius: 18px;
  }

  .service-card__content {
    padding: 22px;
  }

  .service-card h3 {
    display: block;
    min-height: 0;
  }

  .service-card p {
    min-height: 3.1em;
    margin-top: 12px;
  }

  .service-card a {
    min-height: 0;
    margin-top: 16px;
  }

  .service-card__badge {
    top: 16px;
    left: 16px;
    padding: 7px 12px;
  }
}

/* Adaptations de cette section : (max-width: 360px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 360px) {
  .service-card__content {
    padding: 18px;
  }
}

/* 05. Vos espaces — image unique non recadrée, repères proportionnels */

.spaces {
  position: relative;
  isolation: isolate;
  width: 100%;
  background: var(--dark);
  color: #fff;
}

.spaces::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/spacebcgrd.webp') center bottom / cover no-repeat;
  opacity: .6;
  pointer-events: none;
}

.spaces__inner {
  display: grid;
  grid-template-columns: 29% minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-block: 70px;
}

.spaces__heading{
  transform: translateY(-50px);
}

.spaces .eyebrow, .contact .eyebrow {
  color: var(--green);
}

.spaces h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
}

.spaces h2 span, .contact h2 span {
  color: var(--green);
}

.spaces__visual {
  min-width: 0;
  padding: 20px 16px 16px;
  border: 1px solid #c7eee52b;
  border-radius: 20px;
  background: #052b3326;
}

/* height: auto conserve les proportions du fichier ; modifier la largeur redimensionne aussi la hauteur. */
.spaces__visual > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.spaces__labels {
  position: relative;
  display: grid;
  grid-template-columns: 35% 35% 30%;
  margin-top: 10px;
}

.spaces__labels::before {
  content: '';
  position: absolute;
  top: 0;
  left: 17.5%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, #59e37145, var(--green), #59e37145);
}

.spaces__labels li {
  position: relative;
  padding: 23px 4px 0;
  text-align: center;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.4;
}

.spaces__marker {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--dark);
  box-shadow: 0 0 0 4px #59e37116, 0 0 12px #59e37160;
}

.spaces__marker::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--green);
  border-radius: 50%;
}

/* Adaptations de cette section : (max-width: 1200px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1200px) {
  .spaces__inner {
    gap: 28px;
  }
}

/* Adaptations de cette section : (max-width: 1000px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1000px) {
  /* Garder les circuits de gauche dans le cadre lorsque le contenu s’empile. */
  .spaces::before {
    background-position: left bottom;
  }

  .spaces__inner {
    grid-template-columns: 1fr;
    padding-block: 44px;
  }

  .spaces__heading {
    max-width: 490px;
    transform: none;
  }

  .spaces__visual {
    padding: 20px;
  }
}

/* Adaptations de cette section : (max-width: 600px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 600px) {
  .spaces__inner {
    padding-block: 34px;
    gap: 26px;
  }

  .spaces h2 {
    max-width: 320px;
  }

  .spaces__visual {
    padding: 18px 5px 16px;
    border-radius: 16px;
  }

  .spaces__labels li {
    padding-inline: 2px;
    padding-top: 18px;
  }

  .spaces__labels {
    margin-top: 7px;
  }

  .spaces__marker {
    width: 8px;
    height: 8px;
    top: -4px;
  }
}

/* 06. Zone d’intervention */

.region {
  width: 100%;
  background: linear-gradient(110deg, #f8fffc, #fff 55%, #f1fff9);
}

.region__inner {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  align-items: center;
  gap: 70px;
  padding-block: 48px 42px;
}

.region h2 {
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 900;
}
.region h2 > span{
  color: var(--green);
}

.region__description {
  color: var(--muted);
  margin-top: 16px;
  font-size: clamp(13px, 1.3vw, 14px);
  line-height: 1.55;
}

/* max-width limite volontairement la largeur du groupe de pastilles. */
.region__badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  max-width: 470px;
  margin-top: 18px;
}

.region__badges li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 39px;
  border: 1px solid #a0e9bf;
  border-radius: 99px;
  padding: 7px 14px;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 500;
  background: #ffffffb3;
}

.region__badges li:hover {
  cursor: pointer;
}

.region__badges li::before {
  content: '';
  flex: 0 0 14px;
  width: 14px;
  height: 18px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M12 1a8 8 0 0 0-8 8c0 6 8 14 8 14s8-8 8-14a8 8 0 0 0-8-8Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.region__visual {
  position: relative;
  padding: 10px;
}

.region__visual::before {
  content: '';
  position: absolute;
  right: -12px;
  top: -18px;
  width: 110px;
  height: 90px;
  background: radial-gradient(#59e371aa 1px, transparent 1px) 0 0 / 14px 14px;
}

.region__frame {
  position: relative;
  clip-path: polygon(0 0, 87% 0, 100% 22%, 100% 100%, 8% 100%, 0 85%);
  border-radius: 14px;
}

.region__frame img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}

.region__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #59e371aa;
  stroke-width: 1;
  pointer-events: none;
}

.region__outline path + path {
  stroke-opacity: .3;
}

/* Adaptations de cette section : (max-width: 1200px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1200px) {
  .region__inner {
    gap: 40px;
  }
}

/* Adaptations de cette section : (max-width: 1000px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1000px) {
  .region__inner {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }

  .region__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region__badges li {
    padding-inline: 12px;
    gap: 9px;
  }

  .region__frame img {
    aspect-ratio: 1.1;
  }
}

/* Adaptations de cette section : (max-width: 600px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 600px) {
  .region__inner {
    grid-template-columns: 1fr;
    padding-block: 36px;
    gap: 28px;
  }

  .region__badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .region__badges li {
    padding-inline: 8px;
    gap: 6px;
  }

  .region__badges li::before {
    flex-basis: 12px;
  }

  .region__frame img {
    aspect-ratio: 1.65;
  }

  .region__visual::before {
    right: 0;
  }
}

/* Adaptations de cette section : (max-width: 360px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 360px) {
  .region__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 07. Contact */

.contact {
  position: relative;
  width: 100%;
  padding-block: 100px 100px;
  background: linear-gradient(110deg, #e6fbef, #f6fff9 50%, #e8fcf1);
}

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 45px;
  padding: 44px 48px;
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(ellipse at 100% 0, #37b766aa, transparent 32%), radial-gradient(ellipse at 0 0, #005665, transparent 65%), var(--dark);
}

.contact h2 {
  font-size: clamp(28px, 2.9vw, 42px);
}

.contact .eyebrow {
  margin-bottom: 12px;
}

.contact__description {
  margin-top: 15px;
  max-width: 820px;
  color: #eef5f3;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.55;
}

.contact .button {
  min-width: 210px;
}

/* Adaptations de cette section : (max-width: 1200px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1200px) {
  .contact__inner {
    gap: 28px;
    padding: 38px;
  }

  .contact .button {
    min-width: 180px;
  }
}

/* Adaptations de cette section : (max-width: 1000px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1000px) {
  .contact {
    padding-block: 48px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact .button {
    justify-self: start;
  }
}

/* Adaptations de cette section : (max-width: 600px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 600px) {
  .contact {
    padding-block: 20px;
  }

  .contact__inner {
    padding: 30px 25px;
    border-radius: 22px;
  }

  .contact__description br {
    display: none;
  }
}

/* 08. Footer */

.footer {
  width: 100%;
  background: var(--dark);
  color: #e0efec;
}

.footer__inner {
  padding-block: 70px 30px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 110px;
  padding-bottom: 28px;
  font-size: 12px;
  line-height: 1.65;
}

.footer__identity {
  max-width: 355px;
}

.footer__tagline {
  margin-block: 16px 10px;
  font-weight: 600;
  color: #fff;
}

.footer__title {
  margin: 4px 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

.footer li + li {
  margin-top: 12px;
}

.footer address {
  font-style: normal;
}

.footer address p {
  margin-bottom: 14px;
}

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

.footer__bottom {
  padding-top: 16px;
  border-top: 1px solid #d8f4e52b;
  font-size: 11px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 10px;
  font-size: clamp(10px, 1.1vw, 11px);
}

/* Adaptations de cette section : (max-width: 1200px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1200px) {
  .footer__main {
    gap: 65px;
  }
}

/* Adaptations de cette section : (max-width: 1000px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 1000px) {
  .footer__main {
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 30px;
  }
}

/* Adaptations de cette section : (max-width: 600px).
   Ces règles modifient uniquement la mise en page ou les états du menu, pas les tailles de texte. */
@media (max-width: 600px) {
  .footer__inner {
    padding-block: 32px 40px;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer__identity {
    grid-column: 1 / -1;
    max-width: 320px;
  }

  .footer__title {
    margin-top: 0;
  }

  .footer__legal {
    gap: 12px 18px;
  }
}

/* Accessibilité : respecte la préférence système de réduction des animations. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }
}
