/* =========================================================
   CONVOYEURS MAROC — style.css
   Site 100% statique HTML5 / CSS3 / JS vanilla — sans framework
   ========================================================= */

/* ---------------------------------------------------------
   1. RESET
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@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;
    scroll-behavior: auto !important;
  }
}

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

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

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select {
  font: inherit;
}

/* ---------------------------------------------------------
   2. VARIABLES
   --------------------------------------------------------- */
:root {
  /* Couleurs de marque (issues du logo Convoyeurs Maroc) */
  --primary: #0f2a52;        /* bleu marine principal */
  --primary-dark: #0a1d3a;   /* bleu marine foncé (header scroll, footer) */
  --primary-light: #1f5fa8;  /* bleu accent (dégradé logo) */
  --secondary: #64748b;      /* gris "MAROC" du logo */
  --secondary-light: #94a3b8;
  --accent: #f39c12;         /* orange industriel — CTA / conversion */
  --accent-dark: #d97e06;

  --text: #1c2530;
  --text-light: #55606c;
  --light: #f4f6f9;
  --light-2: #eaeef3;
  --white: #ffffff;
  --border: #dde3ea;

  --success: #1e8e3e;
  --danger: #c0392b;

  --font-main: 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 16px rgba(15, 42, 82, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 42, 82, 0.14);
  --container-w: 1200px;

  --header-h: 84px;
}

/* ---------------------------------------------------------
   3. TYPOGRAPHIE
   --------------------------------------------------------- */
body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
  color: var(--text-light);
}

.section-tag {
  display: inline-block;
  color: var(--accent-dark);
  background: rgba(243, 156, 18, 0.12);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 14px;
}

.section-intro {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-header {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 760px;
}

/* ---------------------------------------------------------
   4. LAYOUT / UTILITAIRES
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.bg-light {
  background: var(--light);
}

.bg-dark {
  background: var(--primary);
  color: var(--white);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark p {
  color: var(--white);
}

.bg-dark .section-intro,
.bg-dark p:not(.text-strong) {
  color: rgba(255, 255, 255, 0.82);
}

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

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

.text-center { text-align: center; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 10px 18px;
  z-index: 9999;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

/* ---------------------------------------------------------
   5. BOUTONS / CTA
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(243, 156, 18, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1ebe5b;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 900;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

/* ---------------------------------------------------------
   6. HEADER / NAVIGATION
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(15, 42, 82, 0.08);
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a.nav-link {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.96rem;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link:focus-visible {
  color: var(--primary);
  background: var(--light);
}

.main-nav .has-dropdown {
  position: relative;
}

.main-nav .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav .dropdown-toggle .chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.main-nav .has-dropdown.open .chevron,
.main-nav .has-dropdown:hover .chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.main-nav .has-dropdown:hover .dropdown-menu,
.main-nav .has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.header-phone svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 26px;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------------------------------------------------------
   7. HERO
   --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: var(--white);
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 10px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-trust-item svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(15, 42, 82, 0.9);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

/* ---------------------------------------------------------
   8. CARDS (produits, avantages, process)
   --------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: rgba(15, 42, 82, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  flex-grow: 1;
  margin-bottom: 18px;
}

.card-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link .arrow {
  transition: transform 0.2s ease;
}

.card-link:hover .arrow {
  transform: translateX(4px);
}

/* Cartes produits (avec photo) */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.product-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-2);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.product-card-body p {
  font-size: 0.94rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* ---------------------------------------------------------
   9. FORMULAIRES
   --------------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(31, 95, 168, 0.12);
  outline: none;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 14px;
}

.form-msg {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
  display: none;
}

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

.form-msg.success {
  background: rgba(30, 142, 62, 0.1);
  color: var(--success);
  border: 1px solid rgba(30, 142, 62, 0.3);
}

.form-msg.error {
  background: rgba(192, 57, 43, 0.1);
  color: var(--danger);
  border: 1px solid rgba(192, 57, 43, 0.3);
}

