/* =========================================================
   Alexis Fouquet — Coach sportif Rennes
   Feuille de style globale

   POLICES : le site utilise exclusivement des polices système (déjà
   installées sur tous les appareils), pour un rendu fiable sur tous les
   navigateurs sans aucun téléchargement ni dépendance externe. Aucun appel
   à un CDN de polices (Google Fonts ou autre) n'est effectué, ce qui
   évite la transmission de l'adresse IP du visiteur à un tiers — un point
   de vigilance RGPD pour ce type de ressource.
   ========================================================= */

:root {
  /* Couleurs — bleu-gris */
  --ink: #1B2630;
  --steel: #3D5266;
  --steel-dark: #2C3D4D;
  --mist: #7E94A3;
  --cloud: #E7ECEF;
  --paper: #F7F9FA;
  --white: #FFFFFF;
  --accent: #A8623A;
  --accent-light: #C97B4A;
  --accent-dark: #8C4F2F;
  --success: #2F7D5E;
  --error: #B3432D;

  /* Typographie — exclusivement des polices système, présentes par défaut
     sur Windows, macOS, Linux, iOS et Android. Aucun téléchargement,
     aucune dépendance externe. */
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;

  /* Échelle d'espacement */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 5.5rem;

  /* Layout */
  --max-width: 1100px;
  --radius: 4px;
  --transition: 180ms ease;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- Focus clavier visible ----- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* ----- Conteneur ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ----- Header ----- */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo span { color: var(--accent-light); }

.main-nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}
.main-nav a {
  color: var(--cloud);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.25rem;
}

/* ----- Sections génériques ----- */
.section {
  padding: var(--space-2xl) 0;
}
.section--bento { padding: var(--space-lg) 0; }
.section--ink {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  margin: 0 var(--space-md);
}
.section--ink h2, .section--ink h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: var(--space-xs);
}
.section-head p {
  color: var(--steel);
  margin-top: var(--space-sm);
  font-size: 1.05rem;
}

/* ----- Hero ----- */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--steel-dark) 100%);
  color: var(--white);
  padding: var(--space-xl) 0 calc(var(--space-lg) + 50px);
  position: relative;
  overflow: hidden;
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
  display: block;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 640px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
}
.section--ink .eyebrow { color: var(--accent-light); }
.hero-content .eyebrow { color: var(--accent-light); }
.hero-content p.lead {
  font-size: 1.15rem;
  color: var(--cloud);
  max-width: 480px;
  margin-bottom: var(--space-md);
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ----- Boutons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  border-color: var(--cloud);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }

/* ----- Tag (étiquette de catégorie, réutilisé dans le bento) ----- */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--cloud);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
}

/* ----- Bento : grille condensée post-hero ----- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: var(--space-sm);
}
.bento-cell {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 14px;
  padding: var(--space-md);
  box-shadow: 0 14px 28px -20px rgba(27,38,48,0.16);
}
.bento-photo {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.bento-photo img { width: 100%; height: 100%; object-fit: cover; }
.bento-sap {
  grid-column: 3 / 5;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.bento-sap .eyebrow { color: var(--accent-light); }
.bento-sap h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.3rem; }
.bento-sap p { color: var(--cloud); font-size: 0.88rem; margin: 0; }
.bento-sap .sap-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.bento-reviews {
  grid-column: 3 / 5;
  display: flex;
  flex-direction: column;
}
.bento-reviews .eyebrow { margin-bottom: 0.2rem; }
.bento-reviews-widget { flex: 1; min-height: 80px; }
.bento-prestation {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-prestation h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.bento-prestation p { color: var(--steel); font-size: 0.88rem; margin: 0; }
.bento-modalites {
  grid-column: 1 / 5;
  background: var(--cloud);
  border: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.bento-modalites .modal-item h3 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.bento-modalites .modal-item p { color: var(--steel-dark); font-size: 0.88rem; margin: 0; }

/* ----- Bandeau SAP / Crédit d'impôt ----- */
.sap-banner {
  background: var(--white);
  border-radius: 18px;
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  box-shadow: 0 28px 56px -24px rgba(27,38,48,0.28);
  position: relative;
}
.sap-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 64px;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
}
.sap-banner .sap-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  font-family: var(--font-display);
}
.sap-banner h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.sap-banner p {
  color: var(--steel-dark);
  font-size: 0.95rem;
}
.sap-banner strong { color: var(--ink); }

