/* ============================================================
   AVAS — Feuille de style principale sept-2026
   ============================================================
   Sommaire :
   1. Variables & réinitialisation
   2. Base (body, titres, liens, bouton)
   3. En-tête / navigation (+ sélecteur de langue FR/EN/DE/IT)
   4. Pied de page
   5. Page : Accueil (index.html)
   6. Page : Nos entreprises (entreprises.html)
   7. Pages : APS & ATPV (entreprises-aps.html / entreprises-atpv.html)
   8. Page : Actualités (actualites.html)
   9. Page : Certifications (certifications.html)
   10. Titres de page — couleur bleue + trait orange (commun)
   11. Menu mobile (structure, hors media query)
   12. Media queries — version téléphone (max-width: 768px)

   Convention de nommage :
   - Une classe préfixée par une page (ex: .aps-, .atpv-, .page-...)
     n'est utilisée QUE sur cette page.
   - Les classes sans préfixe (.bouton, .carte, h2...) sont partagées
     entre plusieurs pages : à modifier avec prudence.
   ============================================================ */


/* ============================================================
   1. VARIABLES & RÉINITIALISATION
   ============================================================ */

:root {
  --bleu-avas: #3c5ea5;
  --orange-avas: #f08a01;
  --blanc: #ffffff;
  --texte-fonce: #222;
  --hauteur-header: 96px; /* hauteur de l'en-tête fixe (logo + signature) */
}

* {
  box-sizing: border-box;
}


/* ============================================================
   2. BASE
   ============================================================ */

body {
  font-family: Arial, sans-serif;
  color: var(--texte-fonce);
  margin: 0;
}

main {
  padding: 60px 40px;
}

/* Titre de section (ex: "Nos services", "Secteurs d'activité").
   Le trait orange sous le h2 est généré ici pour TOUTES les pages. */
h2 {
  color: var(--bleu-avas);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 25px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--orange-avas);
}

/* Bouton orange partagé par tout le site (cartes, contact, etc.) */
.bouton {
  display: inline-block;
  margin: 20px;
  padding: 10px 20px;
  background-color: var(--orange-avas);
  color: var(--blanc);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bouton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(240, 138, 1, 0.4);
}

.carte .bouton {
  margin-top: 20px;
  align-self: end;
  justify-self: start;
}

/* Entête de carte : nom de l'entreprise à gauche, bouton en haut à droite */
.carte-entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 15px;
  padding: 20px 20px 0 0;
}

.carte .carte-entete .bouton {
  margin: 0;
  align-self: flex-start;
  justify-self: auto;
}


/* ============================================================
   3. EN-TÊTE / NAVIGATION
   ============================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hauteur-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background-color: var(--blanc);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.logo-lien {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
}

.logo {
  height: 72px;
  display: block;
}

/* Signature sous le logo : Advanced Value Added Services */
.logo-signature {
  color: var(--bleu-avas);
  font-size: 0.68em;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* écriture en bleu*/
nav a {
  color: var(--bleu-avas);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

/* écriture en orange quand on passe la souris dessus*/
nav a:hover {
  color: var(--orange-avas);
}

/* Sous-menu déroulant "Nos entreprises ▾" (affiché au survol) */
.menu-dropdown {
  position: relative;
}

.sous-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--blanc);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  min-width: 160px;
  padding: 8px 0;
  flex-direction: column;
}

.menu-dropdown:hover .sous-menu {
  display: flex;
}

.sous-menu a {
  padding: 10px 20px;
  white-space: nowrap;
}

.sous-menu a:hover {
  background-color: #f5f5f5;
}

/* Sélecteur de langue FR/EN/DE/IT, en bout de menu.
   La langue de la page courante est un <span class="lien-langue actif">
   (non cliquable) ; les autres sont des <a class="lien-langue"> vers
   la page équivalente dans l'autre langue. */
.lien-langue-groupe {
  display: flex;
  gap: 6px;
  margin-left: 10px;
  padding-left: 15px;
  border-left: 1px solid #ddd;
}

.lien-langue {
  border: 1.5px solid var(--bleu-avas);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  color: var(--bleu-avas);
  text-decoration: none;
}

