:root{
  --accent: #28D3B3;
  --text: #000000;
  --bg: #ffffff;
  --muted: #F7F7F7;
  --max-width: 1280px;
  --radius: 12px;
  color-scheme: light dark;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;overflow-y:scroll;}
body{
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  margin:0;
  background: transparent;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}

/* ===============================
   HEADER / NAV
=============================== */
.header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  z-index:1000;
  border-bottom:1px solid #eee;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:74px;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}
.logo img{
  height:52px;
  width:auto;
  display:block;
  background:#fff;
  border-radius:8px;
  padding:4px;
  object-fit:contain;
}
.nav{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  font-size:14px;
  padding:8px 8px;
  border-radius:8px;
}
.nav a:hover{background:var(--muted);}
.cta{
  background:var(--accent);
  color:#fff;
  padding:8px 12px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.auth-btn{
  font-size:14px;
  color:var(--text);
  text-decoration:none;
  padding:6px 12px;
  border-radius:6px;
  transition:background 0.3s;
  font-weight:500;
}
.auth-btn:hover{
  background:var(--muted);
}
.menu-toggle{
  display:none;
  background:none;
  border:0;
  font-size:22px;
}

/* ===============================
   HERO
=============================== */
.hero{
  padding:80px 0;
  text-align:center;
}
.hero h1{
  font-size:34px;
  margin:0 0 12px;
}
.hero p{
  font-size:18px;
  margin:0 0 18px;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
  color: #222;
}
.hero .hero-actions {
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}
.hero .hero-actions .cta {
  display:inline-block;
  padding:10px 20px;
  text-align:center;
  width:auto;
}

/* ===============================
   SECTIONS
=============================== */
.section{
  padding:56px 0;
}
.section.alt{background:transparent;}
.section h2{text-align:center; font-size:24px; margin-bottom:18px;}
.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:18px;
}
.card{
  background:#fff;
  border-radius:12px;
  padding:18px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  text-align:center;
}
.card p{margin:10px 0 0;}

/* ===============================
   CARDS / SERVICES (galerie sous cartes)
=============================== */
.card-with-gallery {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: center;
}

.card-with-gallery p {
  margin: 10px 0;
}

.card-gallery {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.card-gallery img {
  width: 100%;
  max-width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===============================
   CARDS TARIFS
=============================== */
.card-tarif{
  background:#fff;
  border-radius:12px;
  padding:18px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  text-align:center;
}
.card-tarif p{margin:0; font-weight:500; line-height:1.6;}

/* ===============================
   GALLERY
=============================== */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.gallery-grid img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:8px;
  cursor:pointer;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover{
  transform:scale(1.03);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

/* Lightbox */
#lightbox{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  z-index:2000;
  padding:10px;
}

/* Image */
#lightbox img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:12px;
}

/* Flèches */
#lightbox button.prev,
#lightbox button.next {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:60px;
  height:60px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.8);
  color:#000;
  font-size:30px;
  cursor:pointer;
  display:flex;
  justify-content:center;
  align-items:center;
  transition:background 0.2s;
  z-index:2010;
}
#lightbox button.prev:hover,
#lightbox button.next:hover{
  background:rgba(255,255,255,1);
}
#lightbox button.prev{left:20px;}
#lightbox button.next{right:20px;}

/* Croix */
#lightbox .close{
  position:absolute;
  top:20px;
  right:20px;
  width:50px;
  height:50px;
  border-radius:50%;
  background:rgba(255,255,255,0.8);
  color:#000;
  font-size:28px;
  font-weight:bold;
  text-align:center;
  line-height:50px;
  cursor:pointer;
  z-index:2010;
  transition:background 0.2s;
}
#lightbox .close:hover{
  background:rgba(255,255,255,1);
}

/* ===============================
   FORM
=============================== */
.form-row{display:flex; gap:12px;}
.form-row .field{flex:1;}
input:not([type="checkbox"]):not([type="radio"]), textarea{
  width:100%;
  padding:12px;
  border:1px solid #e6e6e6;
  border-radius:8px;
  font-size:14px;
  resize:vertical;
}
input[type="checkbox"],
input[type="radio"]{
  width:auto;
  accent-color:var(--accent);
}
button[type="submit"]{
  background:var(--accent);
  color:#fff;
  padding:12px 16px;
  border:0;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
}

/* ===============================
   FOOTER
=============================== */
.footer {
  padding: 28px 0;
  border-top: 1px solid #eee;
  font-size: 14px;
  background: #fff;
}

.footer .foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  flex: 1;
  min-width: 280px;
  white-space: nowrap;
}

.footer-right {
  flex: 2;
  min-width: 220px;
  text-align: right;
}

.footer-right a {
  text-decoration: none;
  color: var(--text);
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-right .footer-contacts {
  margin-bottom: 8px;
}

.footer-right .socials {
  margin-bottom: 6px;
}

.footer-right .socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  text-decoration: none;
  color: var(--text);
}

.footer-right .socials a:first-child {
  margin-left: 0;
}

.footer-right .socials a svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: var(--text);
}

.footer-right .footer-links {
  margin-top: 6px;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 900px){
  .card-grid{grid-template-columns:repeat(2,1fr);}
  .gallery-grid{grid-template-columns:repeat(3,1fr);}
  .services-columns{grid-template-columns:1fr;} /* services deviennent lignes */
}
@media (max-width:700px){
  .logo img{height:44px;}
  .nav{display:none;}
  .menu-toggle{display:block;}
  .header-inner{height:64px;}
  .hero h1{font-size:26px;}
  .card-grid{grid-template-columns:1fr;}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .form-row{flex-direction:column;}
}

