/* ==========================================================================
   CHOUFLEURS - Styles partagés des pages secondaires
   Pages : qui-sommes-nous, horaires, contact
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PAGE HERO (compact, partagé)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.page-hero::before {
  width: 360px;
  height: 360px;
  background: var(--color-secondary);
  top: -120px;
  right: -80px;
}

.page-hero::after {
  width: 280px;
  height: 280px;
  background: var(--color-primary-light);
  bottom: -100px;
  left: -60px;
}

[data-theme="dark"] .page-hero::before { opacity: 0.2; }
[data-theme="dark"] .page-hero::after  { opacity: 0.18; }

.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem);
  margin-top: var(--space-sm);
}

.page-hero p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color var(--duration-fast) ease;
}

.breadcrumb a:hover { color: var(--color-primary-dark); }

.breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   2. PAGE GENERIC SECTION
   -------------------------------------------------------------------------- */
.page-section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.page-section + .page-section { padding-top: 0; }

.page-section.alt {
  background: var(--color-bg-alt);
}

/* --------------------------------------------------------------------------
   3. QUI SOMMES-NOUS
   -------------------------------------------------------------------------- */

/* Story : layout asymétrique avec image */
.story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.story:nth-of-type(even) {
  grid-template-columns: 1fr 1.05fr;
}

.story:nth-of-type(even) .story-visual {
  order: -1;
}

.story-content h2 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.story-content p + p { margin-top: var(--space-md); }

.story-content p {
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  line-height: 1.75;
}

.story-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
  animation: hero-sway-a 5s linear 1.2s infinite;
  will-change: transform;
}

/* Alterne le rythme sur le 2e story visual pour éviter un mouvement synchrone. */
.story:nth-of-type(even) .story-visual {
  animation-name: hero-sway-b;
  animation-duration: 6s;
  animation-delay: 1.4s;
}

.story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,31,46,0.15) 100%);
  pointer-events: none;
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
  will-change: transform;
  backface-visibility: hidden;
}

.story-visual:hover img { transform: scale(1.04); }

.story-tag {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

[data-theme="dark"] .story-tag {
  background: rgba(30,36,51,0.95);
  color: var(--color-secondary);
}

/* Valeurs (3 cards) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.value-card {
  position: relative;
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}

.value-card:nth-child(2)::before { background: var(--color-secondary); }
.value-card:nth-child(3)::before { background: var(--color-primary-dark); }

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.value-card:hover::before { transform: scaleX(1); }

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  transition: all var(--duration-base) var(--ease-out);
}

.value-card:nth-child(2) .value-icon { color: var(--color-secondary-dark); }
.value-card:nth-child(3) .value-icon { color: var(--color-primary-dark); }

.value-card:hover .value-icon {
  transform: rotate(-8deg) scale(1.08);
}

.value-icon svg {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. HORAIRES
   -------------------------------------------------------------------------- */

/* Statut en temps réel - hero */
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.status-banner .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94A3B8;
  position: relative;
}

.status-banner.is-open .status-dot {
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: pulse-dot 2.4s var(--ease-out) infinite;
}

.status-banner.is-closed .status-dot {
  background: #EF4444;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Grille horaires : 2 boutiques côte à côte */
.horaires-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.horaires-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.horaires-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.horaires-card-header {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.horaires-card:nth-child(2) .horaires-card-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-text);
}

/* En mode clair, la card Gournay des distributeurs (2e dans la grid des
   distributeurs) reproduit l'aspect "doré" qu'elle a en mode sombre :
   header doré + bouton itinéraire doré. */
:root:not([data-theme="dark"]) .horaires-grid-three .horaires-card:nth-child(2) .horaires-card-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
}

:root:not([data-theme="dark"]) .horaires-grid-three .horaires-card:nth-child(2) .btn-primary {
  background: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(212, 145, 0, 0.3);
}

:root:not([data-theme="dark"]) .horaires-grid-three .horaires-card:nth-child(2) .btn-primary:hover {
  background: var(--color-secondary-dark);
  box-shadow: 0 8px 24px rgba(212, 145, 0, 0.4);
}

