:root{--accent:#10b981;--accent2:#f59e0b;--text:#0b0f10;--muted:#6b7280;--border:#e5e7eb}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--text)}

/* ---------- Layout de base ---------- */
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.grid{display:grid;gap:16px}
.card{border:1px solid var(--border);border-radius:16px;padding:18px;background:#fff}
.btn{display:inline-block;background:var(--accent);color:#fff;padding:10px 16px;border-radius:14px;border:1px solid transparent}
.btn.secondary{background:#f3f4f6;color:#0f172a}

/* ---------- Header (non sticky) ---------- */
header{
  position:static; top:auto; background:#fff; border-bottom:1px solid var(--border); backdrop-filter:none;
}
.topbar{min-height:72px;height:auto;display:flex;align-items:center;justify-content:space-between;padding:8px 0}
.brand{display:flex;align-items:center}
header .brand img{max-height:180px;height:auto;width:auto;object-fit:contain;display:block;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
@media (max-width:1024px){ header .brand img{ max-height:140px } }
@media (max-width:640px){  header .brand img{ max-height:100px } }
nav a{padding:8px 10px;border-radius:10px}
nav a:hover{background:#e7f9f1;border:1px solid rgba(16,185,129,.35)}
.call-mobile{display:none}
@media (max-width:640px){ .call-mobile{display:inline-block;padding:8px 12px} nav a{padding:8px} }

/* ---------- Titres & sections ---------- */
h1{font-size:clamp(30px,4.6vw,48px);margin:18px 0 8px}
h2{font-size:clamp(22px,3vw,34px);margin:0}
p.muted{color:var(--muted)}
.section{padding:40px 0;background:transparent}
.section.alt{background:linear-gradient(180deg,#f0fdf4 0%, #ffffff 100%);padding:40px 0;border-top:1px solid rgba(0,0,0,.05);border-bottom:1px solid rgba(0,0,0,.05)}
.section h2{position:relative;padding-bottom:8px}
.section h2::after{content:"";position:absolute;left:0;bottom:0;width:80px;height:3px;border-radius:3px;background:var(--accent)}

/* ---------- Photo de fond globale ---------- */
body{
  background:url("fondecran22.jpg") center/cover fixed no-repeat;
  position:relative;
}
body::before{
  content:""; position:fixed; inset:0;
  background:rgba(255,255,255,.75); /* lisibilité globale */
  z-index:-1;
}

/* ---------- Bloc Bienvenue (sans fond blanc) ---------- */
.hero-intro{
  text-align:center; color:#0b0f10; padding:80px 20px; margin:40px auto; max-width:900px;
}
.hero-intro h1{font-size:clamp(28px,5vw,42px);margin-bottom:16px;color:var(--accent);text-shadow:0 2px 4px rgba(0,0,0,.15)}
.hero-intro p{font-size:18px;line-height:1.6;text-shadow:0 1px 3px rgba(255,255,255,.5)}

/* Services – base (desktop & tablette) */
.service-card{
  display:flex; align-items:center; gap:20px;
  margin:24px 0; padding:18px;
  background:#fff; border:1px solid var(--border); border-radius:14px;
  border-left:4px solid var(--accent);
  transition:transform .15s ease, box-shadow .2s ease;
}
.service-card:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(0,0,0,.08); }

.service-card img{
  width:160px;            /* + grand aussi sur PC */
  height:120px;
  object-fit:cover; border-radius:10px; flex-shrink:0;
}
.service-card h3{ margin:0 0 6px 0; font-size:22px; }
.service-card p{ margin:0; }

/* Rénovation = bord ambre (optionnel) */
.theme-reno .service-card{ border-left-color: var(--accent2); }

/* Services – mobile plein écran */
@media (max-width:700px){
  .service-card{
    flex-direction:column; text-align:center; gap:16px;
    padding:28px 20px; margin:28px 0; border-radius:18px;
    background:#ffffffee; box-shadow:0 10px 30px rgba(0,0,0,.12);
  }
  .service-card img{
    width:100%; height:280px; border-radius:14px; margin-bottom:6px;
  }
  .service-card h3{ font-size:24px; }
  .service-card p{ font-size:17px; line-height:1.6; }
}

/* ---------- Carousel Réalisations ---------- */
.carousel{position:relative;overflow:hidden;border-radius:18px;border:1px solid var(--border);box-shadow:0 16px 40px rgba(0,0,0,.12)}
.carousel .slide{position:relative}
.carousel img{width:100%;height:520px;object-fit:cover;display:block}
.controls{display:flex;gap:8px;position:absolute;inset:0;align-items:center;justify-content:space-between;padding:0 8px}
.ctrl{background:#ffffffcc;border:1px solid var(--border);border-radius:10px;padding:8px 10px;cursor:pointer}
@media (max-width:760px){
  .carousel img{height:70vh;max-height:520px}
  .controls{gap:12px;padding:0 12px}
  .ctrl{padding:10px 12px;font-size:18px}
}

/* ---------- Cartes hover générique ---------- */
.card{transition:transform .15s ease, box-shadow .2s ease}
.card:hover{transform:translateY(-2px); box-shadow:0 8px 22px rgba(0,0,0,.06)}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--border);margin-top:36px;padding:18px 0;color:var(--muted);font-size:13px}


 

 
/* ===== AMÉNAGEMENTS : services super lisibles, surtout mobile ===== */
.theme-amenagement .section.services { padding-top: 32px; }

.theme-amenagement .service-card{
  display:flex; align-items:center; gap:20px;
  margin:24px 0; padding:18px;
  background:#fff; border:1px solid var(--border); border-radius:16px;
  border-left:6px solid var(--accent);
  transition:transform .15s ease, box-shadow .2s ease;
}
.theme-amenagement .service-card:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(16,185,129,.12); }
.theme-amenagement .service-card img{
  width:180px; height:130px; object-fit:cover; border-radius:12px; flex-shrink:0;
}
.theme-amenagement .service-card h3{ font-size:22px; margin:0 0 6px; }
.theme-amenagement .service-card p{ margin:0; }

/* Badges “mise en avant” */
.badge{
  display:inline-block; font-size:12px; padding:5px 10px; border-radius:999px;
  background:#e8fff6; color:#065f46; border:1px solid rgba(16,185,129,.35);
  margin-top:8px;
}
/* ===== Bloc promo piscine (accueil) ===== */
.promo {
  background: url("fondpromo1.png") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* === Version photo claire : voile doux pour lisibilité === */
.promo::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.10)); /* voile sombre léger */
  backdrop-filter: none; /* retire l’éclaircissement */
  z-index:0;
}



.promo-text {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.promo h2 {
  font-size: clamp(30px, 4.8vw, 46px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.promo .price {
  font-size: clamp(28px, 4vw, 38px);
  color: #00c2ff;
  font-weight: 700;
  margin: 6px 0 16px 0;
}

.promo .desc {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.promo .btn {
  background: #00a3d7;
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 14px;
  transition: background 0.3s;
}
.promo .btn:hover {
  background: #008cb8;
}

/* ===== Version mobile ===== */
@media (max-width: 700px) {
  .promo {
    padding: 70px 16px;
    border-radius: 0;
  }
  .promo h2 {
    font-size: 24px;
    line-height: 1.2;
  }
  .promo .price {
    font-size: 22px;
    color: #00c2ff;
  }
  .promo .desc {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 16px;
  }
}


.promo p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.promo .btn {
  background: #00a3d7;
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 14px;
  transition: background 0.3s;
}
.promo .btn:hover {
  background: #007fa8;
}

/* Sur mobile : moins haut mais lisible */
@media (max-width: 700px) {
  .promo { padding: 60px 16px; }
  .promo p { font-size: 16px; }
}

/* ----- MOBILE : cartes pleine largeur, visuel GRAND, texte + gros ----- */
@media (max-width: 740px){
  .theme-amenagement .service-card{
    flex-direction:column; text-align:center; gap:16px;
    padding:28px 20px; margin:28px 0; border-radius:20px;
    background: linear-gradient(180deg,#ffffff 0%, #f0fdf4 100%);
    box-shadow:0 14px 34px rgba(16,185,129,.12);
    border-left-width:8px;
  }
  .theme-amenagement .service-card img{
    width:100%; height:320px; border-radius:14px;
  }
  .theme-amenagement .service-card h3{ font-size:26px; line-height:1.2; }
  .theme-amenagement .service-card p{ font-size:17px; line-height:1.6; }
  .theme-amenagement .badge{ font-size:13px; padding:6px 12px; }
}
@media (max-width: 760px){
  .pack{ border-left:6px solid var(--accent); border-radius:18px; }
  .pack h3{ font-size:24px; }
  .pack .price{ font-size:20px; }
}
/* ==================== THEME PISCINE ==================== */

/* ==== Thème piscine avec fond semi-transparent ==== */
.theme-piscine body {
  background: url("Bord de piscine ensoleillé.png") center/cover fixed no-repeat;
  position: relative;
}

/* Ajout du voile translucide bleu clair par-dessus la photo */
.theme-piscine body::before {
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(240, 248, 255, 0.75); /* bleu très clair */
  backdrop-filter: brightness(1.05);     /* adoucit un peu la photo */
  z-index: -1;
}

/* Couleurs spécifiques piscine */
.theme-piscine {
  --accent: #0099cc;   /* bleu eau */
  --accent2: #c49a6c;  /* brun bois */
}

/* Boutons bleus */
.theme-piscine .btn {
  background: var(--accent);
  color: #fff;
}
.theme-piscine .btn.secondary {
  background: #e0f7ff;
  color: #004d66;
}
.theme-piscine .btn:hover {
  filter: brightness(0.95);
}

/* Titres soulignés bleu */
.theme-piscine .section h2::after {
  background: var(--accent);
}


/* Pack piscine : liseré bleu + ombre douce */
.theme-piscine .pack {
  border-left: 5px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,153,204,0.1);
}

/* Hero piscine : bleu profond + lumière dorée */

.hero-piscine h1 {
  position: relative;
  font-size: clamp(30px,5vw,44px);
  margin:0 0 12px;
  z-index:1;
}
.hero-piscine p {
  position: relative;
  z-index:1;
  font-size:18px;
}
/* ==================== SECTION POURQUOI - THEME PISCINE ==================== */

/* Titre principal et sous-ligne en bleu */
.theme-piscine .section h2 {
  color: #004d66; /* bleu profond */
}

.theme-piscine .section h2::after {
  background: var(--accent); /* bleu eau */
}

/* Icônes ou SVG */
.theme-piscine .card svg,
.theme-piscine .icon {
  color: var(--accent);
  stroke: currentColor;
}

/* Texte ou petits éléments d’accentuation */
.theme-piscine strong,
.theme-piscine a:hover {
  color: var(--accent2); /* brun bois */
}

/* Bordures des cartes / encadrés */
.theme-piscine .card {
  border-left: 4px solid var(--accent2); /* brun bois */
  box-shadow: 0 6px 18px rgba(0,153,204,0.08); /* halo bleu doux */
}

/* Survol */
.theme-piscine .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,153,204,0.15);
}
.theme-piscine .section.alt {
  background: linear-gradient(180deg, #fdfcfb 0%, #f2ede6 100%);
}
/* ===== Enlever la bande blanche du header sur desktop seulement ===== */
@media (min-width: 900px){
  /* header & barre du haut transparents */
  header,
  .topbar{
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
  }

  /* s'assure que rien n'injecte un fond blanc autour du logo */
  header .brand,
  header .brand img{
    background: transparent !important;
  }

  /* nav propre sur fond photo */
  nav a{
    background: transparent;
  }
  nav a:hover{
    background: rgba(255,255,255,0.12);         /* hover discret sur fond image */
    border: 1px solid rgba(255,255,255,0.18);   /* optionnel : petit liseré */
  }
}

/* (optionnel) petit espacements plus compacts sur desktop */
@media (min-width: 900px){
  .topbar{ padding-top: 8px; padding-bottom: 8px; }
}
/* ===== Bloc mise en avant Piscine ===== */
.highlight-piscine {
  background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 60px 0;
}

.promo-piscine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.promo-text {
  flex: 1;
  min-width: 300px;
}

.promo-text h2 {
  color: #0099cc; /* bleu piscine */
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 12px;
}

.promo-text p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #0b0f10;
}

.promo-img {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.promo-img img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

/* version mobile : pile + recentrée */
@media(max-width: 700px){
  .promo-piscine {
    flex-direction: column;
    text-align: center;
  }
  .promo-text h2 {
    font-size: 24px;
  }
  .promo-img img {
    width: 100%;
    max-width: 420px;
  }
}
.promo {
  background: url("./fondpromo1.png") center/cover no-repeat !important;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  min-height: 360px;
}
/* ===== Options piscines ===== */
.options-grid{
  display:grid; gap:16px;
}
@media(min-width:900px){
  .options-grid{ grid-template-columns: repeat(4,1fr); }
}
.option-card{
  background:#fff; border:1px solid var(--border); border-left:5px solid var(--accent);
  border-radius:16px; padding:16px; box-shadow:0 8px 22px rgba(0,0,0,.05);
  transition:transform .15s ease, box-shadow .2s ease;
}
.option-card:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(0,0,0,.08); }
.option-card h3{ margin:0 0 6px; font-size:18px; }
.option-card ul{ margin:0; padding-left:18px; line-height:1.55; }
.option-card li{ margin:6px 0; }
/* ===== Bloc Réassurance Piscines ===== */
.reassurance {
  background: linear-gradient(180deg, #eaf9ff 0%, #ffffff 100%);
  text-align: center;
  padding: 50px 20px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.reassurance h2 {
  font-size: clamp(26px, 4vw, 32px);
  color: var(--accent);
  margin-bottom: 24px;
}

.reassure-grid {
  display: grid;
  gap: 20px;
}
@media(min-width: 900px) {
  .reassure-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reassure-item {
  background: #ffffff;
  border: 1px solid rgba(0, 153, 204, 0.2);
  padding: 18px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reassure-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
/* INTRO COURTE + PHOTO */

.piscines-intro-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}

.piscines-intro-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.piscines-intro-text p {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.9;
}

.piscines-intro-list {
  margin-top: 1rem;
}

.piscines-intro-photo img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  object-fit: cover;
}

/* Responsive intro */
@media (max-width: 900px) {
  .piscines-intro-inner {
    grid-template-columns: 1fr;
  }
  .piscines-intro-photo {
    order: -1; /* la photo passe au-dessus du texte sur mobile */
  }
}

/* ===== CTA Estimation ===== */
.cta-estimation { text-align:center; }
.cta-wrap {
  background: linear-gradient(180deg,#eaf9ff 0%, #ffffff 100%);
  border:1px solid rgba(0,153,204,.18);
  border-radius:16px; padding:24px; max-width:900px; margin:0 auto;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}
.cta-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:12px; }
.btn.primary { background:#00a3d7; color:#fff; }
.btn.primary:hover { filter:brightness(.95); }
.btn.secondary { background:#f3f4f6; color:#0b0f10; }

/* ===== Bouton flottant appel (mobile) ===== */
.call-float{
  display:none;
}
@media (max-width: 700px){
  .call-float{
    display:block; position:fixed; right:16px; bottom:16px; width:58px; height:58px;
    border-radius:50%; background:#10b981; color:#fff; font-size:24px; line-height:58px; text-align:center;
    box-shadow:0 10px 26px rgba(0,0,0,.22); z-index:60;
  }
}

/* ===== FAQ ===== */
.faq .faq-list { max-width:900px; margin:12px auto 0; }
.faq details { background:#fff; border:1px solid var(--border); border-left:4px solid var(--accent); border-radius:12px; padding:14px 16px; margin:10px 0; }
.faq summary { cursor:pointer; font-weight:600; list-style:none; }
.faq summary::-webkit-details-marker { display:none; }
.faq details[open] { box-shadow:0 10px 26px rgba(0,0,0,.06); }

/* ===== Boost lecture mobile sur les packs ===== */
@media (max-width: 760px){
  .pack { padding:18px; border-radius:16px; box-shadow:0 8px 22px rgba(0,0,0,.06); }
  .pack h3 { font-size:20px; line-height:1.25; }
  .pack .price { font-size:18px; margin-top:10px; }
  .pack ul { font-size:16px; line-height:1.55; }
}
/* Mini pop-up estimation */
#popup-estimation.hidden { display:none; }
#popup-estimation{
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.35); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 18px;
}
#popup-estimation .popup-card{
  width: 100%; max-width: 520px;
  background:#fff; border:1px solid var(--border);
  border-radius:16px; padding:20px 18px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  text-align: center;
}
#popup-estimation .popup-card h3{ margin: 0 0 6px; }
#popup-estimation .popup-card p{ margin: 0 0 14px; }
#popup-estimation .popup-close{
  position:absolute; right: 10px; top: 6px;
  border:0; background:transparent; font-size: 26px; cursor:pointer; line-height:1;
}
@media (max-width: 640px){
  #popup-estimation .popup-card{ padding:18px 14px; border-radius:14px; }
  #popup-estimation .popup-card h3{ font-size: 18px; }
  #popup-estimation .popup-card p{ font-size: 15px; }
  #popup-estimation .btn{ display:block; width:100%; }
}
/* HERO Piscine lumineux (texte noir) */
.hero-piscine{
  position: relative;
  background: url("fond-hero-piscine.jpg.png") center/cover no-repeat;
  /* voile très léger pour uniformiser et garder le texte lisible en NOIR */
  isolation: isolate;
}
.hero-piscine::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(255,255,255,0.62); /* blanc translucide: clair + lisible */
  z-index: -1;
}
.hero-piscine .hero-piscine__inner{
  padding: 84px 16px 72px;
}
.hero-piscine h1{
  margin:0 0 8px;
  font-size: clamp(28px, 5vw, 44px);
  color:#0b0f10;           /* texte sombre */
  text-shadow: 0 1px 2px rgba(255,255,255,.35); /* petit boost de contraste */
}
.hero-piscine p{
  max-width: 820px;
  font-size: clamp(16px, 2.2vw, 18px);
  color:#0b0f10;
}
.hero-piscine__cta{
  display:flex; gap:12px; flex-wrap:wrap; margin-top:16px;
}

/* Mobile : hero plus compact, boutons full width si besoin */
@media (max-width:700px){
  .hero-piscine .hero-piscine__inner{ padding: 64px 14px 56px; }
  .hero-piscine__cta .btn{ flex:1 1 auto; }
}
/* ===== HERO PISCINE — bascule en texte BLANC ===== */
.hero-piscine h1,
.hero-piscine p {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* renforce la lisibilité */
}

/* Boutons CTA sur fond image : version contrastée */
.hero-piscine__cta .btn.primary {
  background: #00a3d7;
  color: #ffffff;
}
.hero-piscine__cta .btn.secondary {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  backdrop-filter: blur(6px);
}
.hero-piscine__cta .btn.secondary:hover {
  background: rgba(255,255,255,0.3);
}
/* ===== MOBILE FIX: centrage + pleine largeur (≤700px) ===== */
@media (max-width:700px){
  /* Conteneur confortable */
  .container{ max-width:100%; padding:0 14px; }

  /* Hero piscine centré */
  .hero-piscine .hero-piscine__inner{ text-align:center; }

  /* Titres & paragraphes centrés par défaut en mobile */
  .section h1, .section h2, .section p{ text-align:center; }

  /* Cartes/blocs en pleine largeur et centrés visuellement */
  .pack, .card, .cta-wrap, .promo, .option-card, .reassurance, .faq .faq-list{
    width:100%;
    margin-left:auto; margin-right:auto;
  }

  /* Grilles en une colonne */
  .grid, .packs, .options-grid, .reassure-grid{ 
    display:grid; grid-template-columns:1fr; gap:16px; 
  }

  /* Listes: lisibilité => reste aligné à gauche à l'intérieur */
  .pack ul, .option-card ul, .faq .faq-list{ 
    text-align:left; 
    margin-left:auto; margin-right:auto;
  }

  /* Boutons CTA côte à côte puis plein écran si besoin */
  .cta-actions{ justify-content:center; }
  .cta-actions .btn{ flex:1 1 auto; min-width:170px; }

  /* Nav centrée (si utile) */
  nav{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
}
.section-formules {
  padding: 4rem 0;
  background: #f7f7f7;
}

.section-formules h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.section-formules .section-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.6;
}

.formules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.formule-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.formule-header h3 {
  font-size: 1.6rem;
  margin: 0.4rem 0;
}

.formule-size {
  font-size: 0.95rem;
  opacity: 0.7;
}

.formule-badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.formule-badge-highlight {
  border: none;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
}

.formule-list {
  margin: 1.4rem 0 1.6rem;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.formule-price {
  font-size: 1.15rem;
  font-weight: 600;
}

.formule-price-htva {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.1rem;
}

.formule-note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.75;
}
/* OVERRIDE ANCIEN FOND PISCINE GLOBAL */

/* On neutralise tout fond "thème piscine" hérité de styles.css */
html.theme-piscine,
html.theme-piscine body {
  background: #f4f4f5 !important;  /* même fond que .page-piscines */
}

/* Header propre, fond blanc */
html.theme-piscine header {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* La barre avec le logo reste transparente pour laisser voir le header blanc */
html.theme-piscine .topbar {
  background: transparent !important;
}
/* ---- PALETTE LUXE LC CREATION ---- */

:root {
  --lc-gold: #d4af37;               /* doré principal */
  --lc-gold-soft: rgba(212,175,55,0.22);
  --lc-night: #020617;
}

/* Fond général propre pour le thème piscine */
html.theme-piscine,
html.theme-piscine body {
  background: #f4f4f5 !important;
}

/* Header propre + léger soulignement doré */
html.theme-piscine header {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

html.theme-piscine .topbar {
  background: transparent !important;
}

/* Lien "Piscines bois" mis en avant en doré dans le menu */
html.theme-piscine .topbar nav a[href="./piscines.html"] {
  position: relative;
  color: var(--lc-gold) !important;
  font-weight: 600;
}

html.theme-piscine .topbar nav a[href="./piscines.html"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(212,175,55,0.05),
    var(--lc-gold),
    rgba(212,175,55,0.05)
  );
}
/* CTA PRINCIPAUX (boutons) */

.btn-primary {
  background: linear-gradient(135deg, var(--lc-gold), #f6e1a4);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.85);
}

/* Liens "voir projet" / doré discret */

.link-inline {
  color: var(--lc-gold);
}

.link-inline:hover {
  text-decoration: underline;
}
/* TITRES DE SECTIONS */

.piscines-section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.piscines-section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 68px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(212,175,55,0.05),
    var(--lc-gold),
    rgba(212,175,55,0.05)
  );
}
/* PACKS / FORMULES : ACCENT DORE */

.formule-card {
  position: relative;
}

/* Liseré fin sur le haut des cartes */
.formule-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(212,175,55,0),
    var(--lc-gold-soft),
    rgba(212,175,55,0)
  );
}

/* Badge "Best-seller" plus premium */
.formule-badge-highlight {
  background: #111827;
  color: #f9fafb;
  border: 1px solid var(--lc-gold-soft);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.6);
}

/* Prix mis légèrement en avant */
.formule-price strong {
  color: var(--lc-gold);
  letter-spacing: 0.02em;
}

.formule-price-htva {
  font-style: italic;
}
/* Cards plus sobres et pro */

.piscines-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

/* Légère surbrillance au survol sur desktop */
@media (hover:hover) {
  .piscines-card:hover,
  .formule-card:hover,
  .piscines-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    transition: all 0.18s ease-out;
  }
}
/* --- Amélioration lisibilité smartphone (home) --- */
@media (max-width: 640px) {
  /* Base texte plus grand */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem;
  }

  p,
  li {
    font-size: 1rem;
  }

  /* Logo plus visible */
  header .brand img {
    max-height: 54px;
  }

  /* Sections qui respirent un peu plus */
  main section {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Images de contenus plus larges et lisibles */
  main img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
  }
}
/* --- Boutons vers la page piscines sur la home --- */
main a[href$="piscines.html"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #d4af37, #f6e1a4);
  color: #111827;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  border: none;
  transition: all 0.18s ease-out;
}

