/*
Theme Name:   ATS-Sport
Theme URI:    https://ats-sport.com
Description:  Thème du site de présentation ATS-Sport — chronométrage, inscriptions en ligne et dossards. Enfant de Neve.
Author:       ATS-Sport
Template:     neve
Version:      1.0.0
Text Domain:  ats-sport
*/

:root {
  --ats-bleu: #1DAAE2;
  --ats-bleu-fonce: #0B5E80;
  --ats-orange: #F28C28;
  --ats-encre: #17202A;
  --ats-gris: #5B6B7A;
  --ats-bordure: #E3E9EF;
  --ats-fond: #F7F9FB;
}

/* ─── Bandeau d'accueil ─────────────────────────────────────────────── */

.ats-hero {
  background: linear-gradient(135deg, var(--ats-bleu-fonce), var(--ats-bleu));
  color: #fff;
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.ats-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
  color: #fff;
}

.ats-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .92;
  margin: 0 auto 1.75rem;
  max-width: 46rem;
}

.ats-hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.ats-btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ats-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.ats-btn-primaire { background: var(--ats-orange); color: #fff; }
.ats-btn-secondaire { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }

/* ─── Chiffres de preuve ────────────────────────────────────────────── */

.ats-preuves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.ats-preuve-nombre {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--ats-bleu-fonce);
  line-height: 1.1;
}
.ats-preuve-libelle { color: var(--ats-gris); font-size: .95rem; }

/* ─── Sections ──────────────────────────────────────────────────────── */

.ats-section { padding: 3rem 1.5rem; }
.ats-section-alt { background: var(--ats-fond); }
.ats-conteneur { max-width: 72rem; margin: 0 auto; }
.ats-section h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 .4rem;
  color: var(--ats-encre);
}
.ats-section-chapo { color: var(--ats-gris); margin: 0 0 2rem; }

/* ─── Grille des services ───────────────────────────────────────────── */

.ats-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.ats-service {
  background: #fff;
  border: 1px solid var(--ats-bordure);
  border-radius: 8px;
  padding: 1.5rem;
}
.ats-service h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--ats-bleu-fonce); }
.ats-service p { margin: 0; color: var(--ats-gris); font-size: .93rem; line-height: 1.55; }

/* ─── Deux colonnes calendrier / résultats ──────────────────────────── */

.ats-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2.5rem;
  align-items: start;
}

/* ─── Citation fondateur ────────────────────────────────────────────── */

.ats-citation {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ats-encre);
}
.ats-citation cite { display: block; margin-top: 1rem; font-size: .92rem; color: var(--ats-gris); font-style: normal; }

/* ─── Labels ────────────────────────────────────────────────────────── */

.ats-labels {
  display: flex; gap: 2rem; justify-content: center; align-items: center;
  flex-wrap: wrap; padding: 2rem 1.5rem;
}
.ats-labels img { max-height: 68px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  .ats-btn { transition: none; }
  .ats-btn:hover { transform: none; }
}

/* ─── Formulaires (devis, candidature) ──────────────────────────────── */

.ats-formulaire-page { max-width: 48rem; }

.ats-form fieldset {
  border: 1px solid var(--ats-bordure);
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin: 0 0 1.5rem;
}
.ats-form legend {
  font-weight: 700;
  color: var(--ats-bleu-fonce);
  padding: 0 .5rem;
}

.ats-champs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 1.25rem;
}
.ats-form p { margin: 0 0 1rem; }

.ats-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ats-encre);
  margin-bottom: .3rem;
}
.ats-form abbr { color: #C0392B; text-decoration: none; border: 0; }

.ats-form input[type="text"],
.ats-form input[type="email"],
.ats-form input[type="tel"],
.ats-form input[type="date"],
.ats-form input[type="number"],
.ats-form select,
.ats-form textarea {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--ats-bordure);
  border-radius: 4px;
  font: inherit;
  background: #fff;
  color: var(--ats-encre);
}
.ats-form input:focus,
.ats-form select:focus,
.ats-form textarea:focus {
  outline: 2px solid var(--ats-bleu);
  outline-offset: 1px;
  border-color: var(--ats-bleu);
}
.ats-form small { display: block; color: var(--ats-gris); font-size: .82rem; margin-top: .25rem; }