a.lien-langue:hover {
  background-color: var(--bleu-avas);
  color: var(--blanc);
}

span.lien-langue.actif {
  background-color: var(--bleu-avas);
  color: var(--blanc);
  cursor: default;
}


/* ============================================================
   4. PIED DE PAGE (toutes les pages)
   ============================================================ */

footer {
  background-color: #3c5ea5;
  color: var(--blanc);
  padding: 50px 40px 20px;
}

.footer-contenu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  height: 56px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.footer-colonne h3 {
  color: var(--blanc);
  font-size: 1em;
  margin-bottom: 15px;
}

.footer-colonne p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-size: 0.9em;
}

.footer-colonne a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.9em;
  transition: color 0.2s ease;
}

/* --- Icônes devant les liens (web / LinkedIn) ---
   L'icône hérite de la couleur du texte (blanc, orange au survol). */
.footer-colonne a.lien-web,
.footer-colonne a.lien-linkedin {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-colonne a.lien-web::before,
.footer-colonne a.lien-linkedin::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Globe (site web) */
.footer-colonne a.lien-web::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

/* Logo LinkedIn */
.footer-colonne a.lien-linkedin::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.45 20.45h-3.55v-5.57c0-1.33-.03-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.36V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.45 20.45h-3.55v-5.57c0-1.33-.03-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.36V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E");
}

.footer-colonne a:hover {
  color: var(--orange-avas);
}

.footer-bas {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-bas p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
}


/* ============================================================
   5. PAGE : ACCUEIL (index.html)
   ============================================================ */

/* --- Bannière hero --- */
/*c'est l'image de fond */
.hero {
  height: 60vh;
  margin-top: var(--hauteur-header);
  /*background-image: linear-gradient(rgba(60, 94, 165, 0.6), rgba(60, 94, 165, 0.6)), url("images/image_fond.JPG"); image de base*/
  background-image: url("images/comp_clair.png");
  /*background-image: linear-gradient(rgba(85, 94, 113, 0.6),rgba(85, 94, 113, 0.6)), url("images/comp_fonc.png");*/
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.hero-texte h1 {
  color: var(--bleu-avas);
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero-texte h1 span {
  color: var(--orange-avas);
}

.hero-texte p {
  color: var(--noir);
  max-width: 600px;
  border-left: 3px solid var(--orange-avas);
  padding-left: 15px;
}

/* --- Section de présentation (texte + image) --- qui est Avas */
.presentation {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
}

.presentation-image {
  width: 60%;
  border-radius: 8px;
  object-fit: cover;
}

.presentation-texte {
  flex: 1;
}

.presentation-texte p {
  line-height: 3;
}

/* --- Cartes "APS / ATPV" (accueil + page Nos entreprises) --- */
.conteneur-cartes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  margin-top: 30px;
}

.carte {
  background-color: var(--blanc);
  border-radius: 8px;
  overflow: hidden;
  /* 5 lignes partagées entre les cartes : entête (titre + bouton), sous-titre, liste, image, légendes
     -> APS et ATPV sont alignés à la même hauteur */
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}



.carte:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.carte-image {
  overflow: hidden;
}

.carte img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carte:hover img {
  transform: scale(1.08);
}

.carte h3,
.carte .soustitre,
.carte p {
  padding: 0 20px;
}

.carte h3 {
  color: var(--bleu-avas);
  margin-bottom: 0;
}

/* Liseret orange sous le nom de l'entreprise (APS / ATPV) */
.carte h3 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.carte h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 50px;
  height: 3px;
  background-color: var(--orange-avas);
}

.carte .soustitre {
  font-style: italic;
  color: #444;
  margin-top: 4px;
  font-size: 0.85em;
}

/* Liste des services : même police, taille et interligne que les légendes */
.carte > p:not(.soustitre) {
  font-size: 0.85em;
  line-height: 1.5;
  color: #1a1a1a;
}

/* Liste de services en grille 3 colonnes, dans les cartes dans 'nos services industriels' */
.services-grille-carte {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
  list-style: none;
  padding: 0 20px;
  margin: 10px 0;
  line-height: 1.4;
  font-size: 0.85em;
  color: #444;
}

