/**
 * La Table des Aînés - Feuille de style principale
 * Design chaleureux, professionnel et accessible
 */

/* ================================
   VARIABLES CSS
   ================================ */
:root {
  /* Couleurs principales */
  --olive: #5e6b4f;
  --olive-light: #6b7a5a;
  --olive-dark: #4a5440;
  --cream: #f4f1ec;
  --white: #ffffff;
  --black: #1f1f1f;
  --grey: #8e8e8e;
  --grey-light: #c4c4c4;
  --accent: #d3b57a;

  /* Ombres douces */
  --shadow: 0 18px 45px rgba(31, 31, 31, 0.12);
  --shadow-soft: 0 12px 30px rgba(31, 31, 31, 0.08);
  --shadow-hover: 0 20px 40px rgba(31, 31, 31, 0.15);

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-fast: 0.2s ease;

  /* Espacements */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 40px;
  --spacing-xxl: 56px;
  --spacing-section: 80px;

  /* Border radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Tailles de police */
  --text-xs: 0.85rem;
  --text-sm: 0.9rem;
  --text-base: 0.95rem;
  --text-md: 1.05rem;
  --text-lg: 1.1rem;
  --text-xl: 1.2rem;

  /* Z-index */
  --z-header: 100;
  --z-mobile-menu: 99;
  --z-scroll-top: 90;
}

/* ================================
   RESET & BASE
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--black);
  background: radial-gradient(circle at top, #ffffff 0%, #f6f2eb 45%, #f2eee7 100%);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ================================
   LAYOUT
   ================================ */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-xl) 0;
  }
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(94, 107, 79, 0.12);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 20px 0;
  position: relative;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--olive);
  text-decoration: none;
  transition: opacity var(--transition-fast);
  z-index: calc(var(--z-header) + 1);
  white-space: nowrap;
}

.logo:hover {
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 24px;
  font-size: var(--text-base);
  color: var(--black);
  align-items: center;
}

.main-nav a {
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
  border-color: var(--olive);
  color: var(--olive);
  outline: none;
}

/* Menu mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--z-header) + 1);
  position: relative;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--olive);
  border-radius: 3px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ================================
   BUTTONS
   ================================ */
.cta {
  background: var(--olive);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  box-shadow: 0 10px 25px rgba(94, 107, 79, 0.2);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cta:hover,
.cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(94, 107, 79, 0.3);
  outline: none;
}

.cta:active {
  transform: translateY(0);
}

.secondary {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--olive);
  color: var(--olive);
  font-weight: 500;
  font-size: var(--text-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.secondary:hover,
.secondary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: rgba(94, 107, 79, 0.05);
  outline: none;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, rgba(244, 241, 236, 0.3) 0%, rgba(253, 251, 248, 0.9) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--olive);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  font-weight: 700;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--black);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.badge {
  display: inline-block;
  font-size: var(--text-xs);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(94, 107, 79, 0.12);
  color: var(--olive);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.hero-image,
.equipe-image {
  border-radius: var(--radius-xl);
  min-height: 360px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition-base);
}

.hero-image:hover,
.equipe-image:hover {
  transform: scale(1.02);
}

.hero-image {
  background-image: url('assets/Accueil.png');
}

.equipe-image {
  background-image: url('assets/Image2.jpg');
  min-height: 400px;
}

.engagements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.engagement {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  border: 1px solid rgba(94, 107, 79, 0.12);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.engagement:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(94, 107, 79, 0.25);
}

.engagement svg {
  width: 48px;
  height: 48px;
  color: var(--olive);
  flex-shrink: 0;
}

.engagement-content {
  flex: 1;
  text-align: left;
}

.engagement-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--olive);
  margin: 0 0 4px 0;
  font-weight: 600;
  line-height: 1.3;
}

.engagement-content p {
  font-size: 0.9rem;
  color: var(--grey);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* ================================
   SECTIONS COMMUNES
   ================================ */
.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--olive);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
  font-weight: 700;
}

.section-text {
  max-width: 760px;
  font-size: var(--text-md);
  color: var(--black);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   SERVICE SECTION
   ================================ */
.service {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf8 100%);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.icon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  text-align: center;
  border: 1px solid rgba(94, 107, 79, 0.12);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
}

.icon svg {
  width: 100%;
  height: 100%;
}