main a[href$="piscines.html"]:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

/* Sur smartphone : bouton bien large et confortable */
@media (max-width: 640px) {
  main a[href$="piscines.html"] {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.95rem 1.8rem;
  }
}
/* ===========================
   BOOST MOBILE (HOME & GLOBAL)
   =========================== */
@media (max-width: 640px) {

  /* Base : texte plus grand partout */
  body {
    font-size: 17px;        /* avant 14–15px : on monte clairement */
    line-height: 1.7;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.4rem;
  }

  p,
  li {
    font-size: 1.05rem;
  }

  /* Logo plus visible en haut de page */
  header .brand {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  header .brand img {
    max-width: 280px;   /* tu peux monter à 320 si tu veux encore plus grand */
    width: 80%;
    height: auto;
  }

  /* Sections qui respirent */
  main section {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Hero de la page principale (titre + texte d’intro) */
  .hero,
  .hero-main,
  .hero-home {
    padding: 2.8rem 1.8rem 2.4rem;
    text-align: center;
  }

  .hero h1,
  .hero-main h1,
  .hero-home h1 {
    font-size: 2.6rem;
  }

  .hero p,
  .hero-main p,
  .hero-home p {
    font-size: 1.1rem;
    max-width: 34rem;
    margin-inline: auto;
  }

  /* Boutons (dont celui vers les piscines) bien larges et lisibles */
  .btn,
  .btn-primary,
  .btn-secondary,
/* =========================================
   SUPER BOOST MOBILE POUR TOUT SAUF PISCINES
   ========================================= */
@media (max-width: 640px) {

  /* On cible toutes les pages QUI NE SONT PAS la page piscine */
  html:not(.theme-piscine) body {
    font-size: 18px;           /* gros boost */
    line-height: 1.8;
  }

  html:not(.theme-piscine) h1 {
    font-size: 2.9rem;
    line-height: 1.2;
  }

  html:not(.theme-piscine) h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  html:not(.theme-piscine) h3 {
    font-size: 1.5rem;
  }

  html:not(.theme-piscine) p,
  html:not(.theme-piscine) li {
    font-size: 1.1rem;
  }

  /* Logo plus gros sur toutes les pages sauf piscines */
  html:not(.theme-piscine) header .brand {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  html:not(.theme-piscine) header .brand img {
    max-width: 320px;
    width: 90%;
    height: auto;
  }

  /* Sections de contenu qui respirent un peu plus */
  html:not(.theme-piscine) main section {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Hero de la page d'accueil (et autres si tu as .hero/.hero-main) */
  html:not(.theme-piscine) .hero,
  html:not(.theme-piscine) .hero-main,
  html:not(.theme-piscine) .hero-home {
    padding: 3rem 1.8rem 2.6rem;
    text-align: center;
  }

  html:not(.theme-piscine) .hero h1,
  html:not(.theme-piscine) .hero-main h1,
  html:not(.theme-piscine) .hero-home h1 {
    font-size: 3rem;
  }

  html:not(.theme-piscine) .hero p,
  html:not(.theme-piscine) .hero-main p,
  html:not(.theme-piscine) .hero-home p {
    font-size: 1.15rem;
    max-width: 34rem;
    margin-inline: auto;
  }

  /* Boutons plus massifs (dont bouton vers piscines sur la home) */
  html:not(.theme-piscine) .btn,
  html:not(.theme-piscine) .btn-primary,
  html:not(.theme-piscine) .btn-secondary,
  html:not(.theme-piscine) main a[href$="piscines.html"] {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 999px;
  }

  /* Et sur smartphone : bouton piscines en pleine largeur */
  html:not(.theme-piscine) main a[href$="piscines.html"] {
    width: 100%;
    justify-content: center;
  }

  /* Cartes / blocs plus confortables */
  html:not(.theme-piscine) .card,
  html:not(.theme-piscine) .service-card,
  html:not(.theme-piscine) .bloc,
  html:not(.theme-piscine) .section-box {
    padding: 1.6rem 1.4rem;
  }

  /* Images de réalisations / galerie bien visibles */
  html:not(.theme-piscine) .gallery img,
  html:not(.theme-piscine) .realisations img,
  html:not(.theme-piscine) .realisation img {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }
}
