/*!
 * afondlacom’ 2027 - styles communs à toutes les pages (mode sombre placé avec chaque composant)
 * Copyright Pascal Evrard - agence digitale afondlacom’ - toute reproduction interdite.
 *
 * Sommaire
 *   1. Variables, base et utilitaires
 *   2. Curseur personnalisé (souris)
 *   3. Logo
 *   4. En-tête : barre d’informations, navigation et actions
 *   5. Volet de navigation plein écran
 *   6. Recherche interne
 *   7. Pied de page
 */

/* === Variables, base et utilitaires === */
:root {
  --noir: #191919;
  --blanc: #fff;
  --ligne: #dedede;
  --fond: #f4f4f2;
  --largeur-site: 2166px;
  --largeur-contenu: 1722px;
  --marge-page: 14px;
}
* {
  box-sizing: border-box;
}
html {
  font-family: Poppins,Arial,sans-serif;
  color: var(--noir);
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--fond);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

html[data-theme="dark"] body {
  background: #0b0b0c;
  color: #f7f7f7;
}
.page-vide {
  min-height: 55vh;
}
html[data-theme="light"],
html[data-theme="light"] body {
  background: #fff;
}

@media (max-width:720px) {
  :root {
    --marge-page: 8px;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* === Curseur personnalisé (souris) === */
.curseur-rond {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(237,90,33,.5);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%,-50%);
  transition: width .16s ease,height .16s ease,opacity .2s ease;
}
.curseur-rond.visible {
  opacity: 1;
}
.curseur-rond.actif {
  width: 20px;
  height: 20px;
}

@media (pointer:fine) {
  body.curseur-actif:not(.curseur-natif),
  body.curseur-actif:not(.curseur-natif) a,
  body.curseur-actif:not(.curseur-natif) button,
  body.curseur-actif:not(.curseur-natif) input {
    cursor: none;
  }
}

/* === Logo === */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  white-space: nowrap;
}
.logo_cube {
  display: inline-block;
  flex: 0 0 auto;
  width: 28px;
  height: 29px;
  background: url("../images/afondlacom-cube-3d-noir.svg") center / contain no-repeat;
}
.logo_texte {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -1.35px;
}

@media (max-width:1450px) {
  .logo_texte {
    font-size: 23px;
  }
}

@media (max-width:620px) {
  .logo_texte {
    font-size: 21px;
  }
  .logo_cube {
    transform: scale(.88);
  }
}

@media (max-width:430px) {
  .logo {
    gap: 4px;
  }
  .logo_texte {
    font-size: 18px;
    letter-spacing: -1px;
  }
  .logo_cube {
    width: 24px;
    transform: scale(.76);
    transform-origin: left center;
  }
}

.pied-page_logo .logo_cube {
  width: 25px;
  height: 26px;
}

