/* Club Photo MJC Gaillac - feuille de style unique */

:root {
  --rose: #c9327e;
  --rose-fonce: #a32063;
  --rose-pale: #fbeef4;
  --petrole: #1b4a5a;
  --petrole-clair: #2e6c80;
  --encre: #16181c;
  --gris: #545b63;
  --fond: #ffffff;
  --fond-2: #f6f4f2;
  --bord: #e2ddd8;
  --rayon: 4px;
  --large: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }

a { color: var(--rose-fonce); }
a:hover { color: var(--petrole); }

:focus-visible {
  outline: 3px solid var(--petrole-clair);
  outline-offset: 3px;
  border-radius: 2px;
}

.contenu { max-width: var(--large); margin: 0 auto; padding: 0 20px; }

.saut-contenu {
  position: absolute; left: -9999px; top: 0;
  background: var(--petrole); color: #fff; padding: 12px 18px; z-index: 100;
}
.saut-contenu:focus { left: 8px; top: 8px; }

/* ---------- en-tete ---------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--bord);
  backdrop-filter: saturate(140%) blur(6px);
}
.entete .contenu {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px; padding-top: 8px; padding-bottom: 8px;
}
.logo img { width: 104px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--encre); text-decoration: none;
  padding: 12px 12px; border-radius: var(--rayon);
  font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--fond-2); color: var(--rose-fonce); }

@media (max-width: 780px) {
  .entete .contenu { flex-wrap: wrap; gap: 0 12px; min-height: 0; }
  .logo img { width: 84px; }
  .nav {
    order: 3; width: 100%; margin-left: 0;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--bord); padding: 2px 0;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 10px; font-size: .9rem; white-space: nowrap; }
  .nav .nav-secondaire { display: none; }
  html { scroll-padding-top: 132px; }
}

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--rayon); border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bouton-1 { background: var(--rose-fonce); color: #fff; }
.bouton-1:hover { background: var(--petrole); color: #fff; }
.bouton-2 { border-color: var(--petrole); color: var(--petrole); background: transparent; }
.bouton-2:hover { background: var(--petrole); color: #fff; }
.bouton-3 { border-color: var(--bord); color: var(--encre); background: #fff; }
.bouton-3:hover { border-color: var(--petrole); color: var(--petrole); }
.bouton-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.bouton-fb:hover { background: #0e5fce; border-color: #0e5fce; color: #fff; }

/* ---------- bandeau ---------- */