.services-grille-carte li::before {
  content: "■";
  color: var(--orange-avas);
  font-weight: bold;
  margin-right: 6px;
  font-size: 0.75em;
}


/* ============================================================
   6. PAGE : NOS Services industriels (entreprises.html)
   ============================================================ */

.page-entreprises {
  padding: calc(var(--hauteur-header) + 20px) 40px 60px;
}

.intro-entreprises {
  text-align: left;
  margin-bottom: 60px;
}

.liens-rapides {
  margin-top: 20px;
}

.liens-rapides a {
  display: inline-block;
  margin-right: 15px;
  padding: 8px 18px;
  background-color: var(--bleu-avas);
  color: var(--blanc);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.liens-rapides a:hover {
  background-color: var(--orange-avas);
}




/* ============================================================
   7. PAGE : ACTUALITÉS (actualites.html)
   ============================================================ */

.page-actualites {
  padding: calc(var(--hauteur-header) + 20px) 40px 140px;
}

.page-actualites .intro {
  color: #666;
  margin-bottom: 40px;
}

.grille-actus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 70px;
}

.actu {
  background-color: var(--blanc);
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid var(--bleu-avas);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.actu-date {
  display: inline-block;
  background-color: var(--orange-avas);
  color: var(--blanc);
  font-size: 0.8em;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.actu h2 {
  font-size: 1.1em;
  margin: 10px 0;
}

.actu p {
  color: #444;
  line-height: 1.5;
  font-size: 0.95em;
}


/* ============================================================
   8. PAGE : CERTIFICATIONS (certifications.html)
   ============================================================ */

.page-certifications {
  padding: calc(var(--hauteur-header) + 20px) 40px 60px;
}

.page-certifications .intro {
  color: #666;
  margin-bottom: 40px;
}

.image-pleine-largeur {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
  display: block;
}

.grille-certifs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.bloc-certif {
  background-color: var(--blanc);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bloc-certif h2 {
  margin-top: 0;
}

.badges {
  margin-bottom: 15px;
}

.badge {
  display: inline-block;
  background-color: var(--bleu-avas);
  color: var(--blanc);
  font-weight: bold;
  font-size: 0.85em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-right: 10px;
}

.bloc-certif p {
  line-height: 1.6;
  color: #444;
}


/* ============================================================
   9. TITRES DE PAGE — couleur bleue + trait orange
   (commun à : Nos entreprises, APS/ATPV, Actualités, Certifications
   — PAS l'accueil, dont le h1 est dans le hero et reste blanc)
   ============================================================ */

.page-certifications h1,
.page-entreprises h1,
.page-detail-entreprise h1,
.entreprise-titre h1,
.page-actualites h1,
.intro-entreprises h1 {
  color: var(--bleu-avas);
  position: relative;
}

.entreprise-titre h1::after,
.page-actualites h1::after,
.intro-entreprises h1::after,
.page-certifications h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--orange-avas);
}


/* ============================================================
   10. MENU MOBILE — structure (case à cocher + bouton burger)
   Ces règles restent actives à toutes les tailles d'écran ;
   le bouton ne devient visible qu'en dessous de 768px (voir §12).
   ============================================================ */

.menu-toggle {
  display: none;
}

.menu-burger {
  display: none;
  font-size: 1.8em;
  color: var(--bleu-avas);
  cursor: pointer;
}


/* ============================================================
   11. MEDIA QUERIES — VERSION TÉLÉPHONE (max-width: 768px)
   Regroupées ici en un seul bloc, sous-sectionné par page.
   ============================================================ */

@media (max-width: 768px) {

  /* --- Menu mobile --- */
  header {
    padding: 0 20px;
  }

  .menu-burger {
    display: block;
  }

  nav {
    position: fixed;
    top: var(--hauteur-header);
    left: 0;
    width: 100%;
    background-color: var(--blanc);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
  }

  .menu-toggle:checked ~ nav {
    display: flex;
  }

  .menu-dropdown {
    width: 100%;
  }

  .sous-menu {
    position: static;
    box-shadow: none;
    display: flex;
    padding-left: 15px;
  }

  .lien-langue-groupe {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 5px;
  }

  /* --- Accueil --- */
  .hero {
    height: auto;
    padding: 60px 20px;
  }

  .hero-texte h1 {
    font-size: 1.8em;
  }

  .presentation {
    flex-direction: column;
    padding: 40px 20px;
  }

  .presentation-image {
    width: 100%;
  }

  .conteneur-cartes {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .conteneur-cartes .carte {
    margin-bottom: 30px;
  }

  main {
    padding: 40px 20px;
  }

  .services-grille-carte {
    grid-template-columns: 1fr;
    font-size: 0.9em;
  }

  /* --- Pages APS / ATPV --- */
  .page-detail-entreprise {
    padding: calc(var(--hauteur-header) + 20px) 20px 40px;
  }

  .ligne-titre {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .resume-entreprise {
    flex-direction: column;
  }

  .resume-image {
    width: 90%;
    height: 300px;
  }

  .aps-schema-image {
    min-height: 260px;
    object-fit: contain;
  }

  .aps-texte,
  .atpv-texte {
    margin-left: 0;
    margin-top: 20px;
  }

  .secteurs-contenu img {
    width: 100%;
  }

  .services-entreprise,
  .atpv-services {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: -20px;
    margin-left: 10px;
  }

  .services-image.atpv-services-image {
    width: 60%;
    max-width: 60%;
    height: auto;
    margin-top: -20px;
    margin-left: 300px;
  }

  .atpv-services-image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-left: -300px;
  }

  /* --- Actualités / Certifications / Nos entreprises / Footer --- */
  .page-actualites,
  .page-entreprises,
  .page-certifications {
    padding: var(--hauteur-header) 20px 70px;
  }

  .image-pleine-largeur {
    height: 130px;
  }

  footer {
    padding: 30px 20px 15px;
  }
}


/* ============================================================
   AJOUTS (accueil, contact, news, certifications)
   ============================================================ */

/* --- Accueil : titre + carrés --- */
.hero-groupe {
  margin-top: var(--hauteur-header);
  padding: 60px 40px 20px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.hero-groupe h1 {
  color: var(--bleu-avas);
  font-size: 2.8em;
  margin: 0 0 30px;
  position: relative;
}

.hero-groupe h1 span {
  color: var(--orange-avas);
}

.hero-groupe h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--orange-avas);
}

.carres-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.carre {
  border-radius: 8px;
  padding: 28px 30px;
  color: var(--blanc);
}

.carre h3 {
  margin: 0 0 14px;
  font-size: 1.3em;
  color: var(--blanc);
}

.carre-groupe {
  grid-column: 1 / -1;
  background-color: var(--orange-avas);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}

.carre-groupe .carre-titre {
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.carre-groupe .carre-chiffre {
  font-size: 1.8em;
  font-weight: bold;
}

.carre-texte {
  grid-column: 1 / -1;
  background-color: var(--bleu-avas);
  text-align: center;
  padding: 22px 20px;
}

.carre-texte p {
  margin: 0;
  line-height: 1.5;
  font-size: 1em;
}

.carre-aps,
.carre-atpv {
  background-color: #2f4a85;
}

.mots-cles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mots-cles li {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.85em;
}

/* --- Accueil : Nous contacter --- */
.contact-groupe {
  background-color: #f4f6fa;
  padding: 50px 40px 60px;
}

.contact-cartes {
  display: flex;
  gap: 30px;
  margin-top: 25px;
}

.contact-bloc {
  flex: 1;
  background-color: var(--blanc);
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-bloc h3 {
  color: var(--bleu-avas);
  margin: 0 0 14px;
}

.contact-bloc a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texte-fonce);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.contact-bloc a:hover {
  color: var(--orange-avas);
}

.contact-bloc a::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: var(--orange-avas);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.contact-bloc a.contact-mail::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.contact-bloc a.contact-tel::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

/* --- News : photo sous le texte --- */
.actu {
  display: flex;
  flex-direction: column;
}

.actu-date {
  align-self: flex-start;
}

.actu-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: auto;
}

.actu p {
  margin-bottom: 18px;
}

/* --- Certifications : texte d'engagement + logos --- */
.page-certifications .texte-engagement {
  max-width: 900px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 40px;
}

.logos-certifs {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.logo-certif {
  height: 90px;
  width: auto;
}

/* --- Téléphone (nouveaux blocs) --- */
@media (min-width: 1100px) {
  .carre-texte p {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .hero-groupe {
    padding: 40px 20px 10px;
  }

  .hero-groupe h1 {
    font-size: 2em;
  }

  .carres-grille {
    grid-template-columns: 1fr;
  }

  .contact-groupe {
    padding: 40px 20px;
  }

  .contact-cartes {
    flex-direction: column;
  }
}

/* --- Accueil : section des carrés sous le hero --- */
.carres-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 40px 20px;
}

.carres-section .carres-grille {
  margin-top: 0;
}

@media (max-width: 768px) {
  .carres-section {
    padding: 30px 20px 10px;
  }
}

/* --- Nous contacter : adresse postale --- */
.contact-bloc .contact-adresse {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  line-height: 1.5;
  color: var(--texte-fonce);
}

.contact-bloc .contact-adresse::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background-color: var(--orange-avas);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* --- Accueil : textes sous chaque moitié de l'image des cartes --- */
.legendes-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 15px;
}

.carte .legende {
  padding: 16px 20px;
  margin: 0;
  font-size: 0.85em;
  line-height: 1.5;
  color: #1a1a1a;
}

.carte .legende + .legende {
  border-left: 1px solid #e3e7ef;
}

/* Listes à petits carrés orange dans les légendes (ATPV) */
.carte .legende .liste-carres {
  margin: 4px 0 8px;
}

.carte .legende .liste-carres li {
  line-height: 1.5;
  margin-bottom: 2px;
}

.carte .legende strong {
  display: block;
  color: var(--orange-avas);
  font-size: 1.05em;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .legendes-image {
    grid-template-columns: 1fr;
  }

  .carte .legende + .legende {
    border-left: none;
    border-top: 1px solid #e3e7ef;
  }
}


/* --- Accueil : liste à petits carrés orange (Qui est Group AVAS ?) --- */
.liste-carres {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.liste-carres li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.liste-carres li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--orange-avas);
  font-size: 0.8em;
}