/* === En-tête : barre d’informations, navigation et actions === */
.entete {
  position: fixed;
  z-index: 50;
  top: 0;
  transition: opacity .28s ease,transform .32s ease,visibility .32s;
}
.entete.masquee {
  opacity: 0;
  visibility: hidden;
}
.barre {
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--ligne);
  border-radius: 19px;
  backdrop-filter: blur(18px);
}
.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}
.navigation a {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.navigation a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 7px;
  height: 7px;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 100%,100% 0,100% 100%);
  transform: none;
}
.navigation a::before {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: #191919;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}
.navigation a:hover::before,
.navigation a:focus-visible::before,
.navigation a[aria-current]::before {
  transform: scaleX(1);
  transform-origin: left;
}
.actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 27px;
}
.icone {
  width: 23px;
  height: 23px;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
}
.icone svg {
  width: 100%;
  height: 100%;
}
.lune svg {
  width: 21px;
  height: 21px;
}
.grille svg {
  width: 22px;
  height: 22px;
}
.bouton-projet {
  height: 52px;
  min-width: 149px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 31px;
  background: #191919;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease,background .2s ease;
}
.bouton-projet:hover,
.bouton-projet:focus-visible {
  background: #333;
  transform: translateY(-1px);
}
.menu-reduit {
  position: fixed;
  z-index: 55;
  top: 20px;
  width: 160px;
  height: 70px;
  border: 1px solid #d8d8d8;
  border-radius: 21px;
  background: rgba(255,255,255,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 19px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  transition: opacity .25s ease,transform .3s ease,visibility .3s;
  box-shadow: 0 9px 35px rgba(0,0,0,.05);
  backdrop-filter: blur(15px);
  right: max(var(--marge-page),calc((100vw - var(--largeur-site))/2 + var(--marge-page)));
}
.menu-reduit.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.menu-reduit svg {
  width: 23px;
  height: 23px;
}
.volet_bas .bouton-projet {
  min-width: 190px;
}

@media (max-width:1450px) {
  .barre {
    padding: 0 28px;
  }
  .navigation {
    gap: 25px;
  }
  .navigation a {
    font-size: 14px;
  }
  .actions {
    gap: 20px;
  }
  .bouton-projet {
    min-width: 132px;
    padding: 0 19px;
  }
}

@media (max-width:1120px) {
  .navigation {
    display: none;
  }
  .barre {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
    border-radius: 19px;
  }
  .actions {
    gap: 23px;
  }
  .actions .bouton-projet {
    display: none;
  }
  .menu-reduit {
    top: 12px;
    width: 138px;
    height: 58px;
    border-radius: 18px;
    font-size: 17px;
  }
}

@media (max-width:620px) {
  .actions {
    gap: 20px;
  }
  .icone {
    width: 22px;
    height: 22px;
  }
  .menu-reduit {
    top: 10px;
    width: 127px;
    height: 55px;
  }
  .volet_bas .bouton-projet {
    width: 100%;
    height: 52px;
  }
}

@media (max-width:430px) {
  .barre {
    padding: 0 13px;
  }
  .actions {
    gap: 14px;
  }
}

@media (max-width:350px) {
  .actions {
    gap: 10px;
  }
  .recherche {
    display: none;
  }
}

.entete {
  padding: 0 14px;
  left: 50%;
  width: min(100%,var(--largeur-site));
  transform: translateX(-50%);
}
.infos {
  height: 30px;
  padding: 0 clamp(28px,9.5vw,195px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-radius: 0 0 15px 15px;
  background: #1d1d1d;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}
.infos_droite {
  display: flex;
  align-items: center;
  gap: 26px;
}
.barre {
  height: 70px;
  margin-top: 16px;
  padding-left: clamp(28px,9.5vw,195px);
  padding-right: clamp(28px,9.5vw,195px);
}

@media (max-width:1450px) {
  .infos {
    padding: 0 28px;
  }
  .barre {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width:1120px) {
  .infos {
    display: none;
  }
  .entete {
    padding: 1px;
  }
  .barre {
    height: 76px;
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width:430px) {
  .barre {
    padding-left: 13px;
    padding-right: 13px;
  }
}

html[data-theme="dark"] .barre {
  background: rgba(18,18,19,.96);
  border-color: #38383a;
}
html[data-theme="dark"] .navigation a::before {
  background: #fff;
}
html[data-theme="dark"] .bouton-projet {
  background: #fff;
  color: #151515;
}
html[data-theme="dark"] .bouton-projet:hover,
html[data-theme="dark"] .bouton-projet:focus-visible {
  background: #dedede;
}
html[data-theme="dark"] .menu-reduit {
  background: rgba(18,18,19,.96);
  border-color: #3b3b3d;
  color: #fff;
}
.entete.masquee {
  transform: translate(-50%,-110%);
}
.entete {
  padding-right: var(--marge-page);
  padding-left: var(--marge-page);
}

@media (max-width:720px) {
  .entete {
    padding-right: var(--marge-page);
    padding-left: var(--marge-page);
  }
}

/* === Volet de navigation plein écran === */
.volet {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .24s ease,transform .28s ease,visibility .28s;
  overflow: auto;
}

/* Visible dès l’ouverture (focus immédiat) ; le délai de .28s reste appliqué à la fermeture. */
.volet.ouvert {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .24s ease,transform .28s ease,visibility 0s;
}
.volet_interieur {
  min-height: 100%;
  padding: 28px 4vw 35px;
  display: flex;
  flex-direction: column;
}
.volet_haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fermer {
  width: 58px;
  height: 58px;
  border: 1px solid var(--ligne);
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
}
.fermer svg {
  width: 23px;
  height: 23px;
}
.volet nav {
  width: min(900px,100%);
  margin: 8vh auto 45px;
}
.volet ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.volet li {
  border-bottom: 1px solid var(--ligne);
}
.volet nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  font-size: clamp(30px,5vw,68px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.1;
}
.volet nav a span {
  font-size: .48em;
  font-weight: 400;
  letter-spacing: 0;
}
.volet_bas {
  width: min(900px,100%);
  margin: auto auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  font-size: 14px;
}

@media (max-width:620px) {
  .volet_interieur {
    padding: 20px;
  }
  .volet nav {
    margin-top: 7vh;
  }
  .volet nav a {
    padding: 15px 0;
    font-size: clamp(28px,9vw,42px);
  }
  .volet_bas {
    align-items: stretch;
    flex-direction: column;
  }
}

html[data-theme="dark"] .volet {
  background: #111;
  color: #fff;
}
html[data-theme="dark"] .volet li,
html[data-theme="dark"] .fermer {
  border-color: #39393b;
}
html[data-theme="dark"] .fermer {
  background: #171718;
  color: #fff;
}

/* === Recherche interne === */
.recherche-volet {
  position: fixed;
  z-index: 80;
  inset: 0;
  padding: 28px 5vw 50px;
  background: #fff;
  color: #191919;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .22s ease,transform .28s ease,visibility .28s;
  overflow: auto;
}

/* Visible dès l’ouverture (focus immédiat) ; le délai de .28s reste appliqué à la fermeture. */
.recherche-volet.ouvert {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .22s ease,transform .28s ease,visibility 0s;
}
.recherche-volet_haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.recherche-volet_contenu {
  width: min(980px,100%);
  margin: 9vh auto 0;
}
.recherche-volet label {
  display: block;
  margin-bottom: 17px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.champ-recherche {
  width: 100%;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 2px solid #191919;
  outline: 0;
  background: transparent;
  color: inherit;
  font: 500 clamp(32px,6vw,76px)/1.1 Poppins,Arial,sans-serif;
  letter-spacing: -.05em;
}
.champ-recherche::placeholder {
  color: #b0b0b0;
}
.recherche-etat {
  margin: 22px 0;
  color: #757575;
  font-size: 14px;
}
.resultats-recherche {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ligne);
}
.resultat-recherche {
  border-bottom: 1px solid var(--ligne);
}
.resultat-recherche a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: 21px 2px;
}
.resultat-recherche strong {
  font-size: 19px;
}
.resultat-recherche p {
  margin: 6px 0 0;
  color: #747474;
  font-size: 14px;
  line-height: 1.55;
}
.resultat-recherche span {
  align-self: center;
  font-size: 22px;
}
.recherche-vide {
  padding: 28px 0;
  color: #747474;
}
.fermer-recherche {
  width: 58px;
  height: 58px;
  border: 1px solid var(--ligne);
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
}
.fermer-recherche svg {
  width: 23px;
  height: 23px;
}
html[data-theme="dark"] .recherche-volet {
  background: #111;
  color: #fff;
}
html[data-theme="dark"] .champ-recherche {
  border-color: #fff;
}
html[data-theme="dark"] .resultats-recherche,
html[data-theme="dark"] .resultat-recherche,
html[data-theme="dark"] .fermer-recherche {
  border-color: #39393b;
}
html[data-theme="dark"] .fermer-recherche {
  background: #171718;
  color: #fff;
}
html[data-theme="dark"] .resultat-recherche p,
html[data-theme="dark"] .recherche-etat,
html[data-theme="dark"] .recherche-vide {
  color: #aaa;
}

@media (max-width:620px) {
  .recherche-volet {
    padding: 20px;
  }
  .recherche-volet_contenu {
    margin-top: 7vh;
  }
  .champ-recherche {
    font-size: 36px;
  }
  .resultat-recherche a {
    padding: 17px 0;
  }
  .resultat-recherche strong {
    font-size: 17px;
  }
}

.resultat-recherche> a>span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #191919;
}
.resultat-recherche> a>span svg {
  display: block;
  width: 22px;
  height: 22px;
}
html[data-theme="dark"] .resultat-recherche> a>span {
  color: #fff;
}

/* === Pied de page === */
.pied-page {
  position: relative;
  margin-top: clamp(40px,6vw,100px);
  padding: 120px 0 30px;
  background: #101011;
  color: #fefefe;
  font-family: "DM Sans",Arial,sans-serif;
}
.pied-page a {
  color: inherit;
}
.pied-page_interieur {
  width: min(1392px,calc(100% - 48px));
  margin: 0 auto;
}
.pied-page_haut {
  display: grid;
  grid-template-columns: 1.12fr .92fr .78fr;
  gap: clamp(55px,6vw,115px);
  align-items: start;
  padding-bottom: 74px;
}
.pied-page_identite {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 55px;
  align-items: start;
}
.pied-page_logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.pied-page_coordonnees {
  display: grid;
  gap: 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.34;
}
.pied-page_coordonnees address {
  margin-top: 5px;
  font-style: normal;
}
.pied-page_navigation {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 55px;
}
.pied-page_liste {
  display: grid;
  gap: 16px;
}
.pied-page_liste a {
  position: relative;
  width: max-content;
  color: #a9a9ac;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
  background-image: linear-gradient(currentColor,currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color .35s ease,background-size .35s ease;
}
.pied-page_liste a::after {
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  width: 13px;
  height: 13px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: translate(-10px,-50%);
  transition: opacity .35s ease,transform .35s ease;
  clip-path: polygon(13% 0,100% 0,100% 87%,82% 87%,82% 31%,18% 95%,5% 82%,69% 18%,13% 18%);
}
.pied-page_liste a:hover,
.pied-page_liste a:focus-visible {
  color: #fff;
  background-size: 100% 1px;
}
.pied-page_liste a:hover::after,
.pied-page_liste a:focus-visible::after {
  opacity: .72;
  transform: translate(0,-50%);
}
.pied-page_legal {
  align-self: end;
}
.pied-page_label {
  margin: 0 0 15px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pied-page_pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pied-page_pastille {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background .25s ease,color .25s ease;
}
.pied-page_pastille svg {
  width: 9px;
  height: 10px;
}
.pied-page_pastille:hover,
.pied-page_pastille:focus-visible {
  background: #fff;
  color: #101011;
}
.pied-page_bas {
  padding: 38px 0 0;
  border-top: 1px solid rgba(255,255,255,.3);
}
.pied-page_ligne-titre {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 50px;
  align-items: end;
}
.pied-page_copyright {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.5);
  font-size: 16px;
  font-weight: 500;
}
.pied-page_grand-lien {
  width: max-content;
  max-width: 100%;
  font-size: clamp(94px,8.35vw,160px);
  font-weight: 500;
  letter-spacing: -.068em;
  line-height: 1.1;
  white-space: nowrap;
}
.pied-page_zone {
  padding: 0 20px 18px 0;
  color: #fff;
}
.pied-page_zone span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.5);
  font-size: 15px;
}
.pied-page_zone strong {
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.03em;
}
.pied-page_metiers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 27px;
  margin: 16px 0 0;
  padding: 0 0 0 15px;
  list-style: none;
  color: rgba(255,255,255,.5);
}
.pied-page_metiers li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.pied-page_metiers li::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}
.pied-page_metiers svg {
  width: 11px;
  height: 11px;
}
.pied-page_retour {
  position: absolute;
  right: 36px;
  bottom: 42px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #101011;
}
.pied-page_retour svg {
  display: block;
  width: 14px;
  height: 9px;
  overflow: visible;
}
.pied-page_retour path {
  stroke: #101011 !important;
  stroke-width: 1.8;
}
.pied-page_grand-lien {
  display: inline-flex;
  align-items: center;
  gap: .15em;
}
.pied-page_grand-lien>svg {
  width: .42em;
  height: .42em;
  flex: 0 0 auto;
  transition: transform .3s ease;
}
.pied-page_grand-lien:hover>svg,
.pied-page_grand-lien:focus-visible>svg {
  transform: translate(.08em,-.08em);
}

