/* =========================================================
   Taroudant Tennis Club — feuille de style commune
   Couleurs tirées du logo : vert TTC, terre (remparts),
   jaune balle de tennis, sable.
   ========================================================= */

:root {
  --vert: #2f9e2f;
  --vert-fonce: #1f6e1f;
  --terre: #a3521f;
  --terre-fonce: #7a3a14;
  --balle: #dde34f;
  --sable: #f7efe4;
  --sable-fonce: #ecdcc6;
  --texte: #2b2118;
  --texte-doux: #6b5b4d;
  --blanc: #ffffff;

  --rayon: 14px;
  --ombre: 0 8px 24px rgba(43, 33, 24, 0.10);
  --largeur: 1180px;
  --police-titre: "Oswald", "Arial Narrow", sans-serif;
  --police-texte: "Open Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
}

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

a {
  color: var(--vert-fonce);
}

h1,
h2,
h3,
h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--terre); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.conteneur {
  width: min(100% - 2.5rem, var(--largeur));
  margin-inline: auto;
}

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.entete-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--terre);
}

.entete-logo img {
  height: 56px;
  width: auto;
}

.entete-logo span {
  white-space: nowrap;
  font-family: var(--police-titre);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--texte);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--sable);
  color: var(--vert-fonce);
}

.nav a.actif {
  color: var(--vert);
  box-shadow: inset 0 -3px 0 var(--vert);
  border-radius: 0;
}

.nav a.nav-reserver {
  background: var(--terre);
  color: var(--blanc);
  border-radius: 999px;
  padding-inline: 1rem;
  margin-left: 0.4rem;
}

.nav a.nav-reserver:hover {
  background: var(--terre-fonce);
  color: var(--blanc);
}