.horaires-card-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}


.horaires-card-header h3 {
  font-size: var(--fs-2xl);
  color: inherit;
  position: relative;
  z-index: 1;
}

/* Badge statut "Ouvert / Fermé" dans le header de chaque card boutique.
   Fond toujours blanc → texte forcé en sombre (indépendant du thème). */
.horaires-card-status {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  color: #1A1F2E;  /* fixe en mode clair ET sombre */
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .horaires-card-status {
  color: #1A1F2E;  /* override explicite pour neutraliser un override hérité */
}

.horaires-card-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
  flex-shrink: 0;
}

.horaires-card-status.is-open .status-dot {
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: pulse-dot 2.4s var(--ease-out) infinite;
}

.horaires-card-status.is-closed .status-dot {
  background: #EF4444;
}

.horaires-card-header .address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  opacity: 0.92;
  position: relative;
  z-index: 1;
}

.horaires-card-header .address svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.horaires-list {
  list-style: none;
  padding: var(--space-md) var(--space-lg);
}

.horaires-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px dashed var(--color-border);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  transition: all var(--duration-fast) ease;
}

.horaires-list li:last-child { border-bottom: none; }

.horaires-list li.today {
  background: linear-gradient(90deg, rgba(212, 145, 0,0.08) 0%, transparent 100%);
  margin: 0 calc(var(--space-lg) * -1);
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  border-left: 3px solid var(--color-secondary);
  border-bottom-color: transparent;
  font-weight: 700;
}

.horaires-list .day {
  color: var(--color-text);
  font-weight: 500;
}

.horaires-list li.today .day { color: var(--color-secondary-dark); }