@media (min-width:1441px) {
  .pied-page_grand-lien {
    font-size: clamp(160px,10.75vw,220px);
    letter-spacing: -11px;
  }
}

@media (max-width:1180px) {
  .pied-page {
    padding-top: 86px;
  }
  .pied-page_haut {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .pied-page_identite {
    grid-column: 1/-1;
  }
  .pied-page_legal {
    align-self: start;
  }
  .pied-page_grand-lien {
    font-size: clamp(58px,10vw,96px);
    letter-spacing: -.055em;
  }
}

@media (max-width:720px) {
  .pied-page {
    padding: 66px 0 34px;
  }
  .pied-page_interieur {
    width: calc(100% - 40px);
  }
  .pied-page_haut {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-bottom: 54px;
  }
  .pied-page_identite {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pied-page_navigation {
    gap: 36px;
  }
  .pied-page_liste {
    gap: 14px;
  }
  .pied-page_liste a {
    font-size: 18px;
  }
  .pied-page_pastille {
    padding: 6px 14px;
    font-size: 12px;
  }
  .pied-page_ligne-titre {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .pied-page_copyright {
    font-size: 13px;
  }
  .pied-page_grand-lien {
    white-space: normal;
    font-size: clamp(52px,15vw,76px);
    line-height: .94;
    letter-spacing: -.065em;
  }
  .pied-page_zone {
    padding: 0;
  }
  .pied-page_metiers {
    display: none;
  }
  .pied-page_retour {
    right: 20px;
    bottom: 22px;
    width: 44px;
    height: 44px;
  }
}

/* Repère permanent dans le menu complet. */
.volet nav a[aria-current] { text-decoration:underline; text-underline-offset:8px; text-decoration-thickness:2px; }
