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

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  margin:0;
  background:var(--bg);
  -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;
}
.nav{
  display:flex;
  gap:16px;
  align-items:center;
}
.nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  padding:8px 10px;
  border-radius:8px;
}
.nav a:hover{background:var(--muted);}
.cta{
  background:var(--accent);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
}
.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:var(--muted);}
.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);
  gap: 18px;
  margin-top: 18px;
}

.service-column {
  display: flex;
  flex-direction: column;
  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;}
}
