/* style.css - Version optimisée responsive mobile */
:root {
  --teal:        #1B7B8A;
  --teal-light:  #2ABFCF;
  --teal-dark:   #0D4F5C;
  --sun:         #FFD23F;
  --coral:       #FF6B6B;
  --mint:        #4ECDC4;
  --violet:      #9B5DE5;
  --lime:        #85E89D;
  --peach:       #FFA552;
  --cream:       #F0FAFA;
  --light:       #E0F5F7;
  --dark:        #0D3D47;
  --text:        #1A3A42;
  --red:        #ef1717;
  --accent:      var(--coral);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* NAVBAR */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-evenly;
  padding: 0 2rem;
  height: 80px;
  background: rgba(240,250,250,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(27,123,138,.15);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(13,77,92,.15); }
.logo {
  height: 60px;
  width: auto;
  display: block;
}
.logo-footer {
  height: 70px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: .88rem; font-weight: 600; letter-spacing: .4px;
  position: relative; padding-bottom: 4px; transition: color .3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--coral), var(--sun));
  border-radius: 2px; transition: width .3s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-light)) !important;
  color: #fff !important; padding: .55rem 1.5rem; border-radius: 50px;
  box-shadow: 0 4px 16px rgba(27,123,138,.35);
  transition: transform .2s, box-shadow .3s !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,123,138,.45) !important; }
.nav-cta::after { display: none !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: all .3s ease;
}

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 4rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 45%, rgba(78,205,196,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 75%, rgba(255,210,63,.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 85%, rgba(255,107,107,.12) 0%, transparent 50%);
}
.bubble { position: absolute; border-radius: 50%; animation: floatBubble 7s ease-in-out infinite; pointer-events: none; }
.b1 { width:260px; height:260px; background:rgba(78,205,196,.12);  top:-60px; right:5%;   animation-delay:0s; }
.b2 { width:140px; height:140px; background:rgba(255,210,63,.15);  bottom:12%; left:3%;  animation-delay:2.5s; }
.b3 { width:80px;  height:80px;  background:rgba(255,107,107,.14); top:28%; right:28%;   animation-delay:4s; border-radius:30% 70% 60% 40%/40% 30% 70% 60%; }
.b4 { width:50px;  height:50px;  background:rgba(155,93,229,.12);  top:60%; right:12%;   animation-delay:1.5s; }
.b5 { width:100px; height:100px; background:rgba(133,232,157,.15); top:15%; left:38%;    animation-delay:3s; border-radius:60% 40% 50% 50%/50% 60% 40% 50%; }
@keyframes floatBubble {
  0%,100% { transform: translateY(0) rotate(0deg) scale(1); }
  33%      { transform: translateY(-18px) rotate(5deg) scale(1.04); }
  66%      { transform: translateY(-8px) rotate(-4deg) scale(.97); }
}
.hero-content { position: relative; max-width: 620px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, rgba(255,107,107,.1), rgba(255,210,63,.1));
  color: var(--teal); border: 1.5px solid rgba(27,123,138,.2);
  padding: .4rem 1.1rem; border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 1.6rem;
}
.hero-tag::before { content:'🌟'; }
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.1;
  color: var(--teal-dark); margin-bottom: 1.4rem;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--coral), var(--sun));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1rem; line-height: 1.6; color: #3a7080; max-width: 480px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 2rem; border-radius: 50px;
  font-size: .9rem; font-weight: 700;
  text-decoration: none; transition: all .3s; cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-light)); color: #fff; box-shadow: 0 6px 20px rgba(27,123,138,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(27,123,138,.45); }
