/* ============================================================
   BIOLOGIE — Biologie marine
   Style : Sophistiqué / Raffiné — Design pro
   Glassmorphism + animations fluides + cartes hover 3D
   ============================================================ */

:root {
  --ocean-900: #06203a;
  --ocean-800: #0a2a43;
  --ocean-700: #0e3a5c;
  --ocean-600: #14507d;
  --teal: #12b3c7;
  --teal-light: #46d6e6;
  --cyan: #7ce7f2;
  --sand: #f5f3ee;
  --white: #ffffff;
  --ink: #0f1c26;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: rgba(255, 255, 255, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.09);
  --glass-bg-strong: rgba(255, 255, 255, 0.14);
  --glass-blur: 16px;
  --shadow-sm: 0 4px 16px rgba(6, 32, 58, 0.08);
  --shadow-md: 0 14px 40px rgba(6, 32, 58, 0.14);
  --shadow-lg: 0 26px 70px rgba(6, 32, 58, 0.24);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --font-title: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; color: var(--ocean-900); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------------- Utilitaires de section ---------------- */
.section { padding: 72px 0; position: relative; }
.section--dark { background: var(--ocean-900); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker {
  display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); font-weight: 500; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { color: var(--gray); font-size: 16px; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.72); }

.section-head--rule::after {
  content: ''; display: block; width: 68px; height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 500;
  cursor: pointer; transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--teal), var(--ocean-600));
  color: var(--white); box-shadow: 0 12px 30px rgba(18, 179, 199, 0.34);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(18, 179, 199, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55);
  color: var(--white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-3px); }
.btn-outline { border-color: var(--ocean-700); color: var(--ocean-800); background: transparent; }
.btn-outline:hover { background: var(--ocean-800); color: var(--white); transform: translateY(-3px); }

/* ---------------- Header / Navigation transparente ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(6, 32, 58, 0.55), rgba(6, 32, 58, 0));
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(6, 32, 58, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-title); font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.brand-sub { font-size: 9.5px; letter-spacing: 3.4px; text-transform: uppercase; color: var(--cyan); }

.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.9); font-size: 13px; letter-spacing: 1.4px;
  text-transform: uppercase; position: relative; padding: 4px 0; transition: color .3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px;
  background: var(--cyan); transition: width .35s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--white); }

.nav-cta { display: none; }

.burger {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 30px; height: 22px; background: none; border: none; cursor: pointer; padding: 0; z-index: 1001;
}
.burger span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s ease, opacity .3s ease; }
.burger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(6, 32, 58, 0.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  color: var(--white); font-family: var(--font-title); font-size: 27px;
  letter-spacing: 1.5px; opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease, color .3s ease;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu.open a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .12s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .18s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .24s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .30s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 130px 20px 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 22s ease-in-out infinite alternate; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 32, 58, 0.72) 0%, rgba(6, 32, 58, 0.55) 45%, rgba(6, 32, 58, 0.9) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; width: 100%; }
.hero-kicker {
  display: inline-block; font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 22px;
}
.hero h1 {
  font-size: 42px; color: var(--white); font-weight: 600; margin-bottom: 20px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 em { font-style: italic; color: var(--cyan); }
.hero p.lead {
  color: rgba(255, 255, 255, 0.88); font-size: 17px; max-width: 640px;
  margin: 0 auto 34px; font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-stats {
  margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero-stat {
  background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 12px; backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform .4s ease, background .4s ease;
}
.hero-stat:hover { transform: translateY(-4px); background: var(--glass-bg-strong); }
.hero-stat strong { display: block; font-family: var(--font-title); font-size: 30px; color: var(--white); }
.hero-stat span { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: rgba(255, 255, 255, 0.75); display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
  animation: cueMove 2.2s ease-in-out infinite;
}
@keyframes cueMove { 0%, 100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Hero interne (pages secondaires) */
.page-hero {
  position: relative; min-height: 56vh; display: flex; align-items: flex-end;
  padding: 150px 0 60px; overflow: hidden; text-align: left;
}
.page-hero .hero-bg::after { background: linear-gradient(180deg, rgba(6, 32, 58, 0.72), rgba(6, 32, 58, 0.86)); }
.page-hero h1 { color: var(--white); font-size: 38px; margin-bottom: 12px; }
.page-hero .breadcrumb { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 620px; font-weight: 300; }

/* ---------------- Grilles & cartes ---------------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(6, 32, 58, 0.06);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* Carte service 3D */
.card-3d { perspective: 1000px; }
.card-3d .card-inner {
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
  transform-style: preserve-3d;
}
.card-3d:hover .card-inner { transform: rotateX(4deg) rotateY(-6deg) translateY(-8px); }

.card-media { position: relative; height: 220px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-media img { transform: scale(1.09); }
.card-body { padding: 24px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 23px; margin-bottom: 10px; }
.card-body p { color: var(--gray); font-size: 15px; flex: 1; }
.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(6, 32, 58, 0.7); color: var(--white); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 999px; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
}
.card-link {
  margin-top: 16px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
}
.card-link svg { width: 16px; height: 16px; transition: transform .35s ease; }
.card-link:hover svg { transform: translateX(5px); }

