/* ===========================================================
   RÉSINEPRO – STYLE PRINCIPAL (version multi-pages)
   -----------------------------------------------------------
   Structure :
   1. Variables et Reset
   2. Base et Typographie
   3. Layout global (Header, Footer)
   4. Composants (boutons, cartes, grilles, alertes, formulaire)
   5. Sections (Hero, Features, Gallery, FAQ)
   6. Responsive
=========================================================== */

:root {
  /* 🧱 Couleurs de base */
  --bg: #ffffff;              /* Fond principal : blanc pur */
  --bg-soft: #f9f9f9;         /* Fond secondaire : gris très clair */
  --card: #f5f5f5;            /* Fond des blocs / cartes */
  --border: #e5e5e5;          /* Bordures subtiles */

  /* 🖋 Couleurs de texte */
  --text: #111111;            /* Texte principal : noir profond */
  --muted: #555555;           /* Texte secondaire / gris moyen */

  /* ✨ Couleurs de marque */
  --brand: #ad9551;           /* Or premium – accent principal */
  --brand-hover: #c5ae69;     /* Or clair pour hover */
  --brand-2: #f1d97e;         /* Or pâle pour détails lumineux */

  /* ⚪ Couleurs neutres */
  --white: #ffffff;           /* Blanc pur */
  --black: #000000;           /* Noir pur */

  /* 🎨 Effets et design */
  --radius: 18px;             /* Arrondis généreux */
  --radius-sm: 10px;          /* Arrondis plus légers */
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Ombre douce pour un effet propre */
  --maxw: 1200px;             /* Largeur max du site */
  --transition: all 0.25s ease; /* Animation fluide */
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------------------
   2. BASE & TYPOGRAPHIE
------------------------------ */
html, body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand);
}

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

/* ------------------------------
   3. LAYOUT GLOBAL
------------------------------ */

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: conic-gradient(from 220deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  opacity: 0.9;
}

.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.menu-btn {
  display: none;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  color: var(--text);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--muted);
  text-align: center;
  margin-top: 60px;
}

/* ------------------------------
   4. COMPOSANTS
------------------------------ */

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #0b1223;
  border: 1px solid var(--border);
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
}

.btn:hover {
  background: var(--bg-soft);
}

.btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--white);
  font-weight: 700;
}
/* === BOUTONS HEADER (Connexion / Créer un compte) === */
.nav-links .btn {
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);              /* ✅ texte doré sur fond clair */
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  transition: var(--transition);
}

.nav-links .btn:hover {
  background: var(--brand);         /* ✅ fond doré au survol */
  color: var(--white);              /* ✅ texte bien visible (blanc) */
}

/* Pour le bouton "Créer un compte" principal */
.nav-links .btn.primary {
  background: var(--brand);
  color: var(--white);
  border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.nav-links .btn.primary:hover {
  background: var(--brand-hover);
  color: var(--white);
}


/* Grilles et cartes */
.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

.card .body {
  padding: 16px;
}

.card h3, .card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

/* Formulaire */
form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0b1223;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Alertes */
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35);
  margin-bottom: 16px;
}

.alert.error {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.4);
}

/* ------------------------------
   5. SECTIONS SPÉCIFIQUES
------------------------------ */

/* Section générique */
section {
  padding: 70px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(22px, 4vw, 34px);
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;          /* ✅ centre verticalement */
  justify-content: center;      /* ✅ centre horizontalement */
  min-height: 85vh;             /* ✅ prend presque tout l’écran */
  padding: 80px 20px;           /* ✅ espace haut/bas */
  text-align: center;           /* ✅ texte centré */
  background: url("assets/img/hero-bg.jpg") center/cover no-repeat;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* filtre sombre sur image */
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero .pill {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 60px; /* ✅ ajoute un espace sous les boutons */
}

.hero .btn {
  font-size: 1rem;
  padding: 12px 28px;
}

/* --- MEDIA --- */
.hero-media {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  background:
    radial-gradient(1200px 400px at -10% 0%, rgba(34,197,94,.15), transparent 70%),
    radial-gradient(1200px 400px at 110% 80%, rgba(6,182,212,.12), transparent 70%),
    linear-gradient(180deg, #0b1223, #0d1324);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .btn {
    font-size: 0.9rem;
    padding: 10px 22px;
  }
}


/* Gallery (réalisations) */
.gallery div {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
}

.faq-a {
  display: none;
  padding: 0 16px 16px;
  color: var(--muted);
}

/* ------------------------------
   6. RESPONSIVE
------------------------------ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 20px;
    top: 64px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }
}
/* Effet au survol du bouton principal – version dorée premium */
.btn.primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: none;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(173, 149, 81, 0.35); /* ✨ doré subtil */
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: var(--white);
}

