/* =========================================================
   LES BIDONS DE L'AN FER — v5
   Feuille de style commune (accueil + galerie)

   Sommaire
   1. Polices
   2. Variables (couleurs, tailles…)
   3. Base
   4. Utilitaires
   5. En-tête & logo
   6. Boutons réseaux / contact
   7. Menu burger
   8. Carrousel
   9. Blocs de présentation
   10. Pied de page
   11. Galerie & visionneuse
   11 bis. Page contact
   12. Animations d'apparition
   13. Responsive
   14. Préférences d'accessibilité
   ========================================================= */

/* ---------- 1. Polices (hébergées sur le site, format woff2) ---------- */
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("../fonts/AlteHaasGroteskBold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bungee";
  src: url("../fonts/Bungee-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* ---------- 2. Variables ---------- */
:root {
  --vert: #00ff02;          /* vert fluo (boutons, titres) */
  --vert-fonce: #008102;    /* vert du menu burger / flèches */
  --noir: #000;
  --gris: #dad6d3;          /* fond clair (footer, galerie) */
  --blanc: #fff;

  --font-titre: "Bungee", "Arial Black", sans-serif;
  --font-bouton: "Bungee", "Arial Black", sans-serif;
  --font-texte: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif;

  --ombre: 3px 3px 0 rgba(0, 0, 0, .55);
  --halo: 0 0 0 4px rgba(0, 255, 2, .25), 0 0 22px rgba(0, 255, 2, .55); /* lueur verte au survol des boutons */
  --largeur: 860px;         /* largeur max du contenu */
  --transition: .3s cubic-bezier(.25, .8, .25, 1);
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-texte);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 400; }

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

/* ---------- 4. Utilitaires ---------- */
.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.lien-evitement {                 /* « Aller au contenu » pour clavier / lecteurs d'écran */
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--vert);
  color: var(--noir);
  font-weight: 700;
  text-decoration: none;
}
.lien-evitement:focus { top: 12px; }

/* ---------- 5. En-tête & logo ---------- */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 3vw, 30px) 16px 0;
}
.site-header--overlay {           /* accueil : le header flotte sur le carrousel */
  position: absolute;
  inset: 0 0 auto 0;
  padding-bottom: 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0));
  pointer-events: none;
}
.site-header--overlay > * { pointer-events: auto; }
.site-header--plein {             /* galerie : bandeau noir */
  background: var(--noir);
  padding-bottom: clamp(16px, 2.5vw, 24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  text-decoration: none;
}
.brand__logo {
  width: clamp(60px, 9vw, 96px);
  filter: drop-shadow(var(--ombre));
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.brand__nom {
  font-family: var(--font-titre);
  font-weight: 400;
  color: var(--vert);
  font-size: clamp(24px, 3.9vw, 44px);
  line-height: 1.05;
  letter-spacing: .01em;
  text-shadow: var(--ombre);
}
.brand__nom span { display: block; }

.header-separateur {
  width: min(330px, 70vw);
  height: 2px;
  margin: clamp(14px, 2vw, 22px) 0 clamp(12px, 1.6vw, 16px);
  border: 0;
  background: var(--vert);
}

/* ---------- 6. Boutons réseaux / contact ---------- */
.reseaux {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btn-rond {
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), filter var(--transition);
}
.btn-rond {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  opacity: .9;
}
.btn-rond img { width: 100%; height: 100%; }
.btn-rond:active { transform: scale(.96); }

/* « CONTACT » : simple texte (vert sur fond sombre, noir sur fond clair) */
.lien-contact {
  padding: 0 6px;
  color: var(--vert);
  font-family: var(--font-bouton);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: underline 2px transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--transition);
}
.site-footer .lien-contact,
.galerie-intro .lien-contact { color: var(--noir); }
.site-header--overlay .lien-contact { text-shadow: 0 1px 8px rgba(0, 0, 0, .9); } /* lisible sur la photo */

.contact-ligne {
  margin: 14px 0 0;
  color: var(--noir);
  font-size: 16px;
  font-style: normal;
  text-align: center;
}
.contact-ligne a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size var(--transition);
}
.contact-ligne .sep { margin: 0 .45em; }