.bandeau { background: #fff; border-bottom: 1px solid var(--bord); overflow: hidden; }
.bandeau img { width: 100%; height: auto; max-height: 300px; object-fit: contain; object-position: center; }
@media (max-width: 620px) { .bandeau img { max-height: none; } }

/* ---------- accroche ---------- */

.accroche { padding: 56px 0 48px; }
.accroche .colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.photo-accroche { align-self: center; }
.accroche p.chapo { font-size: 1.16rem; color: var(--gris); max-width: 40em; }
.surtitre {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--rose-fonce); margin-bottom: 10px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* bandeau des infos pratiques, en bas de page juste avant le pied */
.infos-bas { background: var(--fond-2); border-top: 1px solid var(--bord); padding: 34px 0; }
.infos-grille { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.infos-grille > div { padding-left: 14px; border-left: 2px solid var(--rose); }
.infos-grille dt {
  text-transform: uppercase; letter-spacing: .1em; font-size: .72rem;
  font-weight: 700; color: var(--gris); margin-bottom: 5px;
}
.infos-grille dd { margin: 0; font-weight: 600; font-size: .94rem; line-height: 1.45; }
@media (max-width: 980px) { .infos-grille { grid-template-columns: repeat(2, 1fr); gap: 22px 26px; } }
@media (max-width: 520px) { .infos-grille { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .accroche .colonnes { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- sections ---------- */

.section { padding: 56px 0; border-top: 1px solid var(--bord); }
.section.creme { background: var(--fond-2); }
.section > .contenu > p { max-width: 42em; }

.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.chiffres li { border-left: 3px solid var(--rose); padding-left: 16px; }
.chiffres b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.chiffres span { color: var(--gris); font-size: .95rem; }
@media (max-width: 700px) { .chiffres { grid-template-columns: 1fr; gap: 14px; } }

/* deroule d'un atelier */
.etapes { list-style: none; counter-reset: e; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.etapes li { counter-increment: e; }
.etapes li::before {
  content: counter(e);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 12px;
  border-radius: 50%; background: var(--rose-fonce); color: #fff;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
}
.etapes h3 { margin-bottom: .25em; }
.etapes p { color: var(--gris); font-size: .97rem; margin: 0; }
@media (max-width: 760px) { .etapes { grid-template-columns: 1fr; gap: 18px; } }

/* bande photos ateliers */
.bande { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; }
.bande img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--rayon); }
@media (max-width: 760px) { .bande { grid-template-columns: repeat(2,1fr); } }

/* ---------- galerie ---------- */

.galerie { columns: 4 260px; column-gap: 12px; margin-top: 30px; }
.galerie figure { margin: 0 0 12px; break-inside: avoid; }
.galerie button {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%;
  border-radius: var(--rayon); overflow: hidden; position: relative;
}
.galerie img { width: 100%; display: block; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.galerie button:hover img, .galerie button:focus-visible img { transform: scale(1.08); }

/* survol : lavis de couleur (degrade rose/petrole) revele en cercle depuis le coin,
   plus un badge d'agrandissement -- pas de simple fondu d'opacite */
.galerie button::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--rose) 0%, var(--petrole) 100%);
  mix-blend-mode: multiply; opacity: .5;
  clip-path: circle(0% at 100% 100%);
  transition: clip-path .5s cubic-bezier(.22,1,.36,1);
}
.galerie button:hover::after, .galerie button:focus-visible::after { clip-path: circle(150% at 100% 100%); }
.galerie button::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; z-index: 1;
  pointer-events: none; border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center/52% 2px no-repeat,
    linear-gradient(#fff, #fff) center/2px 52% no-repeat,
    rgba(22, 24, 28, .55);
  transform: scale(0) rotate(-30deg);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.galerie button:hover::before, .galerie button:focus-visible::before { transform: scale(1) rotate(0deg); }

.galerie[data-repli] figure:nth-child(n+25) { display: none; }

/* reveal au defilement : glissement + leger agrandissement, sans fondu d'opacite */
.galerie figure.a-reveler { transform: translateY(30px) scale(.94); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.galerie figure.a-reveler.visible { transform: translateY(0) scale(1); }

.plus { text-align: center; margin-top: 24px; }

/* visionneuse */
.visionneuse {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12,12,14,.94);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.visionneuse[open] { display: flex; }
.visionneuse img { max-width: min(1400px, 94vw); max-height: 84vh; width: auto; border-radius: 2px; }
.visionneuse figcaption { color: #e9e6e2; text-align: center; margin-top: 14px; font-size: .95rem; }
.visionneuse .fermer, .visionneuse .prec, .visionneuse .suiv {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--rayon);
  width: 52px; height: 52px; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.visionneuse .fermer { top: 16px; right: 16px; }
.visionneuse .prec { left: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse button:hover { background: rgba(255,255,255,.25); }

/* ---------- encadrants ---------- */

.equipe {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.equipe-suite { margin-top: 20px; }
.equipe li {
  background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 26px 22px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  flex: 1 1 240px; max-width: 300px;
}
.objectif {
  display: inline-flex; align-items: center; justify-content: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--petrole); padding: 6px; margin-bottom: 18px;
  box-shadow: 0 0 0 2px var(--rose), 0 0 0 5px #fff, 0 0 0 6px var(--bord);
}
.objectif img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: center top; display: block;
}
.equipe b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.equipe .role { color: var(--rose-fonce); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 2px; }
.equipe p { margin: .5em 0 0; color: var(--gris); font-size: .96rem; }
@media (max-width: 560px) { .equipe li { flex-basis: 100%; max-width: 360px; } }

/* ---------- tarifs ---------- */

.tarifs { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 28px; }
.tarif { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px 24px; background: #fff; }
.tarif.vedette { border-color: var(--rose); border-width: 2px; }
.tarif .prix { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; }
.tarif .prix small { font-size: .95rem; font-family: var(--sans); color: var(--gris); font-weight: 400; }
.tarif ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--gris); font-size: .96rem; }
@media (max-width: 700px) { .tarifs { grid-template-columns: 1fr; } }

/* ---------- formulaire ---------- */

.contact-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; gap: 28px; } }

form.contact { margin-top: 6px; }
.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 5px; }
.champ .aide { font-weight: 400; color: var(--gris); font-size: .88rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--petrole-clair); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; gap: 0; } }
.pot { position: absolute; left: -9999px; }
.message-envoi { margin-top: 14px; padding: 14px 16px; border-radius: var(--rayon); display: none; }
.message-envoi.ok { display: block; background: #e7f3ec; border: 1px solid #b6d8c4; color: #17563a; }
.message-envoi.ko { display: block; background: var(--rose-pale); border: 1px solid #eabcd4; color: var(--rose-fonce); }

.encadre { background: var(--fond-2); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; }
.encadre h3 { margin-top: 0; }
.encadre .bouton { width: 100%; margin-bottom: 10px; }

/* ---------- pied ---------- */

.pied { background: var(--petrole); color: #dfe8ec; padding: 40px 0 28px; font-size: .93rem; }
.pied a { color: #fff; }
.pied .colonnes { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.pied h3 { color: #fff; font-size: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 6px; }
.pied .bas { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 760px) { .pied .colonnes { grid-template-columns: 1fr; gap: 18px; } }

.credit-photos { color: var(--gris); font-size: .9rem; margin-top: 18px; }
.horodatage { color: rgba(223,232,236,.55); font-size: .68rem; }

/* page mentions legales */
.page-texte { max-width: 44em; padding: 48px 20px 60px; margin: 0 auto; }
.page-texte h2 { margin-top: 1.6em; }

/* complements */
.apres-etapes { margin-top: 28px; }
.apres-tarifs { margin-top: 28px; }
.mention-rgpd { color: var(--gris); font-size: .87rem; margin-top: 14px; }
.encadre .note { font-size: .95rem; color: var(--gris); margin-top: 16px; }
.encadre .titre-lieu { margin-top: 26px; }
.v-figure { margin: 0; text-align: center; }

/* cibles tactiles des liens isoles */
.pied li a { display: inline-block; padding: 11px 0; }
.encadre .note a { display: inline-block; padding: 8px 0; }


/* ---------- images d'illustration ---------- */
.texte-image { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; margin-bottom: 8px; }
.texte-image img { width: 100%; border-radius: var(--rayon); display: block; }
.texte-image p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .texte-image { grid-template-columns: 1fr; gap: 22px; } }

/* photo miniature a cote d'un texte, section "hors des mardis soir" */
.texte-vignette { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.texte-vignette p:last-child { margin-bottom: 0; }
.texte-vignette .vignette-agrandir { width: 100%; }
.texte-vignette .vignette-expo img { aspect-ratio: 3/2; }
@media (max-width: 760px) { .texte-vignette { grid-template-columns: 1fr; gap: 22px; } }

/* bouton image cliquable (ouvre la visionneuse) */
.vignette-agrandir {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--rayon); overflow: hidden;
}
.vignette-agrandir img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--rayon); display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.vignette-agrandir:hover img, .vignette-agrandir:focus-visible img { transform: scale(1.05); }

.compte { font-weight: 400; color: var(--gris); }

/* liens d'adresse */
.encadre .note a, .pied p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.infos-grille a { color: inherit; text-decoration: none; }
.infos-grille a:hover { text-decoration: underline; text-underline-offset: 3px; }
.infos-grille a:hover, .encadre .note a:hover, .pied p a:hover { color: var(--rose-fonce); }
.pied p a:hover { color: #fff; }

/* ---------- mentions legales ---------- */
.liste-legale { margin: 0 0 1.2em; padding-left: 1.2em; }
.liste-legale li { margin-bottom: .25em; }
