/* =========================================
   ASCHD Cyclotourisme – style.css
   Mobile-first, plain CSS, no framework
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,600;0,700;0,800;1,600;1,700&display=swap');

/* --- Variables --- */
:root {
  --color-primary: #c9185b;
  --color-primary-dark: #a01249;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-light: #f5f5f5;
  --color-border: #e0e0e0;
  --font-base: 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Spectral', Georgia, serif;
  --max-width: 1100px;
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1.5rem;
  --sp-lg: 3rem;
  --sp-xl: 5rem;
  --t: 0.25s ease;
  --bottom-nav-h: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ==================
   HEADER
   ================== */

/* Mobile : header magenta */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-primary);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

/* Desktop : header blanc + barre magenta */
@media (min-width: 768px) {
  .site-header {
    background: var(--color-bg);
    border-top: 0.5rem solid var(--color-primary);
    border-bottom: 1px solid var(--color-border);
  }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .header-inner { height: 110px; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Logo mobile : blanc sur fond magenta */
.logo__img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo__text { display: flex; flex-direction: column; }
.logo__name { font-size: 0.82rem; font-weight: 700; line-height: 1.2; color: #fff; }
.logo__sub  { font-size: 0.68rem; color: rgba(255,255,255,0.75); }

/* Logo desktop : couleurs normales */
@media (min-width: 768px) {
  .logo__name { color: var(--color-text); }
  .logo__sub  { color: var(--color-text-light); }
}

/* Burger : visible sur mobile, caché sur desktop */
.burger-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .burger-btn { display: none; }
}

/* Menu déroulant mobile */
.site-nav {
  background: var(--color-bg);
  border-top: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.site-nav[hidden] { display: none; }

.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.site-nav a {
  display: block;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--t);
}

.site-nav a:last-child { border-bottom: none; }

.site-nav a:hover,
.site-nav a.is-active { color: var(--color-primary); }

/* Nav desktop (cachée sur mobile) */
.header-nav { display: none; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }

  .header-nav {
    display: flex;
    gap: 0.15rem;
  }

  .header-nav a {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--t);
  }

  .header-nav a:hover,
  .header-nav a.is-active { color: var(--color-primary); }
}

/* ==================
   BOTTOM NAV (mobile only)
   ================== */


/* ==================
   CONTAINER
   ================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ==================
   HERO (Accueil)
   ================== */

.hero {
  position: relative;
  height: auto;
  overflow: hidden;
  background: #1a1a1a;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .hero { height: 400px; }
  .hero__img { height: 100%; }
}

.hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(0,0,0,0.45);
  padding: 0.6rem var(--sp-md);
}

.hero__caption-welcome {
  color: #FFD54F;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .hero { height: 500px; }
  .hero__img { height: 100%; }
}

/* ==================
   SECTION INTRO (Accueil)
   ================== */

.intro {
  padding: var(--sp-lg) 0;
}

.intro__grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.intro__heading {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--sp-md);
}

.intro__heading em {
  font-style: normal;
  color: var(--color-primary);
}

.intro__text {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--sp-md);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--t);
}
.btn:hover { background: var(--color-primary-dark); }

.values-list {
  display: flex;
  flex-direction: column;
}

.values-list__item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.values-list__item:first-child {
  border-top: 1px solid var(--color-border);
}

.values-list__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  min-width: 2.2rem;
  line-height: 1;
}

.values-list__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .intro__heading { font-size: 2.4rem; }

  .intro__grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .intro__col-text { flex: 1.3; }

  .intro__col-values {
    flex: 1;
    padding-left: var(--sp-lg);
    border-left: 1px solid var(--color-border);
  }
}

/* ==================
   TIMELINE (Accueil)
   Mobile : vertical  |  Desktop ≥800px : horizontal
   ================== */

.timeline {
  background: var(--color-bg-light);
  padding: var(--sp-md) 0 var(--sp-lg);
  margin-top: 2rem;
}

/* ── MOBILE : pile verticale ── */
.timeline__line {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2.5rem;
}

/* Trait vertical rose */
.timeline__line::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--color-primary);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: 0 0 var(--sp-md);
  position: relative;
}

.timeline__dot {
  position: absolute;
  left: -2.5rem;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFD54F;
  border: 3px solid var(--color-bg-light);
  flex-shrink: 0;
  z-index: 1;
}

.timeline__year {
  font-size: 1.1rem;
  font-weight: 800;
  min-width: 3rem;
  flex-shrink: 0;
  padding-top: 0.05rem;
}

.timeline__card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.5;
  flex: 1;
}