/* ---------- 7. Menu burger ---------- */
.burger {
  position: fixed;
  top: clamp(14px, 2.4vw, 26px);
  right: clamp(14px, 2.6vw, 30px);
  z-index: 60;
  width: 42px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: .85;
  transition: opacity var(--transition);
}
.burger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 6px;
  border-radius: 6px;
  background: var(--vert-fonce);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  transition: transform var(--transition), opacity .2s ease, background .2s;
}
.burger span:nth-child(1) { top: 3px; }
.burger span:nth-child(2) { top: 14px; }
.burger span:nth-child(3) { top: 25px; }
.menu-ouvert .burger { opacity: 1; }
.menu-ouvert .burger span { background: var(--vert); }
.menu-ouvert .burger span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
.menu-ouvert .burger span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease;
}
.menu-ouvert .menu { opacity: 1; visibility: visible; }
.menu-ouvert .menu li { opacity: 1; transform: none; }
.menu-ouvert .menu li:nth-child(2) { transition-delay: .06s; }
.menu-ouvert .menu li:nth-child(3) { transition-delay: .12s; }
.menu a {
  font-family: var(--font-titre);
  font-size: clamp(30px, 6vw, 54px);
  color: var(--vert);
  text-decoration: none;
  text-shadow: var(--ombre);
  background: linear-gradient(var(--vert), var(--vert)) 50% 100% / 0 4px no-repeat;
  transition: color .2s, background-size var(--transition);
}
.menu a[aria-current="page"] { color: var(--blanc); }
.menu-ouvert { overflow: hidden; }

/* ---------- 8. Carrousel ---------- */
.haut { position: relative; }
.carrousel {
  position: relative;
  height: clamp(420px, 48.2vw, 820px);
  overflow: hidden;
  background: #111;
}
.carrousel__piste {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .7s cubic-bezier(.6, .05, .25, 1);
  touch-action: pan-y;
}
.carrousel__slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.carrousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1.06);
  transition: transform 6s ease-out;     /* léger zoom lent (effet « Ken Burns ») */
}
.carrousel__slide.est-active img { transform: scale(1); }

.carrousel__fleche {
  position: absolute;
  top: 50%;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--vert-fonce);
  color: var(--noir);
  cursor: pointer;
  opacity: .7;
  transform: translateY(-50%);
  transition: background var(--transition), opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.carrousel__fleche svg { width: 20px; height: 20px; }
.carrousel__fleche--prev { left: clamp(10px, 2.6vw, 26px); }
.carrousel__fleche--next { right: clamp(10px, 2.6vw, 26px); }
.carrousel__fleche--prev svg { margin-left: -3px; }
.carrousel__fleche--next svg { margin-right: -3px; }

.carrousel__points {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 25;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.carrousel__points button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blanc);
  cursor: pointer;
  opacity: .5;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
}
.carrousel__points button[aria-current="true"] { background: var(--vert); opacity: 1; transform: scale(1.15); }

/* ---------- 9. Blocs de présentation ---------- */
.presentation {
  padding: clamp(30px, 4vw, 40px) 16px 20px;
  background: #050505 url("../img/texture-bidon.jpg") center top / cover no-repeat;
}
.bloc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 3.4vw, 34px);
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(0px, 1vw, 10px) 0 clamp(50px, 6vw, 60px);
}
.bloc__media {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.bloc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25, .8, .25, 1), filter .6s ease;
}
.bloc__texte { max-width: 420px; }
.bloc h2 {
  margin-bottom: 1em;
  font-family: var(--font-titre);
  color: var(--vert);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.2;
  text-shadow: var(--ombre);
}
.bloc p { margin: 0 0 1.2em; }
.bloc p:last-child { margin-bottom: 0; }

/* bloc inversé : texte à gauche aligné à droite, photo à droite */
.bloc--inverse .bloc__texte { order: -1; justify-self: end; text-align: right; }
.bloc--inverse .bloc__media { justify-self: start; }

/* ---------- 10. Pied de page ---------- */
.site-footer {
  padding: 22px 16px;
  background: var(--gris);
  color: var(--noir);
}
.copyright {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
  opacity: .6;
}

/* ---------- 11. Galerie & visionneuse ---------- */
.page-galerie { background: var(--gris); }
.galerie-intro { padding: 26px 16px 10px; }
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.7vw, 30px);
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) 16px clamp(40px, 6vw, 70px);
  list-style: none;
}
.galerie__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #bbb;
  cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: box-shadow var(--transition);
}
.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25, .8, .25, 1), filter .4s ease;
}
.galerie__item::after {            /* voile + loupe au survol */
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff02' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 44px no-repeat,
    rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity var(--transition);
}