.form-control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
}

.field-error.show {
  display: block;
}

/* Formulaire de devis (.lead-form) */
.lead-form .form-row {
  display: block;
  margin-bottom: 18px;
}

.lead-form .form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.lead-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.lead-form .req { color: var(--danger); }
.lead-form .opt { font-weight: 400; color: var(--text-light); font-size: 0.82rem; }

.lead-form input:not([type="hidden"]),
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-form textarea { resize: vertical; min-height: 130px; }

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(31, 95, 168, 0.12);
  outline: none;
}

.lead-form .is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
}

.lead-form .form-error {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 6px 0 0;
}

.lead-form .form-error.show { display: block; }

.lead-form button[disabled] { opacity: 0.7; cursor: wait; }

.lead-form .form-privacy {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 14px;
}

@media (max-width: 640px) {
  .lead-form .form-cols { grid-template-columns: 1fr; }
}

/* honeypot - champ piège anti-spam, invisible pour humains */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------
   10. SECTION CONTACT INFO / COORDONNEES
   --------------------------------------------------------- */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.contact-info-item h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
}

.contact-info-item a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------
   11. FAQ (accordéon)
   --------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.faq-question .faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--light);
  flex-shrink: 0;
  position: relative;
}

.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-question .faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-question .faq-icon::after {
  width: 2px;
  height: 10px;
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 22px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   12. PROCESS / TIMELINE
   --------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   13. ZONE D'INTERVENTION
   --------------------------------------------------------- */
.zones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.zone-chip {
  padding: 10px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
}

/* ---------------------------------------------------------
   14. REALISATIONS / GALERIE
   --------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ---------------------------------------------------------
   15. BREADCRUMB
   --------------------------------------------------------- */
.breadcrumb {
  background: var(--light);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-light);
}

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

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--secondary-light);
}

/* ---------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo img {
  height: 42px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-desc {
  font-size: 0.92rem;
  max-width: 340px;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

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

/* ---------------------------------------------------------
   17. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

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

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

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

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

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 999;
  }

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

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a.nav-link {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 14px;
  }

  .main-nav .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .header-phone span {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
  }

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

  .cta-group {
    flex-direction: column;
  }

  .cta-group .btn {
    width: 100%;
  }

  .form-card {
    padding: 24px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
}

/* ---------------------------------------------------------
   REMERCIEMENT APRÈS ENVOI (page merci.html + panneau du formulaire)
   --------------------------------------------------------- */
  .thanks { padding: 90px 0 110px; }
  .thanks-card {
    max-width: 680px; margin: 0 auto; text-align: center;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 48px 36px;
  }
  .thanks-icon {
    width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(30, 142, 62, 0.12);
  }
  .thanks-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .thanks-card h1, .thanks-panel h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--primary); margin-bottom: 14px; }
  .thanks-card p, .thanks-panel p { color: var(--text-light); margin: 0 auto 12px; max-width: 520px; }
  .thanks-steps { text-align: left; max-width: 460px; margin: 26px auto 30px; padding: 0; list-style: none; }
  .thanks-steps li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--text); }
  .thanks-steps b {
    flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff;
    font-size: .82rem; display: flex; align-items: center; justify-content: center;
  }
  .thanks-actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
  .thanks-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
  .thanks-actions .btn svg { width: 22px; height: 22px; fill: currentColor; }
  .thanks-hint { font-size: .9rem; margin-top: 18px !important; }
  .thanks-panel { text-align: center; padding: 8px 0 4px; animation: thanksIn .35s ease; }
  .thanks-panel:focus { outline: none; }
  .thanks-panel .thanks-steps { margin: 22px auto 26px; }
  .thanks-again { background: none; border: 0; color: var(--primary-light); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
  @keyframes thanksIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @media (max-width: 560px) { .thanks { padding: 50px 0 70px; } .thanks-card { padding: 36px 20px; } }
  .form-card { scroll-margin-top: 110px; }
  .thanks-panel h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); }