/* --- Barre d'administration --- */
.admin-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white;
  font-size: 15px;
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.admin-bar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-bar a {
  color: white;
  margin-left: 16px;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.admin-bar a:hover {
  opacity: 0.8;
}

.admin-bar .logout {
  font-weight: bold;
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.alert {
  background: rgba(34,197,94,0.15);
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.alert.error {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
  color: #ef4444;
}
/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 2.5s ease;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

.slide .content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  max-width: 600px;
  animation: fadeUp 1s ease forwards;
}

.slide .content h2 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

.slide .content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #e2e8f0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
}

.slide .content .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.9s;
}

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

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 2.2rem;
  color: white;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.arrow:hover {
  background: rgba(255,255,255,0.5);
  color: var(--brand);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Dots */
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.dots span.active {
  background: var(--brand);
  transform: scale(1.2);
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 75vh; /* hauteur visible */
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 2s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
/* === FOOTER === */
.site-footer {
  background: #0b1223;
  color: #e5e7eb;
  font-size: 0.95rem;
  padding-top: 50px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h3 {
  color: var(--brand);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  background: #0a1020;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* === MODALE D’INACTIVITÉ === */
.session-warning {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.session-warning.visible {
  opacity: 1;
  pointer-events: all;
}

.session-modal {
  background: #fff;
  color: #111;
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.session-warning.visible .session-modal {
  transform: translateY(0);
}

.session-modal h3 {
  color: var(--brand);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.session-modal p {
  color: #333;
  margin-bottom: 20px;
  font-size: 1rem;
}

.session-modal .btn.primary {
  background: var(--brand);
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.session-modal .btn.primary:hover {
  background: var(--brand-hover, #059669);
}
/* === THEME CLAIR PREMIUM (Blanc / Or / Noir) === */

/* Base globale */
body {
  background: var(--bg);
  color: var(--text);
}

/* Header clair */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.nav a {
  color: var(--text);
}

.nav a:hover {
  color: var(--brand);
}

/* Boutons */
.btn {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--brand);
  box-shadow: none;
}

.btn:hover {
  background: var(--brand);
  color: var(--white);
}

.btn.primary {
  background: var(--brand);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn.primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

/* Inputs / Formulaires */
input, textarea, select {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  outline: none;
}

/* Hero clair */
.hero {
  background: var(--bg-soft);
  color: var(--text);
  text-align: center;
}

.hero::before {
  background: rgba(255,255,255,0.4);
}

.hero .pill {
  background: var(--brand);
  color: var(--white);
}

/* Footer clair */
.site-footer {
  background: var(--bg-soft);
  color: var(--text);
}

.footer-bottom {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Cartes et sections */
.card {
  background: var(--white);
  color: var(--text);
}

.feature-card, .faq-item {
  background: var(--white);
  border-color: var(--border);
}
/* === OVERRIDE HEADER COULEUR === */
header {
  background: #f3f3f3 !important; /* ✅ on force le fond gris clair */
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Optionnel : petit effet de défilement */
header.scrolled {
  background: #ebebeb !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* === HEADER CLAIR PREMIUM AVEC BARRE DORÉE MÉTALLIQUE EN BAS === */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: #f3f3f3 !important; /* gris clair pour contraste */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: none;
}

/* ✅ Barre dorée dégradée métallique en bas */
header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    #ad9551 0%,
    #c5ae69 25%,
    #f1d97e 50%,
    #c5ae69 75%,
    #ad9551 100%
  );
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 8px rgba(173, 149, 81, 0.3); /* petit éclat doré */
}

/* ✨ Animation subtile au survol ou défilement */
header.scrolled::after {
  background: linear-gradient(
    90deg,
    #c5ae69 0%,
    #f1d97e 25%,
    #fff4c2 50%,
    #f1d97e 75%,
    #c5ae69 100%
  );
  transition: var(--transition);
}
/* === CORRECTION VISIBILITÉ BOUTON CONNEXION === */
.nav-links .btn {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  transition: var(--transition);
}

.nav-links .btn:hover {
  background: var(--brand);
  color: var(--white) !important; /* ✅ forcer le texte blanc au survol */
}

/* Pour le bouton "Créer un compte" (ou tout .primary) */
.nav-links .btn.primary {
  background: var(--brand);
  color: var(--white);
  border: none;
}

.nav-links .btn.primary:hover {
  background: var(--brand-hover);
  color: var(--white);
}
/* === CORRECTION COULEURS FOOTER === */
footer,
footer p,
footer li,
footer a,
.site-footer,
.site-footer p,
.site-footer a {
  color: var(--text) !important; /* ✅ texte noir principal */
}

footer a:hover,
.site-footer a:hover {
  color: var(--brand) !important; /* ✅ doré au survol */
}

.footer-bottom {
  color: var(--text);
  border-top: 1px solid var(--border);
}
/* === LOGO DANS LE HEADER === */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 42px;            /* ✅ ajuste ici la taille */
  width: auto;
  object-fit: contain;
  display: block;
}

.brand span {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
}

.brand:hover span {
  color: var(--brand);
  transition: var(--transition);
}

/* Version responsive */
@media (max-width: 768px) {
  .brand-logo {
    height: 32px;
  }
}
.notif-code {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff8e1;
  color: #111;
  border: 2px solid var(--brand);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  font-size: 15px;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}
.notif-code span {
  font-weight: bold;
  color: var(--brand);
  margin-left: 4px;
}
.copy-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 6px;
  margin-left: 10px;
  padding: 4px 10px;
  cursor: pointer;
}
.copy-btn:hover {
  background: var(--brand-hover);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.alert {
  text-align:center;
  padding:12px 20px;
  border-radius:8px;
  margin:20px auto;
  max-width:700px;
  font-weight:500;
}
.alert.success { background:#d1fae5; color:#065f46; }
.alert.error { background:#fee2e2; color:#991b1b; }
.btn.danger {
  background: #dc2626;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.2s;
}

.btn.danger:hover {
  background: #b91c1c;
  transform: scale(1.05);
}
.alert.success {
  background: #d1fae5;
  color: #065f46;
  padding: 10px 15px;
  border-radius: 8px;
  margin: 15px auto;
  max-width: 700px;
  text-align: center;
  font-weight: 500;
}
/* === Barre admin fixée et collée au header === */
.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Par défaut : header collé en haut pour tout le monde */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
}

/* MAIS : si une barre admin est présente, on décale juste le header */
.admin-bar + header {
  position: fixed;
  top: 38px; /* colle juste sous la barre admin */
}

/* Et on décale le contenu uniquement si la barre admin existe */
.admin-bar + header + main {
  margin-top: 120px; /* évite que le contenu passe sous les barres */
}

/* Responsive ajusté */
@media (max-width: 700px) {
  .admin-bar + header {
    top: 42px;
  }
  .admin-bar + header + main {
    margin-top: 130px;
  }
}
.realisation-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.realisation-card:hover img {
  transform: scale(1.1);
}
.styled-table th, .styled-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}
.styled-table tr:hover {
  background: #f9fafb;
}
.filters select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}
.filters button, .filters a.btn {
  font-size: 14px;
}
.styled-table th, .styled-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}
.styled-table tr:hover {
  background: #f9fafb;
}
/* === COLONNE PARTENAIRES DANS LE FOOTER === */
.coin-partenaires {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 10px;
}

.coin-partenaires .partenaire img {
  max-height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.coin-partenaires .partenaire:hover img {
  transform: scale(1.05);
}

/* Mentions légales centrées */
.footer-bottom {
  text-align: center;
  padding: 16px 0;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

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

.footer-bottom a:hover {
  text-decoration: underline;
}
/* === FIX: colonne "Nos partenaires" + centrage mentions légales === */

/* Colonne partenaires dans la grille du footer */
.site-footer .footer-top .footer-col .coin-partenaires {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.site-footer .footer-top .footer-col .coin-partenaires .partenaire img {
  max-height: 50px;
  width: auto;
  display: block;
  /* évite que l'image déborde */
}

/* Mentions légales centrées (on neutralise le space-between défini plus haut) */
.site-footer > .footer-bottom {
  display: block !important;   /* sort du mode flex défini ailleurs */
  text-align: center !important;
  padding: 16px 20px;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.site-footer > .footer-bottom p {
  margin: 0;
}

.site-footer > .footer-bottom a {
  color: var(--brand);
  text-decoration: none;
}
.site-footer > .footer-bottom a:hover {
  text-decoration: underline;
}
/* === PAGE MENTIONS LÉGALES === */
.mentions-wrapper {
  background: var(--bg-soft);
  padding: 80px 20px;
  min-height: 70vh;
}

.mentions-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 50px;
  max-width: 900px;
  margin: 0 auto;
}

.mentions-container h1 {
  font-size: 2.2rem;
  color: var(--brand);
  margin-bottom: 20px;
  text-align: center;
}

.mentions-container .intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: justify;
}

.mentions-container section {
  margin-bottom: 40px;
}

.mentions-container h2 {
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 10px;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
}

.mentions-container p {
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.7;
  text-align: justify;
}

.mentions-container ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.mentions-container ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  color: var(--muted);
}

.mentions-container ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

.mentions-container a {
  color: var(--brand);
  text-decoration: underline;
}

.mentions-container a:hover {
  color: var(--brand-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .mentions-container {
    padding: 30px 20px;
  }
  .mentions-container h1 {
    font-size: 1.8rem;
  }
}
/* === PAGE POLITIQUE DE CONFIDENTIALITÉ === */
.mentions-container .last-update {
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-style: italic;
}

.mentions-container section:last-of-type {
  margin-bottom: 20px;
}
/* ===============================
   SECTIONS RÉSINE PRO
   =============================== */
.section-image {
  text-align: center;
  padding: 50px 0;
}

.section-image h2 {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  color: #c4a24c; /* doré harmonieux avec ton thème */
}

.section-image img {
  max-width: 1100px; /* ✅ agrandi (avant c’était 900px) */
  width: 95%;        /* prend un peu plus de place sur l’écran */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

/* petit effet au survol pour donner du relief */
.section-image img:hover {
  transform: scale(1.03);
}


/* Espacement entre chaque bloc */
.section-image + .section-image {
  margin-top: 60px;
}
