.horaires-list .time {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.horaires-list li.today .time { color: var(--color-text); font-weight: 700; }

/* ============================================================
   Variant : liste horaires avec photo de bouquet en arrière-plan.
   La photo est fournie via inline style --card-photo pour swap facile.
   Overlay sombre pour garder les jours/heures blancs lisibles.
   Déclaré APRÈS les règles de base pour battre la cascade
   à spécificité égale (les règles postérieures gagnent).
   ============================================================ */
.horaires-list--photo {
  background:
    linear-gradient(135deg, rgba(15, 20, 30, 0.78) 0%, rgba(30, 40, 55, 0.62) 100%),
    var(--card-photo);
  background-size: cover;
  background-position: center;
}

.horaires-list--photo li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.horaires-list--photo .day {
  color: rgba(255, 255, 255, 0.94);
}

.horaires-list--photo .time {
  color: rgba(255, 255, 255, 0.74);
}

/* Highlight du jour courant : gold plus opaque pour ressortir sur la photo */
.horaires-list--photo li.today {
  background: linear-gradient(90deg, rgba(212, 145, 0, 0.28) 0%, transparent 100%);
  border-left-color: var(--color-secondary-light);
}

.horaires-list--photo li.today .day {
  color: var(--color-secondary-light);
}

.horaires-list--photo li.today .time {
  color: rgba(255, 255, 255, 0.98);
}

.horaires-card-footer {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-alt);
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.horaires-card-footer .btn {
  flex: 1;
  min-width: 120px;
  padding: 0.625rem 1rem;
  font-size: var(--fs-xs);
}

/* Bandeau Lock'heure 24h/24 */
.lockheure-banner {
  position: relative;
  background: linear-gradient(135deg, #1A1F2E 0%, #2D3748 100%);
  background-size: cover;
  background-position: center;
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  overflow: hidden;
}

.lockheure-banner::before {
  content: '24';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 18rem;
  font-weight: 700;
  color: rgba(212, 145, 0,0.08);
  line-height: 1;
  pointer-events: none;
}

.lockheure-banner-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--color-secondary);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.lockheure-banner-icon svg { width: 40px; height: 40px; }

.lockheure-banner-content { flex: 1; position: relative; z-index: 1; }

.lockheure-banner h3 {
  color: white;
  font-size: var(--fs-2xl);
  margin-bottom: 0.5rem;
}

.lockheure-banner h3 .accent { color: var(--color-secondary); font-style: italic; }

.lockheure-banner p {
  color: rgba(255,255,255,0.78);
  font-size: var(--fs-base);
  max-width: 520px;
}

.lockheure-banner .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Modifier : banner avec photo en arrière-plan (overlay sombre pour lisibilité) */
.lockheure-banner--photo {
  background:
    linear-gradient(115deg, rgba(15, 20, 30, 0.86) 0%, rgba(30, 40, 55, 0.62) 65%, rgba(30, 40, 55, 0.72) 100%),
    url('../assets/images/distributeur-lockheure-courtry-choufleurs.jpg');
  background-size: cover;
  background-position: center;
}

/* Banner "boutique fermée" recadré : largeur serrée + centré horizontalement.
   On force la section parente à avoir des paddings symétriques (annule le
   padding-top: 0 hérité de .page-section + .page-section), pour que le fond
   gris bg-alt entoure le banner également au-dessus et en-dessous. */
.lockheure-banner {
  max-width: 1080px;
  margin: 0 auto;
}

.page-section.alt:has(.lockheure-banner) {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* Grille des 3 distributeurs (horaires.html) — 3 colonnes égales, mêmes
   proportions entre elles. Sur tablette, on passe à 1 colonne pour rester
   lisible (plutôt que 2+1 décalé). */
.horaires-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

/* On force les 3 cards distributeurs à avoir des proportions internes
   identiques même si le nom (Courtry est court) tient sur 1 ligne. */
.horaires-grid-three .horaires-card {
  display: flex;
  flex-direction: column;
}

.horaires-grid-three .horaires-card-header {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.horaires-grid-three .horaires-card-header h3 {
  min-height: 2.4em;   /* réserve 2 lignes pour aligner avec Perreux qui wrappe */
}

.horaires-grid-three .horaires-list {
  flex: 1;
}

/* Les 3 cards distributeurs partagent le header gris primary (pas d'alternance dorée).
   On scope par .horaires-grid-three pour passer outre la règle nth-child(2). */
.horaires-grid-three .horaires-card .horaires-card-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

/* Statut "Ouvert 24h/24" reste vert sur les cards distributeurs */
.horaires-grid-three .horaires-card-status.is-open .status-text {
  color: inherit;
}

@media (max-width: 1024px) {
  .horaires-grid-three {
    grid-template-columns: 1fr;
  }
}

/* Note exceptions / fériés */
.exception-note {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.exception-note svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  /* Le formulaire est centré verticalement par rapport à la sidebar
     (qui contient les 3 cards Perreux + Gournay + Plus rapide). */
  align-items: center;
}

/* Sur desktop (>= 900px), on remonte le formulaire + la sidebar pour les
   rapprocher du hero "On vous écoute". Réduction du padding-top de la
   section contact + réduction du padding-bottom du hero. Mobile inchangé
   (les sections empilées ont besoin de leur air pour lecture). */
@media (min-width: 900px) {
  .page-contact .page-hero {
    padding-bottom: var(--space-md);
  }
  .page-contact .page-section:has(.contact-grid) {
    padding-top: var(--space-lg);
  }
  .page-contact .contact-grid {
    align-items: flex-start;
  }
}

/* Banner réseaux sociaux en bas de la page contact : on annule le
   padding-top: 0 hérité de .page-section + .page-section pour que la
   section ait des paddings symétriques et que le banner respire. */
.page-section.alt:has(.socials-banner) {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.socials-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.socials-banner:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 18px 40px rgba(212, 145, 0, 0.18);
}

.socials-banner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
}

.socials-banner-text h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin: 0.4rem 0 0.6rem;
}

.socials-banner-text p {
  color: var(--color-text-muted);
  margin: 0;
}

.socials-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .socials-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Formulaire */
.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
}

.contact-form:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Variant : formulaire avec photo en arrière-plan (overlay sombre + textes blancs).
   Photo fournie via inline style --card-photo. */
.contact-form--photo {
  background:
    linear-gradient(135deg, rgba(15, 20, 30, 0.86) 0%, rgba(30, 40, 55, 0.74) 100%),
    var(--card-photo);
  background-size: cover;
  background-position: center;
  border-color: rgba(255, 255, 255, 0.08);
}

