@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  --bg: #f4f8fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-alt: #eef6f9;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --primary-soft: #d7f3ee;
  --secondary: #1d4ed8;
  --accent: #14b8a6;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --success: #0f9f6e;
  --danger: #c2410c;
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --max: 1180px;
  --nav-height: 82px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fbfd 0%, #f4f8fb 100%);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(238,246,249,0.82));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  color: #ecfeff;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(135deg, #082f35 0%, #0b3d46 100%);
}

.section-dark p,
.section-dark .section-intro,
.section-dark .muted,
.section-dark .meta,
.section-dark .kpi-label,
.section-dark .footer-note {
  color: rgba(236, 254, 255, 0.76);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-dark .eyebrow {
  color: #99f6e4;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-heading > div:first-child {
  max-width: 720px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

.lead {
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 680px;
}

.section-intro {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.muted {
  color: var(--muted-2);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.card-pad {
  padding: 28px;
}

.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 118, 110, 0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,118,110,0.12);
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 0.92rem;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.28);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.72);
}

.btn-secondary:hover {
  border-color: rgba(15,118,110,0.28);
  color: var(--primary-strong);
}

.btn-light {
  color: #0b3d46;
  background: white;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(244, 248, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.06rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.2);
}

.logo span small {
  display: block;
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-strong);
  background: rgba(15, 118, 110, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.75);
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.page-main {
  padding-top: 14px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.hero-panel,
.hero-side {
  min-height: 100%;
}

.hero-panel {
  padding: 34px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(20,184,166,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241,247,250,0.98) 100%);
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,0.16), transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy p {
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15,118,110,0.08);
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kpi {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.76);
}

.kpi-value {
  font-size: 1.9rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--text);
}

.kpi-label {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted-2);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.media-card {
  overflow: hidden;
  min-height: 320px;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
}

.caption-title {
  font-weight: 700;
}

.caption-note {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.icon-chip {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 1.2rem;
  font-weight: 800;
}

.quick-actions {
  margin-top: 28px;
}

.quick-action-card h3,
.service-card h3,
.team-card h3,
.commitment-card h3,
.process-card h3,
.contact-card h3,
.faq-item h3,
.timeline-card h3,
.highlight-card h3 {
  margin-bottom: 8px;
}

.quick-action-card p,
.service-card p,
.team-card p,
.commitment-card p,
.process-card p,
.contact-card p,
.faq-item p,
.timeline-card p,
.highlight-card p {
  font-size: 0.96rem;
}

.meta {
  color: var(--muted-2);
  font-size: 0.92rem;
}

.list-check,
.list-dot {
  display: grid;
  gap: 12px;
}

.list-check li,
.list-dot li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.list-check li::before,
.list-dot li::before {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.list-check li::before {
  content: '✓';
  color: var(--primary-strong);
  background: rgba(15,118,110,0.1);
}

.list-dot li::before {
  content: '';
  width: 8px;
  height: 8px;
  left: 4px;
  top: 0.55rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.page-hero {
  padding: 56px 0 24px;
}

.page-hero-card {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-aside {
  display: grid;
  gap: 16px;
}

.hero-bubble {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15,118,110,0.08), rgba(29,78,216,0.06));
  border: 1px solid rgba(15,118,110,0.1);
}

.hero-bubble strong {
  display: block;
  margin-bottom: 6px;
}

.service-card,
.quick-action-card,
.team-card,
.commitment-card,
.process-card,
.contact-card,
.highlight-card,
.timeline-card,
.faq-item,
.price-card {
  height: 100%;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.number-pill {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary-strong);
  background: rgba(15,118,110,0.1);
}

.service-tag,
.team-role,
.price-note,
.mini-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.team-photo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(15,118,110,0.12), rgba(29,78,216,0.1));
  color: var(--primary-strong);
  font-size: 1.8rem;
  font-weight: 800;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.team-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,118,110,0.08);
  color: var(--primary-strong);
  font-size: 0.84rem;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.visual-panel {
  overflow: hidden;
  min-height: 100%;
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-note {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.96);
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15,118,110,0.2), rgba(29,78,216,0.2));
}

.timeline-card {
  position: relative;
  margin-left: 54px;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 6px rgba(15,118,110,0.12);
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15,118,110,0.09);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats-band .card-pad {
  padding: 24px;
}

.stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted-2);
  font-weight: 600;
}

.price {
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-strong);
  margin-bottom: 6px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-stack {
  display: grid;
  gap: 18px;
}

.form-card form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  min-height: 132px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(15,118,110,0.36);
  box-shadow: 0 0 0 4px rgba(15,118,110,0.12);
}

.form-help {
  color: var(--muted-2);
  font-size: 0.88rem;
}

.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,118,110,0.18);
  background: rgba(15,118,110,0.08);
  color: var(--primary-strong);
  font-weight: 600;
}

.form-feedback.show {
  display: block;
}

.hours-grid {
  display: grid;
  gap: 12px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
}

.hour-row strong {
  color: var(--text);
}

.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(194, 65, 12, 0.16);
  background: rgba(255, 237, 213, 0.78);
}

.alert strong {
  color: #9a3412;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15,118,110,0.1), rgba(29,78,216,0.08));
  border: 1px solid rgba(15,118,110,0.14);
}

.site-footer {
  padding: 28px 0 42px;
}

.footer-shell {
  padding: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary-strong);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.spacer-8 { margin-top: 8px; }
.spacer-12 { margin-top: 12px; }
.spacer-16 { margin-top: 16px; }
.spacer-20 { margin-top: 20px; }
.spacer-24 { margin-top: 24px; }
.spacer-32 { margin-top: 32px; }
.spacer-40 { margin-top: 40px; }

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .page-hero-card,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: flex-start;
    min-height: 48px;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-kpis,
  .grid-3,
  .grid-2,
  .contact-layout,
  .page-hero-card,
  .form-grid,
  .cta-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero,
  .page-hero {
    padding-top: 34px;
  }

  .card-pad,
  .hero-panel,
  .page-hero-card,
  .footer-shell,
  .cta-banner {
    padding: 22px;
  }

  .grid-4,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-points,
  .team-tags {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================
   SYSTÈME DE NOTIFICATIONS (TOAST)
   ============================================ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast {
  background: var(--surface-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(120%);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.hide {
  opacity: 0;
  transform: translateX(120%);
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 2px;
  font-family: 'Manrope', sans-serif;
}

.toast-message {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.toast-close {
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.toast-close:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  width: 100%;
  transform-origin: left;
  animation: toast-progress linear forwards;
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { background: #d1fae5; color: #065f46; }
.toast-success .toast-progress { background: var(--success); }

.toast-error { border-left-color: #dc2626; }
.toast-error .toast-icon { background: #fee2e2; color: #991b1b; }
.toast-error .toast-progress { background: #dc2626; }

.toast-warning { border-left-color: #d97706; }
.toast-warning .toast-icon { background: #fef3c7; color: #92400e; }
.toast-warning .toast-progress { background: #d97706; }

.toast-info { border-left-color: var(--secondary); }
.toast-info .toast-icon { background: #dbeafe; color: #1e3a8a; }
.toast-info .toast-progress { background: var(--secondary); }

@media (max-width: 560px) {
  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}

/* ============================================
   MODAL PRISE DE RENDEZ-VOUS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--surface-strong);
  z-index: 2;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.modal-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: var(--text);
}
.modal-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.modal-close {
  background: var(--surface-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--primary-soft); color: var(--primary-strong); }

.modal-body { padding: 22px 28px 28px; }
.modal-body .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.modal-body .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.modal-body label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.modal-body input,
.modal-body select,
.modal-body textarea {
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface-alt);
  color: var(--text);
  transition: all 0.2s;
}
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-strong);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.modal-body textarea { resize: vertical; min-height: 80px; }

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 18px;
}

.modal-kicker {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Floating Action Button (FAB) */
.fab-booking {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 99px;
  padding: 14px 22px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(80px);
  opacity: 0;
}
.fab-booking.visible {
  transform: translateY(0);
  opacity: 1;
}
.fab-booking:hover {
  background: var(--primary-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.35);
}
.fab-booking-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

@media (max-width: 560px) {
  .modal-body .form-grid { grid-template-columns: 1fr; }
  .modal-header, .modal-body { padding-left: 20px; padding-right: 20px; }
  .fab-booking { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.88rem; }
  .fab-booking span:not(.fab-booking-icon) { display: none; }
}