.timeline__card strong {
  display: block;
  color: var(--color-text);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

/* Points cliquables */
.timeline__item[role="button"] {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* Quand un filtre est actif : estomper les autres */
.timeline__line.has-filter .timeline__item {
  opacity: 0.3;
}

.timeline__line.has-filter .timeline__item.is-active {
  opacity: 1;
}

/* Point actif : agrandi + halo */
.timeline__item.is-active .timeline__dot {
  box-shadow: 0 0 0 5px rgba(255, 213, 79, 0.4);
  transform: scale(1.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline__item.is-active .timeline__year {
  color: var(--color-primary);
}

.timeline__dot {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ── DESKTOP : horizontal comme la maquette ── */
@media (min-width: 800px) {
  .timeline__line {
    flex-direction: row;
    align-items: flex-start;
    padding-left: 0;
    gap: 0;
    justify-content: space-between;
  }

  /* Trait horizontal rose */
  .timeline__line::before {
    top: calc(var(--sp-sm) + 10px);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .timeline__item {
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: var(--sp-sm) 0.5rem var(--sp-md);
    gap: 0;
  }

  .timeline__dot {
    position: relative;
    left: auto;
    top: auto;
    border: none;
  }

  .timeline__year {
    font-size: 1rem;
    font-weight: 800;
    margin-top: 0.4rem;
    min-width: auto;
    padding-top: 0;
    text-align: center;
  }

  .timeline__card {
    margin-top: var(--sp-sm);
    text-align: center;
    flex: none;
    width: 100%;
  }
}

/* ==================
   PAGE HERO (pages intérieures)
   ================== */

.page-hero {
  padding: var(--sp-lg) 0 var(--sp-md);
}

.page-hero__title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.page-hero__title em {
  font-style: normal;
  color: var(--color-primary);
}

.page-hero__sub {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.4rem;
}

@media (min-width: 768px) {
  .page-hero__title { font-size: 2.4rem; }
}

/* ==================
   HISTOIRE – Timeline horizontale
   ================== */

.year-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: var(--sp-md) 0;
}

.year-nav__btn {
  flex-shrink: 0;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}

.year-nav__btn:hover,
.year-nav__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Entrées chronologiques */
.history-entry {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.history-entry__year {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  min-width: 110px;
  flex-shrink: 0;
}

.history-entry__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.history-entry__text {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Bureau */
.bureau-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.bureau-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
  border: 1px solid var(--color-border);
}

.bureau-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.bureau-card__name { font-weight: 700; font-size: 0.9rem; }
.bureau-card__role { font-size: 0.78rem; color: var(--color-text-light); }

@media (min-width: 600px) {
  .bureau-grid { flex-direction: row; flex-wrap: wrap; }
  .bureau-card { flex: 1 1 calc(50% - var(--sp-md)); }
}

/* ==================
   PARCOURS – Sorties
   ================== */

.sortie-hero-text {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--sp-md);
}

.sortie-hero-text em {
  font-style: normal;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .sortie-hero-text { font-size: 2.4rem; }
}

/* Grille RDV / WhatsApp / Strava */
.rdv-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

@media (min-width: 640px) {
  .rdv-grid {
    flex-direction: row;
    align-items: stretch;
    gap: var(--sp-md);
  }

  .rdv-card { flex: 1; }
}

.rdv-card {
  border: 1px solid var(--color-border);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow var(--t);
  margin-top: 2rem;
}

.rdv-card--link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Carte rose (RDV) */
.rdv-card--main {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  justify-content: center;
  gap: var(--sp-sm);
}

.rdv-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.rdv-card__time {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.rdv-card__time span {
  color: #FFD54F;
}

.rdv-card__place {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* Cartes lien (WhatsApp / Strava) */
.rdv-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
  flex-shrink: 0;
}

.rdv-card__icon svg {
  width: 26px;
  height: 26px;
}

.rdv-card__link-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.rdv-card__link-desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
}

.rdv-card__link-cta {
  display: inline-block;
  margin-top: var(--sp-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cartes sorties */
.sortie-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.sortie-card {
  display: flex;
  gap: var(--sp-md);
  border: 1px solid var(--color-border);
  padding: var(--sp-md);
  align-items: flex-start;
}

.sortie-card__date-box {
  flex-shrink: 0;
  width: 50px;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  padding: 0.4rem 0.3rem;
  line-height: 1.1;
}

.sortie-card__day   { font-size: 1.3rem; font-weight: 800; display: block; }
.sortie-card__month { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; }
.sortie-card__title { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.25rem; }

.sortie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}
.tag--easy   { border-color: #4caf50; color: #4caf50; }
.tag--medium { border-color: #ff9800; color: #ff9800; }
.tag--hard   { border-color: #f44336; color: #f44336; }

.sortie-card__desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Parcours du mardi */
.parcours-mardi {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  border: 1px solid var(--color-border);
}

.parcours-mardi__img {
  height: 220px;
  background: var(--color-bg-light);
  overflow: hidden;
  flex-shrink: 0;
}

.parcours-mardi__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parcours-mardi__info {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.parcours-mardi__date {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.3rem 0.7rem;
  align-self: flex-start;
}

.parcours-mardi__day   { font-size: 1.2rem; font-weight: 800; }
.parcours-mardi__month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

.parcours-mardi__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.parcours-mardi__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.parcours-mardi__desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.parcours-mardi__gpx {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .parcours-mardi {
    flex-direction: row;
  }

  .parcours-mardi__info {
    flex: 1;
  }

  .parcours-mardi__img {
    width: 320px;
    height: auto;
    min-height: 220px;
    flex-shrink: 0;
  }
}

/* Grille photos sorties */
.sorties-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .sorties-photos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sortie-photo {
  aspect-ratio: 1;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.sortie-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fiches parcours */
.parcours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 600px) {
  .parcours-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .parcours-grid { grid-template-columns: repeat(3, 1fr); }
}

.parcours-card { border: 1px solid var(--color-border); overflow: hidden; }

.parcours-card__img {
  height: 150px;
  background: var(--color-bg-light);
  overflow: hidden;
}

.parcours-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parcours-card__body { padding: var(--sp-sm); }

.parcours-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0.3rem 0;
}

.parcours-card__stats {
  display: flex;
  gap: var(--sp-sm);
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.parcours-card__stats span { font-weight: 700; color: var(--color-text); }

.parcours-card__download {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==================
   GALERIE
   ================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

@media (min-width: 500px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-light);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

/* Albums */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}

@media (min-width: 600px) {
  .albums-grid { grid-template-columns: repeat(3, 1fr); }
}

.album-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
}

.album-card__cover {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-light);
  overflow: hidden;
}

.album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-card:hover .album-card__cover img { transform: scale(1.05); }

.album-card__label {
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-top: 1px solid var(--color-border);
}

.album-card__count {
  font-size: 0.7rem;
  color: var(--color-text-light);
  font-weight: 400;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: var(--sp-md);
}

.lightbox.is-open { display: flex; }

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

/* ==================
   CONTACT & ADMIN
   ================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  width: 100%;
  transition: border-color var(--t);
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

@media (min-width: 600px) {
  .form-row { display: flex; gap: var(--sp-md); }
  .form-row .form-field { flex: 1; }
}

/* Documents */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--sp-md);
  border: 1px solid var(--color-border);
  gap: var(--sp-md);
}

.doc-item__name { font-size: 0.88rem; font-weight: 600; }
.doc-item__type { font-size: 0.7rem; color: var(--color-text-light); }

.doc-item__download {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  transition: all var(--t);
}

.doc-item__download:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Adhesion */
.adhesion-box {
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  padding: var(--sp-md);
}

.adhesion-box h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }

.adhesion-box p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.adhesion-box .price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  margin-top: 0.4rem;
}

/* Layout 2 colonnes contact (desktop) */
@media (min-width: 768px) {
  .contact-cols {
    display: flex;
    gap: var(--sp-xl);
    align-items: flex-start;
  }
  .contact-cols__form { flex: 1.4; }
  .contact-cols__info { flex: 1; }
}

.contact-info { display: flex; flex-direction: column; gap: var(--sp-md); }

.contact-info__item {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.6;
}

.contact-info__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-info__label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.1rem;
}

/* ==================
   SECTION GÉNÉRIQUE
   ================== */

.section {
  padding: var(--sp-lg) 0;
}

.section + .section,
.section + .contact-section,
.contact-section + .section {
  border-top: 1px solid var(--color-border);
}

.contact-section { padding: var(--sp-lg) 0; }
.contact-section + .contact-section { border-top: 1px solid var(--color-border); }

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: var(--sp-md);
}

@media (min-width: 768px) {
  .section-title { font-size: 1.8rem; }
}

.section-title em {
  font-style: normal;
  color: var(--color-primary);
}

/* ==================
   FOOTER
   ================== */

.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: var(--sp-lg) 0 var(--sp-md);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.footer-col__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--sp-sm);
}

.footer-col p, .footer-col address { font-size: 0.82rem; line-height: 1.8; }

.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col a { font-size: 0.82rem; transition: color var(--t); }
.footer-col a:hover { color: var(--color-primary); }

.footer-logo__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-bottom: var(--sp-sm);
}

.footer-logo__img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--sp-sm);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: var(--sp-md);
  font-size: 0.72rem;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-grid { flex-direction: row; flex-wrap: wrap; }
  .footer-col { flex: 1 1 180px; }
}

/* ==================
   UTILS
   ================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