/* ----- Avis Google ----- */
.reviews-fallback {
  text-align: center;
  color: var(--mist);
  padding: var(--space-lg);
  font-size: 0.95rem;
}

/* ----- Contact / réseaux ----- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.contact-item {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 14px;
  padding: var(--space-md);
  text-align: center;
}
.contact-item .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.icon--phone { background: var(--steel); }
.icon--email { background: var(--accent); }
.icon--instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.icon--facebook { background: #1877F2; }
.contact-item a {
  color: var(--steel);
  font-weight: 600;
  transition: color var(--transition);
  word-break: break-word;
  overflow-wrap: break-word;
}
.contact-item a:hover { color: var(--accent); text-decoration: underline; }

/* ----- RGPD bandeau discret ----- */
.rgpd-note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: var(--space-md);
  font-size: 0.9rem;
  color: var(--steel-dark);
}
.rgpd-note svg { flex-shrink: 0; color: var(--steel); }
.rgpd-note a { color: var(--steel); font-weight: 600; text-decoration: underline; }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a { color: var(--mist); transition: color var(--transition); }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ----- Formulaire ----- */
.form-card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.form-group label .required { color: var(--accent); margin-left: 0.2rem; }
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--cloud);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--steel);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.82rem; color: var(--mist); }
.field-error {
  font-size: 0.85rem;
  color: var(--error);
  display: none;
}
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--error);
}
.form-group.has-error .field-error { display: block; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.checkbox-group input { margin-top: 0.2rem; width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-group label { font-weight: 400; font-size: 0.92rem; color: var(--steel-dark); }
.checkbox-group a { color: var(--steel); text-decoration: underline; font-weight: 600; }

/* Honeypot — masqué visuellement mais accessible aux bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-weight: 600;
  display: none;
}
.form-status[data-state="success"] {
  display: block;
  background: #E5F3EC;
  color: var(--success);
  border: 1px solid var(--success);
}
.form-status[data-state="error"] {
  display: block;
  background: #FBEAE5;
  color: var(--error);
  border: 1px solid var(--error);
}

/* ----- Page légale ----- */
.legal-content h2 { margin-top: var(--space-lg); font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--steel-dark); margin-top: var(--space-sm); }
.legal-content ul { padding-left: 1.4rem; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-sm);
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--cloud);
  font-size: 0.95rem;
}
.legal-table th { color: var(--ink); width: 40%; }
.legal-table td { color: var(--steel-dark); }

/* ----- Step process (page RDV) ----- */
.steps-row {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.step-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--steel);
  font-weight: 600;
  font-size: 0.92rem;
}
.step-item .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: var(--font-display);
}
.step-item.active .num { background: var(--accent); }

/* ----- Utilitaires de mise en page (remplacent le style inline) ----- */
.container--narrow { max-width: 760px; }
.section-head--left { text-align: left; margin-bottom: var(--space-lg); }
.section-head--left p { margin-top: var(--space-sm); }
.page-title { font-size: clamp(1.9rem, 3.5vw, 2.4rem); }
.page-title--lg { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.text-center { text-align: center; }
.cta-final-heading { margin-bottom: 1rem; }
.cta-final-text {
  color: var(--cloud);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-xl { margin-bottom: var(--space-xl); }
.pb-md { padding-bottom: var(--space-md); }
.heading-sm { font-size: 1.5rem; }
.calendly-frame { min-width: 280px; height: 680px; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-photo { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16/9; }
  .bento-sap { grid-column: 1 / 3; }
  .bento-reviews { grid-column: 1 / 3; }
  .bento-modalites { grid-column: 1 / 3; grid-template-columns: 1fr; gap: var(--space-sm); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
  }
  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: var(--space-sm);
  }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .section { padding: var(--space-xl) 0; }
  .sap-banner { flex-direction: column; padding: var(--space-md); }
  .steps-row { gap: var(--space-md); }
  .bento { grid-template-columns: 1fr; }
  .bento-photo,
  .bento-sap,
  .bento-reviews,
  .bento-modalites { grid-column: 1 / 2; }
  .bento-photo { grid-row: auto; aspect-ratio: 4/3; }
  .bento-modalites { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