.icon-card p {
  font-size: var(--text-base);
  color: var(--black);
  font-weight: 500;
}

/* ================================
   FORMULES SECTION
   ================================ */
.formules {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.95));
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(94, 107, 79, 0.12);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream);
  position: relative;
  overflow: hidden;
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, #e8e5df 100%);
  color: var(--olive);
  opacity: 0.6;
}

.card-image-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-xs);
}

.card-image-placeholder span {
  font-size: var(--text-xs);
  text-align: center;
  padding: 0 var(--spacing-sm);
}

.card-image[style*="background-image"] .card-image-placeholder {
  display: none;
}

.card-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.card h3 {
  color: var(--olive);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.card-detail {
  color: var(--grey);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-xs);
}

.card-price {
  color: var(--olive);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  font-family: 'Playfair Display', serif;
}

.card-composition {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.composition-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--black);
  font-size: var(--text-sm);
  padding: var(--spacing-xs) 0;
}

.composition-item svg {
  width: 24px;
  height: 24px;
  color: var(--olive);
  flex-shrink: 0;
}

.composition-item span {
  flex: 1;
  font-weight: 500;
}

.card-description {
  color: var(--grey);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: auto;
  padding-top: var(--spacing-xs);
  border-top: 1px solid rgba(94, 107, 79, 0.1);
}

.card-content > p:last-child {
  color: var(--black);
  font-size: var(--text-base);
  line-height: 1.6;
}

.formules-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid rgba(94, 107, 79, 0.15);
}

.formule-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(94, 107, 79, 0.12);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-fast);
}

.formule-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.formule-feature svg {
  width: 32px;
  height: 32px;
  color: var(--olive);
  flex-shrink: 0;
}

.formule-feature span {
  font-size: var(--text-base);
  color: var(--black);
  font-weight: 500;
  line-height: 1.5;
}

.formules-text {
  text-align: center;
  max-width: 100%;
  margin: var(--spacing-lg) auto 0;
}

/* ================================
   ÉQUIPE SECTION
   ================================ */
.equipe {
  background: linear-gradient(180deg, #fdfbf8 0%, var(--cream) 100%);
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--spacing-xl);
  align-items: center;
}

/* ================================
   FONCTIONNEMENT SECTION
   ================================ */
.fonctionnement {
  background: linear-gradient(180deg, #ffffff 0%, #f7f3ec 100%);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.step-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(94, 107, 79, 0.12);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.step-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.step-icon {
  width: 84px;
  height: 84px;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin: var(--spacing-md) auto var(--spacing-sm);
  box-shadow: 0 8px 20px rgba(94, 107, 79, 0.25);
}

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

.step-number {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  border: 2px solid var(--olive);
}

.step-content {
  padding: 0 var(--spacing-md) var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--olive);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.step-content p {
  color: var(--black);
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 0;
}

/* ================================
   SECTION CONTACT
   ================================ */
.contact {
  background: var(--cream);
}

/* Grille des 3 cartes contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

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

.contact-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  border: 1px solid rgba(94, 107, 79, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(94, 107, 79, 0.15);
}

.contact-item-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--olive), var(--olive-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

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

.contact-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--olive);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.contact-value {
  display: block;
  color: var(--black);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.contact-value:hover {
  color: var(--olive);
}

.contact-item address {
  font-style: normal;
}

.contact-note {
  font-size: var(--text-sm);
  color: var(--grey);
  margin: 0;
}

/* Formulaire de contact */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xxl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .contact-form-wrapper {
    padding: var(--spacing-xl) var(--spacing-md);
  }
}

.contact-form-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.contact-form-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--olive);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.contact-form-header p {
  color: var(--grey);
  font-size: var(--text-base);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

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

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--olive);
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(94, 107, 79, 0.15);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: 'Inter', sans-serif;
  transition: all var(--transition-fast);
  background: var(--white);
  color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(94, 107, 79, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--olive), var(--olive-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 32px;
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(94, 107, 79, 0.25);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 107, 79, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(94, 107, 79, 0.2);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-submit:disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(94, 107, 79, 0.25);
}

.btn-submit svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
  position: relative;
  z-index: 1;
}