/* ===============================
   UTILITIES
=============================== */
.center{text-align:center;}
.small{font-size:13px; color:#555;}

/* ===============================
   RANDOM PHOTOS SECTION
=============================== */
.random-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 40px;
}
.random-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 900px) {
  .random-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .random-photos {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   SERVICES — AJUSTEMENTS SPÉCIFIQUES
=============================== */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.services-image-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}
.services-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.rayon-action-wrapper {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}
.rayon-action-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.services-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 18px;
  margin-top: 18px;
}

.service-column {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 18px;
}

.card-members {
  background-color: #FF6F61;
  color: white;
}
.card-members p,
.card-members strong {
  color: white;
}

/* Responsive Services */
@media(max-width:900px){
  .services-columns {grid-template-columns:1fr;}
}

/* ===============================
   BANDEAU ANIMÉ SERVICES (index)
=============================== */
.services-banner {
  background: linear-gradient(135deg, #28D3B3 0%, #1fbd9e 100%);
  border-radius: 16px;
  padding: 32px 36px 18px;
  margin-top: 36px;
  margin-bottom: 36px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.banner-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
}

.banner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-align: center;
  flex: 1;
  opacity: 0;
  transform: translateY(15px);
  animation: bannerFadeIn 0.5s ease forwards;
}
.banner-item-1 { animation-delay: 0.1s; }
.banner-item-2 { animation-delay: 0.3s; }
.banner-item-3 { animation-delay: 0.5s; }

.banner-icon {
  font-size: 36px;
  line-height: 1;
}

.banner-item strong {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.banner-detail {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
}

.banner-price {
  display: inline-block;
  background: #FF6F61;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-top: 4px;
}
.banner-price small {
  font-weight: 400;
  font-size: 12px;
}

.banner-price-alt {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-top: 2px;
}

.banner-separator {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.banner-security {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.25);
  overflow: hidden;
  white-space: nowrap;
}

.banner-security-text {
  display: inline-block;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  animation: bannerScroll 12s linear infinite;
  padding-left: 100%;
}

@keyframes bannerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bannerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Responsive Bandeau */
@media (max-width: 700px) {
  .services-banner {
    padding: 16px 16px 10px;
  }
  .banner-items {
    flex-direction: column;
    gap: 10px;
  }
  .banner-separator {
    width: 60%;
    height: 1px;
  }
  .banner-icon {
    font-size: 22px;
  }
  .banner-item strong {
    font-size: 14px;
  }
  .banner-price {
    font-size: 12px;
    padding: 2px 10px;
  }
}

/* ===============================
   FOND MOTIF (pattern sur toutes les pages)
=============================== */
body {
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('../images/pattern-bg.png');
  background-size: 400px;
  background-repeat: repeat;
  z-index: -2;
}
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.88);
  z-index: -1;
}

/* ===============================
   DARK MODE
=============================== */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --bg: #1a1a1a;
    --muted: #252525;
  }

  body {
    background: var(--bg);
    color: var(--text);
  }
  body::before {
    background-image: url('../images/pattern-darkmode.png');
  }
  body::after {
    background: rgba(26, 26, 26, 0.88);
  }

  /* Tous les paragraphes, spans, divs, listes */
  p, span, li, td, th, label, legend, figcaption, blockquote,
  h1, h2, h3, h4, h5, h6 {
    color: var(--text);
  }

  a {
    color: var(--accent);
  }

  strong, b {
    color: var(--text);
  }

  /* Header */
  .header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: #333;
  }

  .nav a {
    color: var(--text);
  }
  .nav a:hover {
    background: #333;
  }

  .logo {
    color: var(--text);
  }

  .logo img {
    background: #fff !important;
  }

  /* Cards */
  .card {
    background: #252525;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  }

  .card h3, .card p {
    color: var(--text);
  }

  /* Card-members garde ses couleurs coral */
  .card.card-members {
    background: #FF6F61 !important;
  }
  .card-members,
  .card-members p,
  .card-members strong {
    color: #fff;
  }

  /* Sections */
  .section.alt {
    background: transparent;
  }

  .section h2 {
    color: var(--text);
  }

  /* Footer */
  .footer {
    background: var(--bg);
    border-top-color: #333;
    color: var(--text);
  }

  .footer strong {
    color: var(--text);
  }

  .footer-right a,
  .footer-right .socials a,
  .footer-left a {
    color: var(--text);
  }

  .footer-right .socials a svg {
    fill: var(--text);
  }

  .small {
    color: #999;
  }

  /* Formulaires */
  input, textarea, select {
    background: #2a2a2a !important;
    color: var(--text) !important;
    border-color: #444 !important;
  }

  input::placeholder, textarea::placeholder {
    color: #888 !important;
  }

  button[type="submit"] {
    color: #fff;
  }

  .auth-btn {
    color: var(--text);
  }
  .auth-btn:hover {
    background: #333;
  }

  /* Lightbox */
  #lightbox {
    background: rgba(0,0,0,0.92);
  }

  /* Pages avec styles inline (avis, inscription, client_*) */
  .form-container,
  .form-section,
  .review-card,
  .reviews-container,
  .stats-card {
    background: #252525 !important;
    color: var(--text) !important;
  }

  .page-header {
    background: linear-gradient(135deg, #252525 0%, #333 100%) !important;
  }

  .page-header p {
    color: #999 !important;
  }

  .main-content {
    background: transparent;
  }

  .info-box {
    background: #2a2a2a !important;
    border-color: var(--accent) !important;
    color: var(--text) !important;
  }

  /* Hero section — texte lisible */
  .hero p, .hero .center {
    color: var(--text);
  }

  /* Bannière — garde ses couleurs accent/coral */
  .services-banner strong,
  .services-banner span {
    color: #fff;
  }

  .banner-price {
    color: #fff;
  }
}