.contact-form--photo .eyebrow {
  color: var(--color-secondary-light);
}

.contact-form--photo h2 {
  color: #FFFFFF;
}

.contact-form--photo .form-intro {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form--photo .form-field label {
  color: rgba(255, 255, 255, 0.94);
}

.contact-form--photo .form-field label .required {
  color: var(--color-secondary-light);
}

.contact-form--photo .form-field .helper {
  color: rgba(255, 255, 255, 0.62);
}

.contact-form--photo .form-check label {
  color: rgba(255, 255, 255, 0.82);
}

/* Astérisque obligatoire en intro (dans le paragraphe) reste doré pour lisibilité */
.contact-form--photo .form-intro span[style*="color"] {
  color: var(--color-secondary-light) !important;
}

.contact-form h2 {
  margin-bottom: 0.5rem;
}

.contact-form .form-intro {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-field {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-field label .required {
  color: var(--color-primary);
  margin-left: 2px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  min-height: 48px;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: var(--color-text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(61, 66, 66,0.12);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #EF4444;
}

.form-field .helper {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 0.375rem;
}

/* Checkbox custom (RGPD) */
.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.form-check input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-bg);
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast) ease;
}

.form-check input[type="checkbox"]:hover { border-color: var(--color-primary); }

.form-check input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.form-check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 66, 66,0.25);
}

.form-check label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: var(--fs-base);
  margin-top: var(--space-sm);
}

.form-success {
  display: none;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
  color: white;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: var(--space-md);
  align-items: center;
  gap: 0.75rem;
}

.form-success.show { display: flex; }

.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

.form-error {
  display: none;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, #c0392b 0%, #96271b 100%);
  color: white;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: var(--space-md);
  align-items: center;
  gap: 0.75rem;
}

.form-error.show { display: flex; }

.form-error svg { width: 22px; height: 22px; flex-shrink: 0; }

.form-submit.is-sending { opacity: 0.65; pointer-events: none; }

/* Sidebar contact - infos boutiques */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--color-primary);
}

.contact-info-card:nth-child(2)::before { background: var(--color-secondary); }

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.contact-info-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-list a {
  color: inherit;
  font-weight: 600;
  transition: color var(--duration-fast) ease;
}

.contact-info-list a:hover { color: var(--color-primary); }

/* Quick contact buttons */
.contact-quick {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
}

.contact-quick:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .contact-quick {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-alt) 100%);
}

.contact-quick h4 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
}

.contact-quick p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.contact-quick .btn { width: 100%; margin-bottom: 0.5rem; }
.contact-quick .btn:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   6. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .story,
  .story:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .story:nth-of-type(even) .story-visual { order: 0; }

  .story-visual { aspect-ratio: 16 / 10; }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .horaires-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .lockheure-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
  }

  .lockheure-banner::before { font-size: 14rem; right: -40px; }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: calc(var(--header-height) + var(--space-md));
    padding-bottom: var(--space-lg);
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .form-row .form-field { margin-bottom: var(--space-md); }

  .contact-form {
    padding: var(--space-lg) var(--space-md);
  }

  .horaires-card-footer .btn {
    flex: 1 1 100%;
  }

  .lockheure-banner::before { display: none; }
}

/* ==========================================================================
   EMPLACEMENTS PHOTOS — banners hero / contact info / etc.
   (Photos Unsplash temporaires, à remplacer par tes vraies photos)
   ========================================================================== */

/* Banner photo sous le hero d'une page (utilisé sur Horaires) */
.page-hero-banner {
  margin: var(--space-xl) auto 0;
  max-width: 980px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 2;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  animation: hero-sway-a 5s linear 1.2s infinite;
  will-change: transform;
}

.page-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.page-hero-banner:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .page-hero-banner { aspect-ratio: 4 / 2.4; }
}

/* Photo de la boutique en haut de chaque card contact-info */
.contact-info-photo {
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-md);
  aspect-ratio: 16 / 8;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.contact-info-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