/* --- Accueil (hero) : liste à petits carrés orange --- */
.hero-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
  margin-left: 40px;
  color: #000; /*couleur texte accueil image*/
  font-size: 1.2em; /*taille du texte sur l'image d'accueil*/
}

/* Retrait (alinéa) pour les sous-lignes */
.alinea {
  display: block;
  padding-left: 30px;
  line-height: 1.5;
}

.hero-liste li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.hero-liste li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--orange-avas);
  font-size: 0.8em;
}

@media (max-width: 768px) {
  .hero-liste {
    font-size: 1em;
    margin-left: 15px;
  }
}


/* ============================================================
   AJOUTS — interligne du paragraphe "chaîne de valeur" (accueil)
   et page Mentions légales
   ============================================================ */

/* Les 2 premières lignes : interligne resserré */
.presentation-texte p.texte-chaine {
  line-height: 1.6;
}

/* Les 2 dernières lignes (APS / ATPV) : un peu plus aérées */
.presentation-texte p.texte-chaine .alinea {
  line-height: 2.2;
  margin-top: 10px;
}

/* Lien "Mentions légales" dans le pied de page */
.lien-mentions {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
  text-decoration: underline;
}

.lien-mentions:hover {
  color: var(--orange-avas);
}

.footer-bas p + p {
  margin-top: 6px;
}

/* Page Mentions légales */
.page-mentions {
  padding: calc(var(--hauteur-header) + 20px) 40px 80px;
}

.page-mentions h1 {
  color: var(--bleu-avas);
  position: relative;
}

.page-mentions h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--orange-avas);
}

.page-mentions .contenu-legal {
  max-width: 900px;
  margin-top: 50px;
  line-height: 1.7;
  color: #444;
}

.page-mentions .contenu-legal h2 {
  margin-top: 40px;
}

.page-mentions .contenu-legal ul {
  margin: 10px 0 10px 20px;
}

@media (max-width: 768px) {
  .page-mentions {
    padding: var(--hauteur-header) 20px 70px;
  }
}