.bouton-menu {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.bouton-menu span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--terre);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.bouton-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bouton-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1300px) {
  .bouton-menu { display: block; }

  .nav a.nav-reserver {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: none;
  }

  .nav.ouvert { display: block; }

  .nav ul {
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav a.actif {
    box-shadow: inset 3px 0 0 var(--vert);
  }
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.bouton:hover { transform: translateY(-2px); }

.bouton-vert { background: var(--vert); color: var(--blanc); }
.bouton-vert:hover { background: var(--vert-fonce); }

.bouton-terre { background: var(--terre); color: var(--blanc); }
.bouton-terre:hover { background: var(--terre-fonce); }

.bouton-contour { border-color: currentColor; color: var(--blanc); background: transparent; }
.bouton-contour:hover { background: rgba(255, 255, 255, 0.15); }

.groupe-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Bandeau d'accueil (hero) ---------- */

.hero {
  position: relative;
  color: var(--blanc);
  background:
    linear-gradient(120deg, rgba(122, 58, 20, 0.92), rgba(163, 82, 31, 0.80) 55%, rgba(47, 158, 47, 0.75)),
    url("../images/club/courts-vue-ensemble.jpg") center / cover;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  overflow: hidden;
}

.hero .conteneur {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.hero p.accroche {
  font-size: 1.2rem;
  max-width: 34rem;
  opacity: 0.95;
}

.hero-logo {
  background: var(--blanc);
  border-radius: 50%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  max-width: 360px;
  justify-self: center;
}

/* ---------- Carrousel des actualités (accueil) ---------- */

.carrousel {
  color: var(--blanc);
  background:
    linear-gradient(120deg, rgba(122, 58, 20, 0.94), rgba(163, 82, 31, 0.84) 55%, rgba(47, 158, 47, 0.8)),
    url("../images/club/courts-vue-ensemble.jpg") center / cover;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(5rem, 9vw, 6.5rem); /* bas : place pour les chiffres */
  overflow: hidden;
}

.carrousel-cadre { position: relative; }
.carrousel-fenetre { overflow: hidden; }

.carrousel-piste {
  display: flex;
  transition: transform 0.6s ease;
}

.diapo {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 0 4.5rem;
}

.diapo-affiche {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--rayon);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.diapo-date {
  display: inline-block;
  background: var(--balle);
  color: var(--texte);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.diapo h2 {
  color: var(--blanc);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.8rem 0 1rem;
}

.diapo p {
  font-size: 1.1rem;
  max-width: 36rem;
  opacity: 0.95;
  text-align: left;
}

.carrousel-fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 0 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--blanc);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.carrousel-fleche:hover,
.carrousel-fleche:focus-visible { background: rgba(255, 255, 255, 0.38); }
.carrousel-fleche.precedent { left: 0; }
.carrousel-fleche.suivant { right: 0; }

.carrousel-points {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.carrousel-points button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.carrousel-points button[aria-current="true"] {
  width: 30px;
  background: var(--balle);
}

@media (max-width: 800px) {
  .diapo {
    grid-template-columns: 1fr;
    padding: 0 2.8rem;
    text-align: center;
  }
  .diapo-affiche { max-width: 250px; margin-inline: auto; }
  .diapo p { text-align: center; margin-inline: auto; }
  .diapo .groupe-boutons { justify-content: center; }
  .carrousel-fleche { top: 150px; width: 42px; height: 42px; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .carrousel-piste { transition: none; }
}

/* Texte lu par Google et les lecteurs d'écran, mais invisible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.surtitre {
  display: inline-block;
  background: var(--balle);
  color: var(--texte);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .hero .conteneur { grid-template-columns: 1fr; text-align: center; }
  .hero p.accroche { margin-inline: auto; text-align: center; }
  .hero .groupe-boutons { justify-content: center; }
  .hero-logo { max-width: 220px; order: -1; padding: 1.2rem; }
}

/* Bandeau des pages intérieures */
.bandeau-page {
  background: linear-gradient(120deg, var(--terre-fonce), var(--terre) 60%, var(--vert-fonce));
  color: var(--blanc);
  padding: 3.5rem 0 3rem;
}

.bandeau-page p {
  max-width: 40rem;
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
}

.fil-ariane {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}

.fil-ariane a { color: var(--blanc); }

/* ---------- Sections ---------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-sable { background: var(--sable); }

.section-titre {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}

.section-titre p { color: var(--texte-doux); }

.deux-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .deux-colonnes { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Chiffres clés ---------- */

.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.chiffre {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 4px solid var(--vert);
}

.chiffre strong {
  display: block;
  font-family: var(--police-titre);
  font-size: 2.4rem;
  color: var(--terre);
  line-height: 1;
}

.chiffre span {
  color: var(--texte-doux);
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .chiffres { grid-template-columns: repeat(2, 1fr); }
}

/* Texte justifié sur toutes les pages
   (sauf les textes volontairement centrés : intros de section, cartes du staff…) */
main p,
main li,
.pied-grille p {
  text-align: justify;
  hyphens: auto;
}
main .section-titre p,
main .personne p,
main p.centre {
  text-align: center;
}

/* Affiches et photos cliquables */
img[data-agrandir] { cursor: zoom-in; }

.carte-affiche {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  width: 100%;
  background: var(--sable-fonce);
}

.mini-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}

.mini-galerie img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- Cartes ---------- */

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.carte:hover { transform: translateY(-4px); }

.carte-corps {
  padding: 1.5rem;
  flex: 1;
}

.carte-corps p:last-child { margin-bottom: 0; }

.carte-icone {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sable);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.carte-image {
  aspect-ratio: 16 / 10;
  background: var(--sable-fonce);
  display: grid;
  place-items: center;
  color: var(--texte-doux);
  font-size: 0.9rem;
  object-fit: cover;
  width: 100%;
}

.carte-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vert);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.etiquette {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--balle);
  color: var(--texte);
  margin-bottom: 0.6rem;
}

/* ---------- Personnes (comité, staff) ---------- */

.personne {
  text-align: center;
  padding: 1.5rem 1rem;
}

.personne-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vert), var(--terre));
  color: var(--blanc);
  display: grid;
  place-items: center;
  font-family: var(--police-titre);
  font-size: 1.8rem;
  object-fit: cover;
}

.personne h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.personne p {
  color: var(--texte-doux);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Tarifs ---------- */

.tarif {
  text-align: center;
  border-top: 5px solid var(--terre);
}

.tarif.vedette {
  border-top-color: var(--vert);
  outline: 2px solid var(--vert);
}

.tarif-prix {
  font-family: var(--police-titre);
  font-size: 2.6rem;
  color: var(--terre);
  line-height: 1;
  margin: 0.5rem 0;
}

.tarif-prix small {
  font-size: 1rem;
  color: var(--texte-doux);
}

.liste-coches {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  text-align: left;
}

.liste-coches li {
  padding: 0.45rem 0 0.45rem 1.8rem;
  position: relative;
  border-bottom: 1px solid var(--sable-fonce);
}

.liste-coches li::before {
  content: "✓";
  position: absolute;
  left: 0.2rem;
  color: var(--vert);
  font-weight: 700;
}

/* ---------- Tableau ---------- */

.tableau {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
}

.tableau th,
.tableau td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sable-fonce);
}