.visionneuse {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vert);
}
.visionneuse[open] { display: flex; align-items: center; justify-content: center; }
.visionneuse::backdrop { background: rgba(0, 0, 0, .93); }
.visionneuse figure { margin: 0; text-align: center; outline: none; }
.visionneuse img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  margin: 0 auto;
  object-fit: contain;
  animation: apparition .3s ease;
}
.visionneuse figcaption {
  margin-top: 10px;
  color: var(--blanc);
  font-size: 14px;
  opacity: .8;
}
.visionneuse button {
  position: absolute;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--vert);
  cursor: pointer;
  font-family: var(--font-titre);
  line-height: 1;
  opacity: .7;
  transition: opacity var(--transition), transform var(--transition);
}
.visionneuse__fermer { top: 8px; right: 12px; font-size: 40px; }
.visionneuse__prev,
.visionneuse__next { top: 50%; font-size: 50px; transform: translateY(-50%); }
.visionneuse__prev { left: 4px; }
.visionneuse__next { right: 4px; }

@keyframes apparition { from { opacity: 0; transform: scale(.97); } }

/* ---------- 11 bis. Page contact ---------- */
.page-contact { background: var(--noir); }
.contact {
  padding: clamp(36px, 6vw, 70px) 16px clamp(50px, 7vw, 90px);
  background: #050505 url("../img/texture-bidon.jpg") center top / cover no-repeat;
}
.contact__intro {
  max-width: 960px;
  margin: 0 auto clamp(30px, 5vw, 50px);
  text-align: center;
}
.contact__titre {
  font-family: var(--font-titre);
  color: var(--vert);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  text-shadow: var(--ombre);
}
.contact__accroche {
  margin: 16px 0 0;
  font-size: clamp(17px, 2vw, 21px);
}
.contact__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(24px, 4vw, 50px);
  max-width: 960px;
  margin: 0 auto;
}
.contact h2 {
  margin-bottom: 14px;
  font-family: var(--font-titre);
  color: var(--vert);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.2;
  text-shadow: var(--ombre);
}
.contact__infos h2:not(:first-child) { margin-top: 34px; }
.contact__nom { margin: 0 0 14px; font-size: 1.1em; }
.contact__liste { margin: 0; padding: 0; list-style: none; }
.contact__liste li + li { margin-top: 14px; }
.contact__label {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
}
.contact__valeur {
  color: var(--vert);
  font-size: clamp(17px, 1.8vw, 20px);
  text-decoration: underline 2px transparent;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: text-decoration-color var(--transition);
}
.reseaux--gauche { justify-content: flex-start; }
.contact__photo {
  margin: 34px 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25, .8, .25, 1), filter .6s ease;
}

/* Formulaire */
.formulaire {
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid rgba(0, 255, 2, .25);
  border-radius: 8px;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.formulaire__aide { margin: -6px 0 18px; font-size: 13px; opacity: .7; }
.formulaire__ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.requis { color: var(--vert); }
.champ { margin-bottom: 18px; }
.champ label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #3a3a3a;
  border-radius: 6px;
  background: rgba(20, 20, 20, .85);
  color: var(--blanc);
  font: inherit;
  font-size: 16px;                       /* 16 px minimum : évite le zoom auto sur iPhone */
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input[type="date"] { color-scheme: dark; }
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  border-color: var(--vert);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 255, 2, .18);
  background: rgba(0, 0, 0, .9);
}
.champ__select { position: relative; }
.champ__select select { appearance: none; padding-right: 42px; cursor: pointer; }
.champ__select::after {                  /* petite flèche verte */
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  border: 7px solid transparent;
  border-top-color: var(--vert);
  border-bottom: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.champ__select option { background: #111; color: var(--blanc); }

.champ--case {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
}
.champ--case input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--vert);
  cursor: pointer;
}
.champ--case label { margin: 0; font-size: 14px; line-height: 1.4; cursor: pointer; }
.champ--case .champ__erreur { grid-column: 2; }

