/* =====================================================
   EUREKA Mayotte — Styles optimisés (mobile-first)
   Remplace ton fichier styles_eureka.css par celui-ci.
   ===================================================== */

/* ---------- Base / reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; }
img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

:root{
  /* =====================================================
     ALOMAYJOB Compétences — Palette (logo)
     Objectif : différencier du site EUREKA sans changer le contenu.
     ===================================================== */

  /* Couleurs de marque */
  --brand: #2AA6A9;         /* turquoise */
  --brand-2: #1F8F92;       /* turquoise plus profond (titres/hover) */
  --accent: #F57C00;        /* orange */
  --accent-hover: #D96C00;  /* orange hover */

  /* Neutres */
  --ink: #0F1113;           /* noir profond */
  --text: #1F2933;          /* texte principal */
  --muted: #6B7280;         /* texte secondaire */
  --surface: #ffffff;
  --surface-2: #F2FBFB;     /* fond clair légèrement turquoise */
  --border: rgba(31, 41, 51, 0.16);

  /* Layout */
  --container: 1120px;
  --gutter: 16px;
  --header-h: 64px;

  /* Rythme */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;

  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.18);
}

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}

/* Accessibilité : lien d'évitement */
.skip-link{
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform .2s ease;
  z-index: 999;
}
.skip-link:focus{ transform: translateY(0); }

/* Container */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.75); /* transparence */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


.header-content{
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo{ display: flex; align-items: center; gap: .6rem; }
.logo-img{ height: 55px; width: auto; }
.logo-text-group{ display:flex; flex-direction:column; line-height:1.1; }
.logo-main{ font-size: 1.4rem; font-weight: 800; letter-spacing: .05em; color: var(--brand-2); text-transform: uppercase; }
.logo-sub{ font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }

.main-nav ul{ list-style: none; display: flex; align-items: center; gap: 1.25rem; }
.main-nav a{
  font-size: .95rem;
  font-weight: 600;
  color: #374151;
  position: relative;
  padding-block: .4rem;
}
.main-nav a:hover,
.main-nav a:focus-visible{ color: var(--brand-2); }
.main-nav a[aria-current="page"]{ color: var(--brand-2); }
.main-nav a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-.15rem;
  width:100%;
  height:2px;
  background: var(--brand-2);
}

/* Burger */
.nav-toggle{ display:none; }
.nav-toggle-btn{
  display:none; /* visible en mobile */
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-btn span{
  display:block;
  width: 18px;
  height: 2px;
  background:#111827;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Titres soulignés (réutilisable) ---------- */
/* .underlined{
  position: relative;
  display: inline-block;
}
.underlined::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-10px;
  width: 80px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
} */

.underlined {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.underlined::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  background-color: #F57C00; /* orange ALOMAYJOB */
  border-radius: 2px;
}


/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: min(100vh, 760px);
  padding: clamp(3.5rem, 7vw, 5rem) 0 3rem;
  color: #fff;
  overflow: hidden;
}

.hero::before{
  /* voile pour la lisibilité (mobile-friendly) */
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(15,23,42,.78), rgba(15,23,42,.35) 55%, rgba(15,23,42,.18));
  z-index: -1;
}

.hero-image{ position:absolute; inset:0; z-index:-2; }
.hero-img{ width:100%; height:100%; object-fit: cover; }