/* ---------------- Glassmorphism ---------------- */
.glass {
  background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
}
.glass-light {
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Bandeau glass sur image */
.glass-band { position: relative; overflow: hidden; border-radius: var(--radius); }
.glass-band img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.glass-band .glass-content {
  position: absolute; inset: auto 20px 20px 20px;
  background: rgba(6, 32, 58, 0.42); border: 1px solid var(--border); border-radius: var(--radius-sm);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 22px; color: var(--white);
}
.glass-band .glass-content h3 { color: var(--white); font-size: 24px; margin-bottom: 8px; }
.glass-band .glass-content p { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; }

/* ---------------- Split texte / image ---------------- */
.split { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.split-text h2 { font-size: 30px; margin-bottom: 16px; }
.split-text p { color: var(--gray); margin-bottom: 14px; }

.check-list { display: grid; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.section--dark .check-list li { color: rgba(255, 255, 255, 0.85); }

/* ---------------- Galerie ---------------- */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 32, 58, 0.75));
  opacity: 0; transition: opacity .4s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .gcap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; color: var(--white);
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease;
}
.gallery-item:hover .gcap { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(4, 18, 32, 0.94);
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity .35s ease; padding: 20px;
}
.lightbox.active { opacity: 1; }
.lightbox img { max-width: 94%; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; color: var(--white); font-size: 34px;
  line-height: 1; cursor: pointer; background: none; border: none; opacity: .85;
}
.lightbox-close:hover { opacity: 1; }

/* ---------------- Témoignages ---------------- */
.quote-card {
  padding: 28px 26px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px;
  transition: transform .45s ease, box-shadow .45s ease;
}
.quote-card:hover { transform: translateY(-6px); }
.quote-mark { font-family: var(--font-title); font-size: 56px; line-height: .6; color: var(--teal); opacity: .5; }
.quote-card p { font-size: 15.5px; font-style: italic; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-author .av {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--teal);
}
.quote-author .av img { width: 100%; height: 100%; object-fit: cover; }
.quote-author strong { display: block; font-size: 14px; }
.quote-author span { font-size: 12px; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; }

/* ---------------- CTA ---------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 46px 24px; text-align: center; color: var(--white);
  background: linear-gradient(125deg, var(--ocean-800), var(--ocean-600) 55%, var(--teal));
}
.cta-band::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 231, 242, 0.35), transparent 70%);
  top: -160px; right: -120px; animation: floatBlob 12s ease-in-out infinite;
}
@keyframes floatBlob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 30px); } }
.cta-band h2 { color: var(--white); font-size: 30px; margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 0 auto 26px; position: relative; font-weight: 300; }
.cta-band .btn { position: relative; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.contact-card { padding: 26px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(6,32,58,.06); }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(6, 32, 58, 0.07); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ocean-700), var(--teal)); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ico svg { width: 21px; height: 21px; }
.contact-item h4 { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: .6px; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 14.5px; color: var(--gray); }
.contact-item a:hover { color: var(--teal); }

.form-card { padding: 26px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid rgba(6,32,58,.06); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gray); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(6, 32, 58, 0.16); border-radius: var(--radius-sm);
  background: #fbfaf7; transition: border-color .3s ease, box-shadow .3s ease; font-size: 15px; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18, 179, 199, 0.16); background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(6,32,58,.08); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

.form-note { font-size: 13.5px; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; display: none; }
.form-note.ok { display: block; background: rgba(18, 179, 199, 0.12); color: #0b6b78; border: 1px solid rgba(18, 179, 199, 0.35); }
.form-note.err { display: block; background: rgba(220, 60, 60, 0.1); color: #a02020; border: 1px solid rgba(220, 60, 60, 0.3); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ocean-900); color: rgba(255, 255, 255, 0.72); padding: 56px 0 26px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.site-footer a { font-size: 14.5px; }
.site-footer a:hover { color: var(--cyan); }
.footer-links { display: grid; gap: 10px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; font-size: 12.5px;
}
.footer-bottom a { font-size: 12.5px; }

/* ---------------- Reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.d1.visible { transition-delay: .1s; }
.reveal.d2.visible { transition-delay: .2s; }
.reveal.d3.visible { transition-delay: .3s; }
.reveal.d4.visible { transition-delay: .4s; }
/* Fallback : si le JS est absent ou l'observer indisponible, on force l'apparition */
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
html:not(.js) .reveal { animation: revealFallback .9s ease .2s forwards; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px); z-index: 3000;
  background: var(--ocean-800); color: var(--white); padding: 13px 24px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #a02020; }

/* ============================================================
   RESPONSIVE — tablette
   ============================================================ */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row--full { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .section { padding: 92px 0; }
  .section-head h2 { font-size: 40px; }
  .hero h1 { font-size: 58px; }
  .hero p.lead { font-size: 18px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .split { grid-template-columns: 1fr 1fr; gap: 46px; }
  .split--reverse .split-media { order: 2; }
  .page-hero h1 { font-size: 50px; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 30px; }
  .form-card, .contact-card { padding: 34px 30px; }
  .cta-band { padding: 64px 40px; }
  .cta-band h2 { font-size: 38px; }
  .map-wrap iframe { height: 400px; }
  .glass-band .glass-content { inset: auto 28px 28px 28px; padding: 30px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 66px; }
  .section-head h2 { font-size: 44px; }
  .split-text h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; }
}

/* Ajustements très petits écrans */
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .brand-name { font-size: 21px; }
  .btn { padding: 12px 24px; font-size: 12px; }
  .section-head h2 { font-size: 28px; }
}