.btn-submit:hover:not(:disabled) svg {
  transform: translateX(4px);
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

.form-privacy-text {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: var(--text-xs);
  color: var(--grey);
  text-align: left;
  margin-top: var(--spacing-sm);
}

.form-privacy-text svg {
  width: 16px;
  height: 16px;
  color: var(--olive);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.4s ease-out;
  transition: opacity 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-alert svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  color: #155724;
}

.form-alert-success svg {
  color: #28a745;
}

.form-alert-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 2px solid #dc3545;
  color: #721c24;
}

.form-alert-error svg {
  color: #dc3545;
}

.form-alert strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: var(--text-md);
}

.form-alert p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.form-alert a,
.form-alert strong:not(:first-child) {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: var(--white);
  padding: 70px 0 var(--spacing-lg);
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.footer-tagline {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.15);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.footer-badge svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.footer-section h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-fast);
  padding-left: 4px;
  font-size: var(--text-base);
}

.footer-nav a:hover {
  color: var(--white);
  transform: translateX(6px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-contact a,
.footer-contact address {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-style: normal;
  transition: color var(--transition-fast);
  font-size: var(--text-sm);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact span {
  line-height: 1.7;
  flex: 1;
  min-width: 0;
}

.footer-hours {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: var(--text-base);
}

.footer-hours p {
  margin-bottom: 4px;
}

.footer-hours strong {
  color: var(--white);
  font-weight: 600;
}

.footer-note {
  margin-top: var(--spacing-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.4);
}

/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
#scroll-to-top {
  position: fixed;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  width: 50px;
  height: 50px;
  background: var(--olive);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-scroll-top);
  border: none;
}

#scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

#scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* ================================
   ANIMATIONS REVEAL
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal[data-animate="fade-left"] {
  transform: translateX(30px);
}

.reveal[data-animate="fade-right"] {
  transform: translateX(-30px);
}

.reveal[data-animate="slide-down"] {
  transform: translateY(-20px);
}

.reveal[data-animate="fade-up"].is-visible,
.reveal[data-animate="fade-left"].is-visible,
.reveal[data-animate="fade-right"].is-visible,
.reveal[data-animate="slide-down"].is-visible {
  transform: translate(0, 0);
}

/* ================================
   RESPONSIVE
   ================================ */

/* Tablettes */
@media (max-width: 900px) {
  :root {
    --spacing-xl: 40px;
    --spacing-lg: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(300px, 75vw);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px var(--spacing-md) var(--spacing-xl);
    gap: var(--spacing-md);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-mobile-menu);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: var(--text-md);
    padding: var(--spacing-xs) 0;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: var(--spacing-sm);
  }

  .main-nav a:hover,
  .main-nav a:focus {
    border-left-color: var(--olive);
    border-bottom-color: transparent;
  }

  .header-inner > .cta {
    display: none;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero-grid,
  .equipe-grid {
    gap: var(--spacing-lg);
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    font-size: 15px;
  }

  .container {
    width: 94%;
  }

  .section {
    padding: 50px 0;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta,
  .secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-image,
  .equipe-image {
    min-height: 280px;
  }

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

  .icon-grid,
  .cards,
  .steps,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: auto;
  }

  .contact-card-large {
    min-height: auto;
  }

  .contact-message {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  #scroll-to-top {
    width: 46px;
    height: 46px;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }
}

/* Très petits écrans */
@media (max-width: 400px) {
  .main-nav {
    width: 85vw;
  }

  .hero-image,
  .equipe-image {
    min-height: 240px;
  }
}

/* ================================
   ACCESSIBILITÉ
   ================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* Focus visible pour l'accessibilité au clavier */
:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
}

/* Améliorer la lisibilité des sélections de texte */
::selection {
  background: var(--olive);
  color: var(--white);
}

::-moz-selection {
  background: var(--olive);
  color: var(--white);
}

/* ================================
   SECTION MENU DE LA SEMAINE
   ================================ */
.menu-semaine {
  background: var(--white);
}