.hero-content{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.hero-text{ max-width: 42rem; }
.hero-kicker{
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin: 0 0 .5rem;
}
.hero h1{
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero-subtitle{
  font-size: clamp(.98rem, 1.4vw, 1.05rem);
  color: #e5e7eb;
  margin: 0 0 2rem;
}

.hero-actions{ display:flex; flex-wrap:wrap; gap: .75rem; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}
.btn:focus-visible{ outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }

.btn-primary{
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.btn-primary:hover,
.btn-primary:focus-visible{
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.32);
}

.btn-secondary{
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.btn-secondary:hover,
.btn-secondary:focus-visible{
  background: rgba(255,255,255,.90);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
}

/* ---------- Section intro ---------- */
.section-intro{ padding: 3rem 0 1rem; }
.section-intro-grid{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.25rem;
  align-items: center;
}

.intro-tag{
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 1.5rem;
}
.intro-tag.underlined::after{ width: 80px; }

.section-intro-text h2{ font-size: 1.8rem; margin: 0 0 1rem; color: var(--ink); }
.intro-lead{ font-size: 1rem; font-weight: 600; color: #374151; margin: 0 0 .75rem; }
.section-intro-text p{ margin: 0 0 .75rem; color: #4b5563; }

.section-intro-highlights{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.intro-card{
  position: relative;
  border-radius: 1rem;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.intro-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(42, 166, 169, 0.45); }

.intro-card h3{ font-size: 1.1rem; font-weight: 800; margin: 0 0 .8rem; }
.intro-card ul{ list-style:none; }
.intro-card li{ position:relative; padding-left: 1.1rem; margin-bottom: .35rem; overflow-wrap: anywhere; }
.intro-card li::before{ content:"•"; position:absolute; left:0; top:.2rem; color: var(--brand-2); }

.intro-card--candidats{ background: linear-gradient(135deg, #e7fbfb, #c9f3f4); border-color: rgba(42, 166, 169, 0.35); box-shadow: 0 10px 25px rgba(42, 166, 169, 0.10); }
.intro-card--candidats h3{ color: var(--brand-2); }

.intro-card--entreprises{ background: linear-gradient(135deg, #fff1e6, #ffd9b8); border-color: rgba(245, 124, 0, 0.35); box-shadow: 0 10px 25px rgba(245, 124, 0, .12); }
.intro-card--entreprises h3{ color: #B45309; }

.intro-card--valeur{ background: linear-gradient(135deg, #f6fffe, #d7fbfb); border-color: rgba(31, 143, 146, 0.35); box-shadow: 0 10px 25px rgba(31, 143, 146, 0.10); }
.intro-card--valeur h3{ color: var(--brand-2); }

/* ---------- Secteurs ---------- */
.section-secteurs{ background: var(--surface-2); padding: 3rem 0; text-align:center; }
.secteurs-title{ font-size: 2rem; font-weight: 800; color: var(--brand); margin: 0 0 1.8rem; }
.secteurs-title.underlined::after{ left: 50%; transform: translateX(-50%); }
.secteurs-subtitle{ max-width: 700px; margin: 0 auto 2.5rem; font-size: 1rem; color: var(--muted); }

.secteurs-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.secteur-card{
  border-radius: 1.2rem;
  padding: 1.9rem 1.4rem 1.7rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.secteur-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 55px rgba(15, 23, 42, 0.28); }
.secteur-icon{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 1.9rem;
  margin-bottom: .9rem;
}
.secteur-card h3{ font-size: 1rem; font-weight: 700; margin: 0; }

/* Couleurs par secteur (inchangées) */
.secteur-card--btp{ background: linear-gradient(135deg, var(--brand-2), #6ee7e9); box-shadow: 0 18px 40px rgba(42, 166, 169, 0.55); color: #f9fafb; }
.secteur-card--admin{ background: linear-gradient(135deg, #ea580c, #fdba74); box-shadow: 0 18px 40px rgba(234, 88, 12, 0.55); color: #111827; }
.secteur-card--transport{ background: linear-gradient(135deg, #16a34a, #86efac); box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55); color: #022c22; }
.secteur-card--commerce{ background: linear-gradient(135deg, #e11d48, #fb7185); box-shadow: 0 18px 40px rgba(225, 29, 72, 0.55); color: #fdf2f8; }
.secteur-card--nettoyage{ background: linear-gradient(135deg, #0ea5e9, #7dd3fc); box-shadow: 0 18px 40px rgba(14, 165, 233, 0.55); color: #0f172a; }
.secteur-card--restauration{ background: linear-gradient(135deg, #f59e0b, #facc15); box-shadow: 0 18px 40px rgba(245, 158, 11, 0.55); color: #291507; }
.secteur-card--social{ background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 18px 40px rgba(99, 102, 241, 0.55); color: #eef2ff; }
.secteur-card--agri{ background: linear-gradient(135deg, #15803d, #4ade80); box-shadow: 0 18px 40px rgba(21, 128, 61, 0.55); color: #ecfdf3; }

/* ---------- Offres ---------- */
.section-offres{ padding: 3.5rem 0 1rem; }
.offres-title{ font-size: 2rem; font-weight: 800; text-align:center; margin: 0 0 1rem; color: var(--brand); }
.offres-title.underlined::after{ left: 50%; transform: translateX(-50%); width: 60px; }
.offres-subtitle{ max-width: 640px; margin: 0 auto 2.5rem; text-align:center; color: var(--muted); }

.offres-grid{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.offre-card{
  background: var(--surface);
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display:flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.offre-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(42, 166, 169, 0.5); }

.offre-image{ width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.offre-image img{ width:100%; height:100%; object-fit: cover; transition: transform .4s ease; }
.offre-card:hover .offre-image img{ transform: scale(1.08); }

.offre-body{ padding: 1.1rem 1.2rem 1.2rem; display:flex; flex-direction:column; gap: .35rem; }
.offre-name{ font-size: 1rem; font-weight: 800; margin: 0; color: var(--ink); }
.offre-meta{ margin: 0; font-size: .85rem; font-weight: 800; color: var(--brand); }
.offre-desc{ margin: .15rem 0 .25rem; font-size: .92rem; color: #4b5563; }
.offre-link{ margin-top: .25rem; font-size: .95rem; font-weight: 800; color: var(--brand); }
.offre-link:hover{ text-decoration: underline; }

.offres-actions{ margin-top: 2rem; text-align:center; }
.offres-all-link{ font-weight: 800; color: var(--brand-2); }
.offres-all-link::after{ content: " →"; }

.section-offres .offres-title {
  align-self: flex-start;
  text-align: left;
}

.section-offres .offres-title.underlined::after {
  left: 0;
  transform: none;
}


/* ---------- Pourquoi + équipe + processus ---------- */
.section-why-process{ background: var(--surface-2); padding: 3rem 0; margin-top: 2.5rem; }
.why-process-inner{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: start;
}

.why-title,
.process-col h2{ font-size: 2rem; font-weight: 800; color: var(--brand); margin: 0 0 1.25rem; }

.why-intro,
.process-intro{ margin: 0 0 1.2rem; color: var(--muted); }

.why-list{ list-style:none; }
.why-list li{ position:relative; padding-left: 1.35rem; margin-bottom: .5rem; color: var(--text); }
.why-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:.1rem;
  width: .95rem;
  height: .95rem;
  border-radius: 999px;
  font-size: .75rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(42, 166, 169, 0.14);
  color: var(--brand-2);
}

.team-card{
  background: var(--surface);
  border-radius: 1.1rem;
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display:flex;
  flex-direction: column;
  align-self: center;
}
.team-image{ width: 100%; aspect-ratio: 16/9; overflow:hidden; }
.team-image img{ width:100%; height:100%; object-fit: cover; transition: transform .4s ease; }
.team-card:hover .team-image img{ transform: scale(1.05); }

.team-body{ padding: 1.3rem 1.3rem 1.4rem; display:flex; flex-direction: column; gap: .45rem; }
.team-title-colored{ color: var(--brand); font-weight: 900; margin: 0; }
.team-body p{ margin: 0; color:#4b5563; }
.team-highlight-colored{ color: var(--accent); font-weight: 900; margin-top: .2rem; }

.process-steps{ list-style:none; }
.process-steps li{ position:relative; padding-left: 2.4rem; margin-bottom: 1.1rem; }
.process-steps li::before{
  content:"";
  position:absolute;
  left:0;
  top:.25rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(42, 166, 169, 0.18);
}
.process-steps li h3{ font-size: 1rem; margin: 0 0 .2rem; color: var(--ink); }
.process-steps li p{ margin: 0; font-size: .92rem; color:#4b5563; }

.process-steps li:nth-child(1) h3::before,
.process-steps li:nth-child(2) h3::before,
.process-steps li:nth-child(3) h3::before{
  position:absolute;
  left:.45rem;
  top:.28rem;
  font-size:.8rem;
  font-weight: 900;
  color:#f9fafb;
}
.process-steps li:nth-child(1) h3::before{ content:"1"; }
.process-steps li:nth-child(2) h3::before{ content:"2"; }
.process-steps li:nth-child(3) h3::before{ content:"3"; }

/* ---------- Contact ---------- */
#contact{ scroll-margin-top: 90px; }
.contact{ padding: 4.5rem 0; }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items:start; }

.section-title{ font-size: 2rem; font-weight: 800; color: var(--brand); margin: 0 0 1.25rem; }

.contact-intro{ color: var(--muted); margin: 6px 0 18px; }
.contact-form{ display:grid; gap: 14px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field{ display:grid; gap: 6px; }
.form-field label{ font-weight: 800; font-size: .95rem; }
.form-field input,
.form-field textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e7e1d9;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea{ resize: vertical; }
.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(42, 166, 169, .18);
}

.form-consent{ margin-top: 4px; }
.checkbox{ display:flex; gap: 10px; align-items:flex-start; font-size: .95rem; color: var(--text); }
.checkbox input{ margin-top: 4px; }

.form-actions{ display:flex; gap: 12px; align-items:center; flex-wrap: wrap; margin-top: 6px; }
.form-note{ color: var(--muted); font-size: .9rem; }

.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.btn-ghost{
  background: var(--brand-2);
  color: #fff;
  padding: 12px 32px;
  border-radius: 40px;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-ghost:hover{ background: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42, 166, 169, 0.30); }
.btn-ghost:active{ transform: translateY(0); box-shadow: 0 4px 10px rgba(42, 166, 169, 0.20); }

.form-status{ margin-top: .75rem; font-size: .92rem; }
.form-status.success{ color: #1b7f3b; }
.form-status.error{ color: #c0392b; }

.contact-map{
  width:100%;
  height:100%;
  min-height: 480px;
  border-radius: var(--r-md);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  background: var(--ink);
  color: #F9FAFB;
  padding-top: 60px;
  padding-bottom: 20px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo { width: 120px; margin-bottom: 10px; }

.footer-brand p { color: rgba(249, 250, 251, 0.78); line-height: 1.6; }

.footer-nav h3,
.footer-contact h3 {
  color: var(--brand);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li,
.footer-contact ul li { margin: 6px 0; }

.footer-nav a,
.footer-contact a {
  color: rgba(249, 250, 251, 0.92);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--accent); }

.site-footer .social-links li a { color: var(--brand); }
.site-footer .social-links li a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(249, 250, 251, 0.72);
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a { color: var(--brand); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.social-links li a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-inline {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* Taille fixe icônes sociales */
.social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

/* =========================
   FOOTER – Liens : gras + animation
   ========================= */

.site-footer a{
  font-weight: 600;                 /* texte en gras */
  transition: 
    color .25s ease,
    transform .25s ease;
}

/* Effet au survol */
.site-footer a:hover{
  transform: translateX(4px);       /* petit déplacement */
  color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .secteurs-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px){
  .why-process-inner{ grid-template-columns: 1fr; }
  .offres-grid{ grid-template-columns: 1fr; }
  .section-intro-grid{ grid-template-columns: 1fr; }
  .section-intro-highlights{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  /* Menu burger */
  .nav-toggle-btn{ display:flex; }

  .main-nav{
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid #eee;
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .main-nav ul{ flex-direction: column; align-items: flex-start; gap: 0; padding: .25rem 0; }
  .main-nav li{ width: 100%; }
  .main-nav a{ display:block; width:100%; padding: 14px 16px; }

  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2){ opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:checked ~ .main-nav{ transform: translateY(0); }

  /* Hero en colonne unique */
  .hero-content{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .section-intro-highlights{ grid-template-columns: 1fr; }
  .secteurs-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-map{ min-height: 320px; }
  .form-row{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  :root{ --header-h: 58px; }
  .logo-img{ height: 45px; }
  .btn{ width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce){
  html:focus-within{ scroll-behavior: auto; }
  *, *::before, *::after{ transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

@media (max-width: 768px) {

  /* La nav devient une "carte" */
  .main-nav {
    position: absolute;
    right: 16px;
    top: calc(100% + 10px);

    width: min(320px, calc(100vw - 32px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);

    padding: 12px;

    /* caché par défaut */
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1200;
  }

  /* ouverture : checkbox cochée */
  #nav-toggle:checked ~ .main-nav {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* Liste en colonne dans la carte */
  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Liens style "bouton" */
  .nav-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: rgba(42, 166, 169, 0.12);
    outline: none;
  }
}

/* =====================================================
   FOOTER - Mobile (1 colonne)
===================================================== */
@media (max-width: 768px) {

  .footer-grid{
    grid-template-columns: 1fr; /* plus de colonnes */
    gap: 24px;
    text-align: left;
  }

  /* ordre : brand/logo -> nav -> contact */
  .footer-brand{ order: 1; }
  .footer-nav{ order: 2; }
  .footer-contact{ order: 3; }

  /* optionnel : limiter la largeur, meilleur confort */
  .site-footer{
    padding-top: 40px;
    padding-bottom: 18px;
  }

  /* réseaux sociaux : rester sur une ligne */
  .social-inline{
    flex-wrap: wrap; /* si manque de place, passe à la ligne proprement */
    gap: 10px;
  }
}