.ats-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: .5rem 1.25rem;
}
.ats-case { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin: 0; }
.ats-case input { width: auto; }

/* Le leurre anti-robot : hors écran plutôt que display:none, que certains robots détectent. */
.ats-leurre {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ats-rgpd { font-size: .85rem; color: var(--ats-gris); }

.ats-message {
  padding: .85rem 1rem;
  border-radius: 6px;
  margin: 0 0 1.5rem;
  font-weight: 600;
}
.ats-message-succes { background: #E7F6EC; color: #1E6B37; border: 1px solid #B6E2C4; }
.ats-message-erreur { background: #FDECEA; color: #A02D22; border: 1px solid #F5C3BD; }

.ats-chapo { font-size: 1.15rem; line-height: 1.6; }

/* ─── Fil d'Ariane ──────────────────────────────────────────────────── */

.pc-fil-ariane { font-size: .85rem; color: var(--ats-gris); margin-bottom: 1rem; }
.pc-fil-ariane a { color: var(--ats-bleu-fonce); }

/* ─── Étapes ────────────────────────────────────────────────────────── */

.ats-etapes {
  list-style: none;
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.ats-etapes li { counter-increment: etape; position: relative; padding-left: 3rem; }
.ats-etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0; top: 0;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--ats-bleu);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}
.ats-etapes h3 { margin: .2rem 0 .3rem; font-size: 1.05rem; color: var(--ats-bleu-fonce); }
.ats-etapes p { margin: 0; color: var(--ats-gris); font-size: .93rem; line-height: 1.55; }

/* ─── Appel à l'action final ────────────────────────────────────────── */

.ats-cta-final { text-align: center; }
/* Le bouton secondaire est conçu pour le bandeau bleu ; sur fond clair il lui faut
   ses propres couleurs, sinon le texte blanc devient illisible. */
.ats-btn-sombre {
  background: transparent;
  color: var(--ats-bleu-fonce);
  border: 1px solid var(--ats-bleu-fonce);
}
.ats-btn-sombre:hover { background: var(--ats-bleu-fonce); color: #fff; }

/* ─── Vidéos (façade, sans iframe au chargement) ────────────────────── */

.ats-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}
.ats-video { margin: 0; }

.ats-video-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  line-height: 0;
}
.ats-video-facade img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity .2s ease, transform .2s ease;
}
.ats-video-facade:hover img { opacity: .82; transform: scale(1.02); }
.ats-video-facade:focus-visible { outline: 3px solid var(--ats-bleu); outline-offset: 2px; }

.ats-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  pointer-events: none;
}

.ats-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

.ats-video figcaption {
  padding-top: .6rem;
  line-height: 1.4;
}
.ats-video-titre { display: block; font-weight: 600; color: var(--ats-encre); font-size: .95rem; }
.ats-video figcaption time { font-size: .82rem; color: var(--ats-gris); }

/* ─── Réseaux sociaux ───────────────────────────────────────────────── */

.ats-reseaux {
  background: var(--ats-encre);
  color: #fff;
  padding: 1.1rem 1.5rem;
  text-align: center;
}
.ats-reseaux span { color: #9FB0BF; margin-right: .5rem; font-size: .92rem; }
.ats-reseaux a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin: 0 .55rem;
  border-bottom: 2px solid transparent;
}
.ats-reseaux a:hover { border-bottom-color: var(--ats-bleu); }

@media (prefers-reduced-motion: reduce) {
  .ats-video-facade img { transition: none; }
  .ats-video-facade:hover img { transform: none; }
}