.menu-week-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .menu-week-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Première ligne : 2 cartes centrées (Lundi, Mardi) */
  .menu-day:nth-child(1) {
    grid-column: 2 / 4;
  }
  .menu-day:nth-child(2) {
    grid-column: 4 / 6;
  }

  /* Deuxième ligne : 3 cartes (Mercredi, Jeudi, Vendredi) */
  .menu-day:nth-child(3) {
    grid-column: 1 / 3;
  }
  .menu-day:nth-child(4) {
    grid-column: 3 / 5;
  }
  .menu-day:nth-child(5) {
    grid-column: 5 / 7;
  }

  /* Troisième ligne : 2 cartes centrées (Samedi, Dimanche) */
  .menu-day:nth-child(6) {
    grid-column: 2 / 4;
  }
  .menu-day:nth-child(7) {
    grid-column: 4 / 6;
  }
}

.menu-day {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(94, 107, 79, 0.12);
  transition: all var(--transition-base);
}

.menu-day:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.menu-day-header {
  background: var(--olive);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: center;
}

.menu-day-number {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xl);
  font-weight: 600;
}

.menu-day-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.menu-item {
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px dashed rgba(94, 107, 79, 0.2);
}

.menu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-item-main {
  background: rgba(94, 107, 79, 0.05);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 107, 79, 0.15);
}

.menu-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.menu-item p {
  margin: 0;
  color: var(--black);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.menu-note {
  margin-top: var(--spacing-xl);
  background: rgba(211, 181, 122, 0.1);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  border: 1px solid rgba(211, 181, 122, 0.3);
}

.menu-note svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.menu-note p {
  margin: 0;
  color: var(--black);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ================================
   SECTION CALCULATEUR DE PRIX
   ================================ */
.calculateur {
  background: var(--cream);
}

.calculator-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-soft);
  margin-top: var(--spacing-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

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

.calculator-field label {
  display: block;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-sm);
}

.calculator-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid rgba(94, 107, 79, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: 'Inter', sans-serif;
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-base);
}

.calculator-select:hover {
  border-color: var(--olive-light);
}

.calculator-select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(94, 107, 79, 0.1);
}

.calculator-result {
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-detail {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-label {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.result-value {
  font-weight: 600;
  font-size: var(--text-md);
}

.result-total {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-total-label {
  font-size: var(--text-lg);
  font-weight: 600;
}

.result-total-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.result-note {
  margin-top: var(--spacing-md);
  font-size: var(--text-xs);
  opacity: 0.8;
  text-align: center;
}

@media (max-width: 768px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
  }
}

/* ================================
   SECTION FAQ
   ================================ */
.faq {
  background: var(--white);
}

/* Onglets Desktop */
.faq-tabs {
  display: none; /* Masqué par défaut (mobile) */
  margin-top: var(--spacing-xl);
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xs);
  gap: var(--spacing-xs);
  overflow-x: auto;
}

.faq-tab {
  flex: 1;
  min-width: 150px;
  background: transparent;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--olive-dark);
  transition: all var(--transition-base);
}

.faq-tab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-tab:hover {
  background: rgba(94, 107, 79, 0.1);
}

.faq-tab.active {
  background: var(--olive);
  color: var(--white);
}

.faq-tab span {
  display: none; /* Masquer le texte par défaut */
}

/* Accordéons Mobile */
.faq-accordion-mobile {
  display: flex; /* Visible par défaut (mobile) */
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.faq-category-accordion {
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid rgba(94, 107, 79, 0.12);
  transition: all var(--transition-base);
}

.faq-category-accordion[open] {
  background: var(--white);
  border-color: var(--olive);
  box-shadow: var(--shadow-soft);
}

.faq-category-header {
  padding: var(--spacing-md);
  cursor: pointer;
  font-weight: 600;
  color: var(--olive-dark);
  font-size: var(--text-md);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.faq-category-header::-webkit-details-marker {
  display: none;
}

.faq-category-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--olive);
  margin-left: auto;
  transition: transform var(--transition-base);
}

.faq-category-accordion[open] .faq-category-header::after {
  content: '−';
}

.faq-category-header svg {
  width: 24px;
  height: 24px;
  color: var(--olive);
  flex-shrink: 0;
}

.faq-category-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* Panneaux Desktop */
.faq-panels {
  display: none; /* Masqué par défaut (mobile) */
  margin-top: var(--spacing-md);
}

.faq-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.faq-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Questions communes (mobile et desktop) */
.faq-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-xs);
  border: 1px solid rgba(94, 107, 79, 0.12);
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-soft);
}

.faq-item[open] {
  background: rgba(94, 107, 79, 0.05);
  border-color: var(--olive-light);
}

