/* === FOND D'ÉCRAN DÉFILANT === */
#bg-slideshow{
  position:fixed;
  inset:0;
  z-index:0;               /* base du stack */
  overflow:hidden;
  pointer-events:none;
}
#bg-slideshow .bg{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 2s ease-in-out;
  filter:brightness(1.08) contrast(1.15) saturate(1.2);
}
#bg-slideshow .bg.active{ opacity:1; }
body > *:not(#bg-slideshow){ position:relative; z-index:2; }

/* template/style.css — thème sombre moderne et lumineux pour AB Piscine */
:root {
  --fg: #e8f3ff;
  --muted: #a6bfd4;
  --card-bg: rgba(255, 255, 255, 0.08);
  --line: #1b2838;
  --blue: #2b9cff;
  --green: #20c7a4;
  --gradient: linear-gradient(90deg, var(--blue), var(--green));
  --radius: 14px;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--fg);
  background: #000; /* fallback */
  /*background: url('../template/bg.png') no-repeat center center fixed;*/
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Effet de lumière centrale */
/* Effet lumineux central + fond plus contrasté */
body::before{
  content:"";
  position:fixed;
  inset:0;
  /* pas d'image ici sinon ça recouvre le slideshow */
  background:none;
  z-index:-1;              /* passe derrière le slideshow */
}
body::after{
  /* si tu veux un voile sombre très léger aux bords, sinon enlève */
  content:"";
  position:fixed;
  inset:0;
  background: radial-gradient(1200px 600px at 50% 10%, transparent 0 60%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
  z-index:1;
}


/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand { font-weight:700; font-size:30px; letter-spacing:.3cap; color:#fff; position:relative; text-decoration:none; display:inline-block; }
.brand span{ background:var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent; position:relative; }
.brand::after{ content:""; position:absolute; left:0; bottom:-6px; width:100%; height:2px; background:linear-gradient(90deg,#2b9cff,#20c7a4); opacity:.7; border-radius:2px; }

.brand-suite{
  font-weight:700; font-size:21px; letter-spacing:.2cap; display:inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-suite span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.nav a {
  font-size: 20px;
  color: var(--muted);
  margin-left: 18px;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: 0.2s ease;
}
.nav a:hover,
.nav .active {
  background: var(--gradient);
  color: #fff;
}

/* Conteneur principal */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;  /* <— empile les enfants */
  justify-content: flex-start;
  align-items: stretch;
  gap: 24px;               /* espace entre lignes 1 et 2 */
  margin: 60px 0 40px;
  position: relative;
  z-index: 2;
}

/* Bloc de contenu lisible au centre */
.content-box {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px) brightness(1.3);
  color: #f4f8fc;
  padding: 50px 60px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  text-align: center;
}

/* Titres et textes */
h1, h2, h3 {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  margin-top: 0;
}
.subtitle {
  color: #d9e9f7;
  margin-bottom: 24px;
}

/* Boutons CTA */
.cta {
  display: inline-block;
  background: linear-gradient(90deg, #37b5ff, #27e0bb);
  color: #002531;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: 0.2s;
}
.cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Bouton "Contactez-nous" plus grand */
.cta-large {
  font-size: 18px;
  padding: 18px 36px;
  border-radius: 14px;
  background: linear-gradient(90deg, #37b5ff, #27e0bb);
  color: #002531;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  transition: 0.2s;
  display:inline-block;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.cta-large:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
}

/* Coordonnées sous le bouton */
.contact-info {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.contact-info p {
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.contact-info .icon {
  font-size: 26px;
  opacity: 0.85;
}
.contact-info a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 26px;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* Cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.card {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}
.card .body {
  padding: 16px 18px;
}
.card h3 {
  color: #ffffff;
  margin-top: 0;
}
.card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Footer */
.footer{
  position:relative;
  z-index:2;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,.05);
  text-align:center;
  padding:18px;
  color: var(--muted);
  font-size:14px;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  .content-box { padding: 28px 22px; }
  .wrap { flex-direction: column; gap: 10px; }
}

/* ========== LAYOUT HOME LISIBLE ========== */
/* ===== LIGNE 1 : 2 colonnes ===== */
.home-split{
  max-width:1200px;
  width: 90%;
  margin:60px auto 18px;       /* espace avec la ligne 2 */
  padding:0 20px;
  display:grid;
  grid-template-columns:minmax(380px,1.2fr) minmax(340px,1fr);
  gap:24px;
  align-items:stretch;          /* colonnes même hauteur */
  position:relative;
  z-index:2;
}
.pane{
  background:rgba(255,255,255,.26);
  color:#0d1b22;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  backdrop-filter:blur(6px) saturate(3.1);
  -webkit-backdrop-filter:blur(6px) saturate(3.1);
  padding:28px;
  display:flex;                 /* titres/texte/CTA bien espacés */
  flex-direction:column;
  gap:12px;
}
.pane h1{ margin:0; font-size:38px; line-height:1.15; color:#ffffff; }
.pane .subtitle{ margin:0 0 6px; color:#FFF; font-size: 18px; }
.cta{ white-space:nowrap; align-self:flex-start; }

/* Services (colonne 2) */
.services{
  list-style:none; margin:6px 0 0; padding:0;
  display:grid; gap:12px;
}
.service{
  background:rgba(255,255,255,.87);
  border:1px solid rgba(0,0,0,.05);
  border-radius:14px; padding:14px 16px;
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}
.service h3{ margin:0 0 6px; font-size:16px; color:#1a96d3; }
.service p{ margin:0; font-size:16px; color:#4a5d6a; }

/* ===== LIGNE 2 : Instagram en colspan=2 ===== */
.insta-section{
  max-width:1200px;
  margin:0 auto 40px;           /* sous la ligne 1 */
  padding:0 20px;
  position:relative;
  z-index:2;
  display:block;                /* garantit le bloc pleine largeur */
  clear:both;                   /* sécurité si un float traîne */
}
.insta-wrap{
  background:rgba(255,255,255,.26);
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  backdrop-filter:blur(6px) saturate(3.1);
  -webkit-backdrop-filter:blur(6px) saturate(3.1);
  padding:20px;
}
.insta-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:10px;
}

/* ===== Style "Instagram" plus impactant ===== */
.insta-head h2 {
  margin: 0;
  font-size: 28px; /* taille augmentée */
  font-weight: 700;
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af, #515bd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Icône Instagram avant le texte */
.insta-head h2::before {
  content: "";
  display: inline-block;
  width: 46px;
  height: 46px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M224,202.66A53.34,53.34,0,1,0,277.34,256,53.38,53.38,0,0,0,224,202.66Zm124.71-41a54,54,0,0,0-30.46-30.46c-21.08-8.41-71.14-6.49-94.25-6.49s-73.17-1.92-94.25,6.49a54,54,0,0,0-30.46,30.46c-8.41,21.08-6.49,71.14-6.49,94.25s-1.92,73.17,6.49,94.25a54,54,0,0,0,30.46,30.46c21.08,8.41,71.14,6.49,94.25,6.49s73.17,1.92,94.25-6.49a54,54,0,0,0,30.46-30.46c8.41-21.08,6.49-71.14,6.49-94.25S357.12,182.78,348.71,161.7ZM224,338a82,82,0,1,1,82-82A81.92,81.92,0,0,1,224,338Zm85.38-148.71a19.14,19.14,0,1,1,19.14-19.14A19.13,19.13,0,0,1,309.38,189.29Z"/></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M224,202.66A53.34,53.34,0,1,0,277.34,256,53.38,53.38,0,0,0,224,202.66Zm124.71-41a54,54,0,0,0-30.46-30.46c-21.08-8.41-71.14-6.49-94.25-6.49s-73.17-1.92-94.25,6.49a54,54,0,0,0-30.46,30.46c-8.41,21.08-6.49,71.14-6.49,94.25s-1.92,73.17,6.49,94.25a54,54,0,0,0,30.46,30.46c21.08,8.41,71.14,6.49,94.25,6.49s73.17,1.92,94.25-6.49a54,54,0,0,0,30.46-30.46c8.41-21.08,6.49-71.14,6.49-94.25S357.12,182.78,348.71,161.7ZM224,338a82,82,0,1,1,82-82A81.92,81.92,0,0,1,224,338Zm85.38-148.71a19.14,19.14,0,1,1,19.14-19.14A19.13,19.13,0,0,1,309.38,189.29Z"/></svg>');
  background-size: cover;
}

.insta-head a{ color:#fff; text-decoration:none; }
.insta-head a:hover{ text-decoration:underline; }

.ig-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.ig-item{
  display:block; border-radius:12px; overflow:hidden;
  background:#eef6fa; box-shadow:0 6px 14px rgba(0,0,0,.10);
}
.ig-item img{
  width:100%; height:100%; aspect-ratio:1/1; object-fit:cover; display:block;
}
.ig-badge{
  position:absolute; right:8px; bottom:8px;
  background:rgba(0,0,0,.6); color:#fff; font-size:12px;
  padding:4px 8px; border-radius:999px;
}
.ig-empty{
  grid-column:1 / -1; text-align:center; color:#4a5d6a;
  padding:28px 10px; border:1px dashed rgba(0,0,0,.10);
  background:rgba(255,255,255,.65); border-radius:12px;
}

/* ===== Responsive ===== */
@media (max-width:1024px){
  .home-split{ grid-template-columns:1fr; margin:40px auto 12px; }
  .ig-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:640px){
  .ig-grid{ grid-template-columns:repeat(2,1fr); }
  .pane h1{ font-size:30px; }
}

/* ===== Nos réalisations (scopé) ===== */
.realisations { max-width:1200px; margin:60px auto; padding:0 20px; position:relative; z-index:2; }
.realisations .pane {
  background: rgba(255,255,255,.26);
  color:#0d1b22;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  backdrop-filter:blur(6px) saturate(3.1);
  -webkit-backdrop-filter:blur(6px) saturate(3.1);
  padding:24px;
}
.realisations h1 {
  margin:0 0 14px; font-size:28px; color:#fff;
}
.realisations p.lead { margin:0 0 18px; color:#fff; }



/* ===== MODALE RÉALISATIONS ===== */
.rea-modal{
  position:fixed !important;
  inset:0;
  z-index:10000 !important;       /* au-dessus de tout */
  display:none;                   /* masquée par défaut */
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
}
.rea-modal[open]{ display:flex; }

.rea-dialog{
  position:relative;
  width:min(960px, 92vw);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
  background:#fff;
  color:#0d1b22;
}
.rea-media{ background:#000; }
.rea-media img{
  width:100%;
  height:auto;
  max-height:calc(100vh - 180px); /* évite le débordement sous footer/toptbar */
  object-fit:contain;
  display:block;
  background:#000;
}
.rea-content{ padding:16px 18px; }
.rea-content h3{ margin:0 0 8px; font-size:20px; }
.rea-content p{ margin:0; color:#394a54; }

.rea-close, .rea-prev, .rea-next{
  position:absolute; top:10px;
  background:rgba(0,0,0,.6);
  color:#fff; border:none; border-radius:10px;
  padding:8px 10px; cursor:pointer; font-size:14px; line-height:1;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.rea-prev{ left:10px; }
.rea-next{ right:60px; }
.rea-close{ right:10px; }
.rea-close:hover, .rea-prev:hover, .rea-next:hover{ background:rgba(0,0,0,.75); }




.rea-grid {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.rea-card {
  background: rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(0,0,0,.10);
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rea-card:hover { transform: translateY(-3px); box-shadow:0 12px 24px rgba(0,0,0,.14); }
.rea-thumb { aspect-ratio: 4/3; background:#eef6fa; }
.rea-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.rea-body { padding:10px 12px; }
.rea-title { margin:0; font-size:15px; color:#0d1b22; }
.rea-desc-small { margin:6px 0 0; color:#506470; font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ===== Modale ===== */


.rea-modal img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.rea-modal .caption {
  background: rgba(255,255,255,0.85);
  color: #0d1b22;
  padding: 14px 20px;
  margin-top: 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  max-width: 90vw;
}

.rea-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}


@media (max-width: 1024px){ .rea-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px){
  .rea-grid { grid-template-columns: repeat(2, 1fr); }
  .rea-dialog { width: 96vw; }
}

/* ===== CONTACT ===== */
.contact-section{
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.contact-section .pane{
  background: rgba(255,255,255,.26);
  color:#0d1b22;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  backdrop-filter:blur(6px) saturate(3.1);
  -webkit-backdrop-filter:blur(6px) saturate(3.1);
  padding:30px 36px;
  text-align:left;
}
.contact-section h1{
  margin:0 0 12px;
  font-size:32px;
  color:#fff;
  text-align:center;
}
.contact-section .lead{
  text-align:center;
  color:#eaf3fa;
  margin-bottom:30px;
  font-size:18px;
}

.contact-infos{
  text-align:center;
  margin-bottom:28px;
}
.contact-infos p{
  font-size:18px;
  color:#fff;
  margin:6px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.contact-infos a{
  color:#fff;
  text-decoration:none;
  font-weight:500;
}
.contact-infos a:hover{ text-decoration:underline; }

.form-group{
  margin-bottom:18px;
  display:flex;
  flex-direction:column;
}
.form-group label{
  margin-bottom:6px;
  font-weight:600;
  color:#fff;
}
.form-group input,
.form-group textarea{
  font-family:'Outfit', sans-serif;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.4);
  background:rgba(255,255,255,.85);
  color:#0d1b22;
  font-size:16px;
  resize:vertical;
}
.form-group input:focus,
.form-group textarea:focus{
  outline:none;
  border-color:#1a96d3;
  box-shadow:0 0 0 3px rgba(26,150,211,0.2);
}

.social-links{
  margin-top:30px;
  text-align:center;
}
.social-links .insta{
  background:linear-gradient(90deg,#f58529,#dd2a7b,#8134af,#515bd4);
  color:#fff;
}
.social-links .insta:hover{
  filter:brightness(1.1);
  transform:translateY(-3px);
}

/* ===== Mobile nav compact (≤ 640px) ===== */
@media (max-width: 640px) {
  /* barre du haut un peu plus fine */
  .topbar .wrap {
    padding: 8px 12px;
    gap: 10px;
    justify-content: space-between;
  }

  /* logo plus petit */
  .brand {
    font-size: 22px;
    letter-spacing: .08em;
  }
  .brand::after { bottom: -4px; height: 1.5px; }

  /* nav en une seule ligne, défilable si besoin */
  .nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;        /* Firefox */
  }
  .nav::-webkit-scrollbar { display: none; }  /* Chrome/Safari */

  /* liens plus compacts mais cliquables */
  .nav a {
    font-size: 16px;
    padding: 6px 10px;
    margin: 0;                    /* supprime le margin-left desktop */
    border-radius: 10px;
    line-height: 1;               /* pastille compacte */
  }

  /* pastille active plus discrète */
  .nav .active {
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }
}