.btn-outline { background: #fff; color: var(--teal-dark); border: 2px solid var(--teal); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-3px); }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(27,123,138,.2);
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: .75rem; color: #6aa0ac; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.hero-visual { position: absolute; right: 3rem; top: 50%; transform: translateY(-50%); width: 420px; }
.hero-cards-stack { position: relative; }
.hcard { background: #fff; border-radius: 22px; padding: 1.4rem 1.6rem; box-shadow: 0 8px 40px rgba(13,77,92,.12); position: absolute; border-top: 4px solid transparent; }
.hcard-1 { width:240px; top:0; right:0; border-color:var(--sun); animation:floatBubble 5s ease-in-out infinite; }
.hcard-2 { width:205px; top:130px; right:155px; border-color:var(--mint); animation:floatBubble 7s ease-in-out infinite 1.2s; }
.hcard-3 { width:225px; top:255px; right:15px; border-color:var(--violet); animation:floatBubble 6s ease-in-out infinite 2.4s; }
.hcard-icon { font-size: 2rem; margin-bottom: .4rem; }
.hcard-title { font-weight: 800; font-size: .88rem; color: var(--teal-dark); }
.hcard-sub { font-size: .75rem; color: #80aab5; margin-top: .15rem; }

/* SHARED */
section { padding: 5rem 2rem; }
.section-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: .8rem; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 900; color: var(--teal-dark); margin-bottom: 1rem; line-height: 1.15; }
.section-lead { font-size: 1rem; color: #5a8898; max-width: 560px; line-height: 1.6; }

/* NIVEAUX */
#niveaux { background: var(--teal-dark); position: relative; overflow: hidden; }
#niveaux::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse 60% 50% at 10% 20%, rgba(78,205,196,.12) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 90% 80%, rgba(255,210,63,.08) 0%, transparent 55%); }
#niveaux .section-tag { color: var(--sun); }
#niveaux h2 { color: #fff; }
#niveaux .section-lead { color: rgba(255,255,255,.55); }
.levels-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3.5rem; position: relative; }
.level-card { border-radius: 28px; padding: 2.5rem 2rem; position: relative; overflow: hidden; cursor: pointer; transition: transform .3s, box-shadow .3s; border: 3px solid rgba(255,255,255,.15); }
.level-card:hover { transform: translateY(-10px) scale(1.01); box-shadow: 0 28px 64px rgba(0,0,0,.35); }
.level-card.jardin  { background: linear-gradient(145deg,#FFD23F 0%,#FF8C42 55%,#FF6B6B 100%); }
.level-card.ecole   { background: linear-gradient(145deg,#4ECDC4 0%,#2ABFCF 50%,#1B7B8A 100%); }
.level-card.college { background: linear-gradient(145deg,#9B5DE5 0%,#C77DFF 50%,#7B2FBE 100%); }
.level-card::after { content:''; position:absolute; width:200px; height:200px; background:rgba(255,255,255,.1); border-radius:50%; bottom:-60px; right:-60px; pointer-events:none; }
.level-emoji { font-size: 3.8rem; margin-bottom: 1rem; display: block; filter: drop-shadow(2px 4px 6px rgba(0,0,0,.2)); }
.level-card h3 { font-family:'Playfair Display',serif; font-size:1.55rem; font-weight:900; color:#fff; margin-bottom:.5rem; text-shadow:0 2px 8px rgba(0,0,0,.15); }
.level-card p { color:rgba(255,255,255,.88); font-size:.88rem; line-height:1.65; }
.level-card .age-badge { display:inline-block; margin-top:1.2rem; background:rgba(255,255,255,.25); color:#fff; padding:.3rem 1rem; border-radius:50px; font-size:.78rem; font-weight:700; backdrop-filter:blur(4px); }
.level-overlay { position:absolute; inset:0; border-radius:25px; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s; backdrop-filter:blur(2px); }
.level-card:hover .level-overlay { opacity:1; }
.level-overlay a { color:#fff; text-decoration:none; border:2px solid #fff; padding:.65rem 1.6rem; border-radius:50px; font-size:.88rem; font-weight:700; transition:all .3s; }
.level-overlay a:hover { background:#fff; color:var(--teal-dark); }

/* SERVICES */
#services { background: var(--light); }
.services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.5rem; margin-top:3rem; }
.service-card { background:#fff; border-radius:22px; padding:2rem 1.8rem; border:1.5px solid rgba(27,123,138,.1); transition:transform .3s,box-shadow .3s; position:relative; overflow:hidden; }
.service-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; border-radius:22px 22px 0 0; }
.service-card:nth-child(1)::before { background:linear-gradient(90deg,var(--coral),var(--sun)); }
.service-card:nth-child(2)::before { background:linear-gradient(90deg,var(--teal),var(--mint)); }
.service-card:nth-child(3)::before { background:linear-gradient(90deg,var(--lime),var(--mint)); }
.service-card:nth-child(4)::before { background:linear-gradient(90deg,var(--violet),#C77DFF); }
.service-card:nth-child(5)::before { background:linear-gradient(90deg,var(--sun),var(--peach)); }
.service-card:nth-child(6)::before { background:linear-gradient(90deg,var(--mint),var(--teal-light)); }
.service-card:hover { transform:translateY(-6px); box-shadow:0 16px 48px rgba(27,123,138,.15); }
.svc-icon { width:58px; height:58px; border-radius:18px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; margin-bottom:1.2rem; }
.svc-icon.s1 { background:linear-gradient(135deg,rgba(255,107,107,.15),rgba(255,210,63,.1)); }
.svc-icon.s2 { background:linear-gradient(135deg,rgba(27,123,138,.12),rgba(78,205,196,.1)); }
.svc-icon.s3 { background:linear-gradient(135deg,rgba(133,232,157,.2),rgba(78,205,196,.1)); }
.svc-icon.s4 { background:linear-gradient(135deg,rgba(155,93,229,.15),rgba(199,125,255,.1)); }
.svc-icon.s5 { background:linear-gradient(135deg,rgba(255,210,63,.2),rgba(255,165,82,.1)); }
.svc-icon.s6 { background:linear-gradient(135deg,rgba(78,205,196,.15),rgba(42,191,207,.1)); }
.service-card h4 { font-weight:800; font-size:1rem; color:var(--teal-dark); margin-bottom:.5rem; }
.service-card p { font-size:.87rem; color:#6a8e98; line-height:1.65; }

/* GALERIE */
#galerie { overflow:hidden; background:var(--cream); }
.gallery-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:2rem; flex-wrap: wrap; gap: 1rem; }
.gallery-track-wrap { overflow:hidden; }
.gallery-track { display:flex; gap:1.2rem; animation:galleryScroll 30s linear infinite; width:max-content; }
.gallery-track:hover { animation-play-state:paused; }
@keyframes galleryScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.gallery-item { width:280px; height:200px; border-radius:22px; overflow:hidden; flex-shrink:0; }
.gallery-item .placeholder { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:2.8rem; gap:.5rem; background: linear-gradient(145deg, #e2f3f5, #d0e8ea); }
.gallery-item .ph-label { font-size:.82rem; color:rgba(0,0,0,.65); font-weight:700; }

/* TÉMOIGNAGES */
#temoignages { background:var(--teal-dark); position:relative; overflow:hidden; }
#temoignages::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 60% 50% at 80% 20%,rgba(78,205,196,.1) 0%,transparent 60%); }
#temoignages .section-tag { color:var(--sun); }
#temoignages h2 { color:#fff; }
#temoignages .section-lead { color:rgba(255,255,255,.5); }
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; margin-top:3rem; position:relative; }
.testi-card { background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.12); border-radius:22px; padding:2rem 1.8rem; transition:background .3s,transform .3s; }
.testi-card:hover { background:rgba(255,255,255,.11); transform:translateY(-4px); }
.stars { font-size:1rem; margin-bottom:1rem; letter-spacing:3px; }
.testi-card:nth-child(1) .stars { color:var(--sun); }
.testi-card:nth-child(2) .stars { color:var(--coral); }
.testi-card:nth-child(3) .stars { color:var(--mint); }
.testi-text { color:rgba(255,255,255,.82); font-size:.9rem; line-height:1.75; margin-bottom:1.5rem; font-style:italic; }
.testi-author { display:flex; align-items:center; gap:.9rem; }
.avatar { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1rem; font-weight:800; color:#fff; background: var(--teal-light); }
.testi-name { font-weight:700; font-size:.88rem; color:#fff; }
.testi-role { font-size:.74rem; color:rgba(255,255,255,.38); margin-top:.1rem; }

/* INSCRIPTION */
#inscription { background:var(--cream); }
.form-wrapper { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; margin-top:3rem; }
.form-info h3 { font-family:'Playfair Display',serif; font-size:1.6rem; font-weight:900; color:var(--teal-dark); margin-bottom:1rem; }
.form-info p { color:#6a8e98; line-height:1.6; margin-bottom:1.5rem; }
.info-steps { display:flex; flex-direction:column; gap:1.3rem; }
.step { display:flex; gap:1rem; align-items:flex-start; }
.step-num { width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,var(--teal),var(--teal-light)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.85rem; flex-shrink:0; box-shadow:0 4px 14px rgba(27,123,138,.3); }
.step-text strong { display:block; font-size:.9rem; color:var(--teal-dark); }
.step-text span { font-size:.82rem; color:#88a8b0; }
form { background:#fff; border-radius:26px; padding:2rem; box-shadow:0 8px 48px rgba(13,77,92,.1); border:1.5px solid rgba(27,123,138,.08); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-group { margin-bottom:1rem; }
label { display:block; font-size:.75rem; font-weight:700; color:var(--teal-dark); margin-bottom:.4rem; letter-spacing:.3px; }
input,select,textarea { width:100%; padding:.8rem 1rem; border:1.5px solid rgba(27,123,138,.18); border-radius:12px; font-family:inherit; font-size:.95rem; color:var(--text); background:var(--cream); transition:border-color .3s,box-shadow .3s; outline:none; }
input:focus,select:focus,textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(27,123,138,.12); }
textarea { resize:vertical; min-height:90px; }
.submit-btn { width:100%; padding:1rem; background:linear-gradient(135deg,var(--teal),var(--teal-light)); color:#fff; border:none; border-radius:14px; font-size:1rem; font-weight:700; cursor:pointer; font-family:inherit; transition:all .3s; box-shadow:0 6px 20px rgba(27,123,138,.35); }
.submit-btn:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(27,123,138,.45); }
.form-success { display:none; text-align:center; padding:2rem; }
.form-success .check { font-size:3rem; }
.form-success p { color:var(--teal-dark); font-weight:700; margin-top:.5rem; }

/* CONTACT */
#contact { background:var(--light); }
.contact-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:3rem; margin-top:3rem; }
.contact-info { display:flex; flex-direction:column; gap:1.8rem; }
.cinfo-item { display:flex; gap:1.2rem; align-items:flex-start; }
.cinfo-icon { width:50px; height:50px; border-radius:16px; background:linear-gradient(135deg,var(--teal),var(--teal-light)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0; box-shadow:0 4px 14px rgba(27,123,138,.25); }
.cinfo-label { font-size:.73rem; color:#88a8b0; text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.cinfo-val { font-weight:700; color:var(--teal-dark); font-size:.95rem; margin-top:.15rem; }
.map-box { border-radius:26px; overflow:hidden; height:360px; box-shadow:0 8px 40px rgba(13,77,92,.12); border:2px solid rgba(27,123,138,.12); }
.map-box iframe { display:block; width:100%; height:100%; }

/* FOOTER */
footer { background:var(--teal-dark); color:rgba(255,255,255,.5); padding:3rem 2rem; display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:2rem; }
.footer-brand p { font-size:.85rem; line-height:1.6; margin-top:1rem; color:rgba(255,255,255,.4); }
.footer-col h5 { color:var(--sun); font-size:.78rem; font-weight:800; margin-bottom:1.1rem; letter-spacing:2px; text-transform:uppercase; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:.7rem; }
.footer-col ul a { color:rgba(255,255,255,.4); text-decoration:none; font-size:.85rem; transition:color .3s; }
.footer-col ul a:hover { color:var(--teal-light); }
.footer-bottom { background:#071e24; color:rgba(255,255,255,.22); text-align:center; padding:1rem 2rem 1.5rem; font-size:.78rem; border-top:1px solid rgba(255,255,255,.06); }

/* ALERTS */
.simple-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 350px;
  background-color: #ffffff;
  border-left: 4px solid;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  margin-bottom: 10px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.simple-alert.show { opacity: 1; transform: translateX(0); }
.alert-content { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.alert-icon { font-size: 18px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.alert-text { flex: 1; min-width: 0; }
.alert-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; color: #2d3748; line-height: 1.3; }
.alert-message { font-size: 14px; color: #4a5568; line-height: 1.4; }
.alert-close { background: none; border: none; color: #a0aec0; font-size: 20px; cursor: pointer; padding: 0; margin-left: 8px; line-height: 1; transition: color 0.2s; }
.alert-close:hover { color: #718096; }
.simple-alert.success { border-left-color: var(--mint); background-color: var(--cream); }
.simple-alert.success .alert-icon { background-color: var(--mint); color: white; }
.simple-alert.error { border-left-color: var(--red); background-color: #ffecec; }
.simple-alert.error .alert-icon { background-color: var(--red); color: white; }
.simple-alert.warning { border-left-color: var(--sun); background-color: #fff9e6; }
.simple-alert.warning .alert-icon { background-color: var(--sun); color: #7a5c00; }
.simple-alert.info { border-left-color: var(--teal-light); background-color: var(--light); }
.simple-alert.info .alert-icon { background-color: var(--teal-light); color: white; }
.simple-alert.hiding { opacity: 0; transform: translateX(100%); }

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-danger { color: var(--red); }

/* REVEAL ANIMATION */
.reveal { opacity:0; transform:translateY(30px); transition:opacity .7s,transform .7s; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* BACK TO TOP */
#back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff; border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 20px rgba(27,123,138,.45);
  z-index: 99;
}
#back-top.show { opacity: 1; pointer-events: all; }
#back-top:hover { transform: translateY(-4px); }

/* ========== RESPONSIVE MOBILE OPTIMISATIONS ========== */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  nav { padding: 0 1.5rem; height: 70px; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-links.open { left: 0; }
  .nav-links a { font-size: 1rem; white-space: normal; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 0.5rem 0 0 0; text-align: center; width: 100%; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 6px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -6px); }
}

@media (max-width: 768px) {
  section { padding: 3rem 1.25rem; }
  .hero { padding: 7rem 1.25rem 3rem; min-height: auto; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; text-align: center; gap: 1.5rem; }
  .hero-stats .stat-item { flex: 1 1 auto; min-width: 100px; }

  .levels-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .level-card { padding: 1.8rem; }
  .level-overlay {
    position: relative;
    inset: auto;
    background: transparent;
    backdrop-filter: none;
    opacity: 1;
    justify-content: flex-start;
    margin-top: 1.2rem;
    padding: 0;
  }
  .level-card:hover .level-overlay { opacity: 1; }
  .level-overlay a {
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.6);
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
  }

  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem; }

  .gallery-item { width: 220px; height: 160px; }
  .gallery-item .placeholder { font-size: 2rem; }

  .testi-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .testi-card { padding: 1.5rem; }

  .form-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 0.75rem; }
  form { padding: 1.5rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .map-box { height: 260px; }

  footer { grid-template-columns: 1fr; gap: 1.8rem; padding: 2rem 1.25rem; text-align: center; }
  .footer-brand img { margin: 0 auto; }
  .footer-col ul { align-items: center; }

  .simple-alert { width: calc(100% - 2rem); right: 1rem; left: 1rem; top: 1rem; }

  .btn { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
  h2 { font-size: 1.8rem; }
  .section-lead { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .hero-tag { font-size: 0.7rem; padding: 0.3rem 0.8rem; }
  h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.9rem; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.65rem; }
  .level-emoji { font-size: 2.8rem; }
  .level-card h3 { font-size: 1.3rem; }
  .service-card h4 { font-size: 0.95rem; }
  .testi-text { font-size: 0.85rem; }
  .cinfo-icon { width: 42px; height: 42px; font-size: 1rem; }
  .cinfo-val { font-size: 0.85rem; }
  .gallery-item { width: 180px; height: 130px; }
}

/* Améliorations tactiles */
button, a, .level-card, .service-card, .testi-card, .btn, .nav-links a {
  touch-action: manipulation;
}
input, select, textarea {
  font-size: 16px; /* Évite le zoom automatique sur iOS */
}