.champ__erreur {
  display: none;
  margin: 6px 0 0;
  color: #ff5a4f;
  font-size: 14px;
}
.formulaire.a-verifier .champ:has(:invalid) input,
.formulaire.a-verifier .champ:has(:invalid) textarea { border-color: #ff5a4f; }
.formulaire.a-verifier .champ:has(:invalid) .champ__erreur { display: block; }

.btn-envoyer {
  display: inline-block;
  margin-top: 6px;
  padding: 13px 34px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--vert);
  color: var(--noir);
  cursor: pointer;
  font-family: var(--font-titre);
  font-size: 20px;
  letter-spacing: .03em;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.btn-envoyer:active { transform: scale(.97); }
.btn-envoyer:focus-visible { box-shadow: var(--halo); }
.btn-envoyer[disabled] { opacity: .6; cursor: wait; }

.formulaire__statut { min-height: 1.4em; margin: 16px 0 0; }
.formulaire__statut.est-ok { color: var(--vert); }
.formulaire__statut.est-erreur { color: #ff5a4f; }

@media (hover: hover) {
  .contact__valeur:hover { text-decoration-color: currentColor; }
  .contact__photo:hover img { transform: scale(1.07); filter: brightness(1.1) saturate(1.1); }
  .champ input:hover:not(:focus),
  .champ select:hover:not(:focus),
  .champ textarea:hover:not(:focus) { border-color: #5a5a5a; }
  .btn-envoyer:hover { transform: translateY(-2px); box-shadow: var(--halo); }
}

@media (max-width: 800px) {
  .contact__grille { grid-template-columns: 1fr; max-width: 560px; }
  .contact__infos { text-align: center; }
  .contact__infos .reseaux--gauche { justify-content: center; }
  .contact__photo { display: none; }     /* sur mobile : on va droit au formulaire */
}
@media (max-width: 520px) {
  .formulaire__ligne { grid-template-columns: 1fr; }
  .btn-envoyer { width: 100%; }
}

/* ---------- Effets de survol (uniquement souris / trackpad) ---------- */
@media (hover: hover) {
  .brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }

  .lien-contact:hover { text-decoration-color: currentColor; }

  .btn-rond:hover { opacity: 1; transform: translateY(-2px) scale(1.07); box-shadow: var(--halo); }

  .burger:hover { opacity: 1; }
  .burger:hover span { background: var(--vert); }

  .menu a:hover { color: var(--blanc); background-size: 100% 4px; }

  .contact-ligne a:hover { background-size: 100% 2px; }

  .carrousel__fleche:hover { opacity: 1; background: var(--vert); box-shadow: var(--halo); transform: translateY(-50%) scale(1.1); }
  .carrousel__points button:hover { opacity: 1; }

  .bloc__media:hover img { transform: scale(1.07); filter: brightness(1.1) saturate(1.1); }

  .galerie__item:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
  .galerie__item:hover img { transform: scale(1.08); }
  .galerie__item:hover::after { opacity: 1; }

  .visionneuse button:hover { opacity: 1; }
}
.btn-rond:focus-visible { box-shadow: var(--halo); }
.carrousel__fleche:focus-visible,
.btn-rond:focus-visible,
.burger:focus-visible,
.visionneuse button:focus-visible { opacity: 1; }
.galerie__item:focus-visible::after { opacity: 1; }

/* ---------- 12. Animations d'apparition au défilement ---------- */
/* Ne s'appliquent que si JavaScript est actif (classe .js sur <html>) */
.js .apparait {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.25, .8, .25, 1);
}
.js .apparait.est-visible { opacity: 1; transform: none; }
.js .bloc.apparait .bloc__texte { transition-delay: .15s; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 700px) {
  .carrousel { height: clamp(460px, 120vw, 620px); }
  .carrousel__fleche { width: 36px; height: 36px; }

  .bloc,
  .bloc--inverse {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 460px;
    padding-bottom: 46px;
  }
  .bloc__media,
  .bloc--inverse .bloc__media { justify-self: center; max-width: 100%; aspect-ratio: 4 / 3; }
  .bloc--inverse .bloc__texte { order: 0; justify-self: start; text-align: left; }
  .bloc__texte { max-width: none; }

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

@media (max-width: 520px) {               /* en-tête compact (laisse la place au burger) */
  .brand__logo { width: 52px; }
  .brand__nom { font-size: 22px; }
  .burger { width: 38px; }
}

@media (max-width: 380px) {
  .lien-contact { font-size: 18px; }
  .contact-ligne { font-size: 15px; }
}

/* ---------- 14. Préférences d'accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .carrousel__slide img { transform: none; }
}