.faq-question {
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  font-weight: 500;
  color: var(--olive-dark);
  font-size: var(--text-sm);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--olive);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--spacing-sm);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 var(--spacing-md) var(--spacing-sm);
  color: var(--black);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Responsive Desktop */
@media (min-width: 769px) {
  .faq-tabs {
    display: flex; /* Afficher les onglets sur desktop */
  }

  .faq-tab span {
    display: inline; /* Afficher le texte sur desktop */
  }

  .faq-accordion-mobile {
    display: none; /* Masquer les accordéons sur desktop */
  }

  .faq-panels {
    display: block; /* Afficher les panneaux sur desktop */
  }

  .faq-item {
    margin-bottom: var(--spacing-sm);
  }
}

/* ================================
   SECTION CARTE DE LIVRAISON
   ================================ */
.zone-livraison {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

/* Vérificateur d'adresse - Design propre et professionnel */
.address-checker {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem auto;
  max-width: 800px;
  border: 2px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.address-checker-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.address-checker-header svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--olive);
}

.address-checker-header div {
  flex: 1;
}

.address-checker-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--olive);
}

.address-checker-header p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

.address-checker-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0;
}

.address-checker-form input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
  color: var(--black);
  transition: all 0.2s ease;
}

.address-checker-form input:focus {
  outline: none;
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(94, 107, 79, 0.1);
}

.address-checker-form input::placeholder {
  color: #999;
}

.address-checker-form .cta {
  padding: 16px 32px;
  background: var(--olive);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.address-checker-form .cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.address-checker-form .cta:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 107, 79, 0.2);
}

.address-checker-form .cta:hover svg {
  transform: scale(1.1);
}

.address-checker-form .cta:active {
  transform: translateY(0);
}

/* Résultats de recherche */
.address-result {
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  animation: slideDown 0.3s ease;
  display: none;
  border: 2px solid;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.address-result.success {
  background: #f0fdf4;
  border-color: #86efac;
}

.address-result.error {
  background: #fef2f2;
  border-color: #fca5a5;
}

.address-result.info {
  background: #fffbeb;
  border-color: #fcd34d;
}

.address-result p {
  margin: 0;
  color: var(--black);
  font-size: 1rem;
  line-height: 1.7;
}

.address-result strong {
  color: var(--olive);
  font-weight: 600;
}

/* Carte interactive */
.map-wrapper {
  position: relative;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}

.delivery-map {
  width: 100%;
  height: 550px;
  background: var(--grey-light);
  border-radius: var(--radius-xl);
}

/* Fix pour Google Maps dans un conteneur avec border-radius */
.delivery-map > div {
  border-radius: var(--radius-xl);
}

/* Style pour les InfoWindows Google Maps */
.gm-style .gm-style-iw-c {
  border-radius: var(--radius-md) !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-d {
  overflow: auto !important;
}

.gm-style .gm-style-iw-t::after {
  background: linear-gradient(45deg, white 50%, transparent 51%, transparent) !important;
}

.map-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(94, 107, 79, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-xs);
  color: var(--black);
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-marker-main {
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(94, 107, 79, 0.3);
}

.legend-marker-city {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(211, 181, 122, 0.3);
}

.legend-circle {
  width: 20px;
  height: 20px;
  border: 3px solid var(--olive);
  background: rgba(94, 107, 79, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Informations de livraison */
.zone-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.zone-info-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  border: 1px solid rgba(94, 107, 79, 0.12);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.zone-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--olive), var(--accent));
  transform: scaleY(0);
  transition: transform var(--transition-base);
  transform-origin: top;
}

.zone-info-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--olive);
}

.zone-info-item:hover::before {
  transform: scaleY(1);
}

.zone-info-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--olive), var(--olive-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(94, 107, 79, 0.2);
}

.zone-info-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.zone-info-item h4 {
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--olive-dark);
  font-size: var(--text-md);
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.zone-info-item p {
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--black);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.zone-info-item a {
  color: var(--olive);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.zone-info-item a:hover {
  color: var(--olive-dark);
  text-decoration: underline;
}

.zone-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(94, 107, 79, 0.1);
  color: var(--olive);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* Liste des communes */
.communes-section {
  margin-top: var(--spacing-xl);
}

.communes-accordion {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(94, 107, 79, 0.12);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-soft);
}