.tableau th {
  background: var(--terre);
  color: var(--blanc);
  font-family: var(--police-titre);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tableau-defilant { overflow-x: auto; }

/* ---------- Galerie ---------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filtre {
  background: var(--sable);
  border: 0;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.filtre.actif {
  background: var(--vert);
  color: var(--blanc);
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.galerie-item {
  border-radius: var(--rayon);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sable-fonce);
  cursor: zoom-in;
  border: 0;
  padding: 0;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.galerie-item:hover img { transform: scale(1.05); }

.galerie-item.cache { display: none; }

.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 14, 10, 0.92);
  display: none;
  place-items: center;
  padding: 2rem;
}

.visionneuse.ouverte { display: grid; }

.visionneuse img {
  max-height: 85vh;
  border-radius: 8px;
}

.visionneuse button {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: 0;
  color: var(--blanc);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Formulaires ---------- */

.formulaire {
  display: grid;
  gap: 1rem;
}

.formulaire .ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .formulaire .ligne { grid-template-columns: 1fr; }
}

.formulaire label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.formulaire input,
.formulaire select,
.formulaire textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--sable-fonce);
  border-radius: 10px;
  font: inherit;
  background: var(--blanc);
}

.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus {
  outline: none;
  border-color: var(--vert);
}

.message-formulaire {
  padding: 1rem;
  border-radius: 10px;
  background: #e6f4e6;
  color: var(--vert-fonce);
  font-weight: 600;
  display: none;
}

.message-formulaire.visible { display: block; }
.message-formulaire.erreur { background: #fbe9e4; color: var(--terre); }

/* ---------- Infos contact ---------- */

.infos-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.2rem;
}

.infos-contact li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.infos-contact .carte-icone {
  flex-shrink: 0;
  margin: 0;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
}

.carte-map {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

/* ---------- Appel à l'action ---------- */

.cta {
  background: linear-gradient(120deg, var(--vert-fonce), var(--vert));
  color: var(--blanc);
  border-radius: var(--rayon);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta h2 { color: var(--blanc); margin-bottom: 0.3rem; }
.cta p { margin: 0; opacity: 0.95; }

/* ---------- Encadré / note ---------- */

.note {
  background: var(--sable);
  border-left: 4px solid var(--terre);
  padding: 1rem 1.2rem;
  border-radius: 0 10px 10px 0;
  color: var(--texte-doux);
  font-size: 0.95rem;
}

.image-arrondie {
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

/* ---------- Partenaires / sponsors ---------- */

.partenaires {
  background: var(--sable);
  border-top: 1px solid var(--sable-fonce);
  padding: 2.5rem 0;
  text-align: center;
}

.partenaires h2 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.partenaires-groupes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 4rem;
}

.partenaires-groupes > div + div {
  border-left: 2px solid var(--sable-fonce);
  padding-left: 4rem;
}

@media (max-width: 800px) {
  .partenaires-groupes > div + div {
    border-left: 0;
    padding-left: 0;
  }
}

.partenaires-liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.partenaire {
  width: 170px;
  height: 100px;
  background: var(--blanc);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(43, 33, 24, 0.06);
  display: grid;
  place-items: center;
  padding: 0.8rem;
  text-decoration: none;
  color: var(--texte-doux);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s;
}

.partenaire:hover { transform: translateY(-3px); }

.partenaire img {
  max-height: 76px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.partenaire span {
  border: 2px dashed var(--sable-fonce);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.partenaires p {
  margin: 1.5rem 0 0;
  font-weight: 600;
}

/* ---------- Pied de page ---------- */

.pied {
  background: var(--texte);
  color: #d9cbbb;
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}

.pied a {
  color: #d9cbbb;
  text-decoration: none;
}

.pied a:hover { color: var(--balle); }

.pied-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.pied h4 {
  color: var(--blanc);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.pied ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pied-logo {
  background: var(--blanc);
  border-radius: 10px;
  padding: 0.5rem;
  width: 150px;
  margin-bottom: 1rem;
}

.pied-frmt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.pied-frmt img {
  width: 48px;
  background: var(--blanc);
  border-radius: 50%;
  padding: 3px;
}

.reseaux {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.reseaux a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blanc);
  transition: transform 0.2s;
}

.reseaux svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.reseaux .reseau-facebook { background: #1877f2; }
.reseaux .reseau-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.reseaux a:hover { transform: scale(1.1); color: var(--blanc); }

.pied-bas {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 900px) {
  .pied-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .pied-grille { grid-template-columns: 1fr; }
}

/* ---------- Bouton WhatsApp flottant ---------- */

.whatsapp-flottant {
  position: fixed;
  right: 1.2rem;
  bottom: 4.5rem; /* au-dessus du badge « Powered by Netlify » */
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--blanc);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.whatsapp-flottant:hover { transform: scale(1.08); }

.whatsapp-flottant svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ---------- Apparition au défilement ---------- */

.apparait {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.apparait.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.centre { text-align: center; }
.mt-2 { margin-top: 2rem; }