.communes-accordion[open] {
  border-color: var(--olive);
  box-shadow: var(--shadow);
}

.communes-header {
  padding: var(--spacing-lg);
  cursor: pointer;
  font-weight: 600;
  color: var(--olive-dark);
  font-size: var(--text-md);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  transition: all var(--transition-fast);
}

.communes-header:hover {
  color: var(--olive);
}

.communes-header::-webkit-details-marker {
  display: none;
}

.communes-header::after {
  content: '+';
  margin-left: auto;
  font-size: 1.8rem;
  color: var(--olive);
  transition: transform var(--transition-base);
  font-weight: 300;
}

.communes-accordion[open] .communes-header::after {
  transform: rotate(45deg);
}

.communes-header svg {
  width: 28px;
  height: 28px;
  color: var(--olive);
  flex-shrink: 0;
}

.communes-content {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  animation: fadeIn 0.3s ease;
}

.communes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.commune-group h5 {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-md);
  color: var(--olive);
  margin: 0 0 var(--spacing-sm) 0;
  font-weight: 600;
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid rgba(94, 107, 79, 0.2);
}

.commune-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.commune-group li {
  padding: var(--spacing-xs) 0;
  color: var(--black);
  font-size: var(--text-sm);
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.commune-group li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 600;
}

.communes-note {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(211, 181, 122, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(211, 181, 122, 0.3);
  font-size: var(--text-sm);
  color: var(--black);
  line-height: 1.6;
  margin: 0;
}

.communes-note svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.communes-note a {
  color: var(--olive);
  font-weight: 500;
  text-decoration: none;
}

.communes-note a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .address-checker {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
    border-radius: 12px;
  }

  .address-checker-header {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .address-checker-header svg {
    width: 40px;
    height: 40px;
  }

  .address-checker-header h3 {
    font-size: 1.4rem;
  }

  .address-checker-header p {
    font-size: 0.9rem;
  }

  .address-checker-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .address-checker-form input {
    padding: 16px 18px;
    font-size: 16px; /* Empêche le zoom automatique sur iOS */
    width: 100%;
  }

  .address-checker-form .cta {
    width: 100%;
    padding: 16px 24px;
  }

  .address-result {
    padding: 1.25rem;
  }

  .address-result p {
    font-size: 0.95rem;
  }

  .delivery-map {
    height: 400px;
  }

  .map-legend {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: var(--spacing-sm);
  }

  .legend-item {
    font-size: 0.75rem;
  }

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

  .zone-info {
    grid-template-columns: 1fr;
  }
}

/* ================================
   FORMULAIRE DE CONTACT
   ================================ */
.contact-form-section {
  margin-top: var(--spacing-xl);
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.contact-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--olive-dark);
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

.contact-form-subtitle {
  text-align: center;
  color: var(--grey);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-lg);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

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

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

.form-field label {
  font-weight: 500;
  color: var(--olive-dark);
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-sm);
}

.required {
  color: #d9534f;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid rgba(94, 107, 79, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: 'Inter', sans-serif;
  background: var(--white);
  transition: all var(--transition-base);
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(94, 107, 79, 0.1);
}

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

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--grey);
  font-size: var(--text-xs);
  margin: 0;
  flex: 1;
}

.form-privacy svg {
  width: 16px;
  height: 16px;
  color: var(--olive);
  flex-shrink: 0;
}

.form-submit {
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: var(--white);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-soft);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.form-submit svg {
  width: 20px;
  height: 20px;
}

.form-message {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.form-message-success {
  border: 2px solid #5cb85c;
  color: #3d8b3d;
}

.form-message-success svg {
  width: 32px;
  height: 32px;
  color: #5cb85c;
  flex-shrink: 0;
}

.form-message-error {
  border: 2px solid #d9534f;
  color: #a94442;
}

.form-message-error svg {
  width: 32px;
  height: 32px;
  color: #d9534f;
  flex-shrink: 0;
}

.form-message p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form-submit {
    justify-content: center;
  }

  .contact-form-section {
    padding: var(--spacing-md);
  }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
  .site-header,
  .site-footer,
  #scroll-to-top,
  .menu-toggle {
    display: none;
  }

  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  body {
    background: white;
  }
}
