/* === Palette principale === */
:root {
  --blue: #0d5fb6;
  --blue-dark: #0a4890;
  --blue-ghost: #e8f2ff;
  --text: #12202e;
  --muted: #6b7a8c;
  --bg: #ffffff;
  --alt: #f7f9fc;
  --shadow: 0 6px 24px rgba(13, 95, 182, 0.12);
}

/* === Reset === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Topbar === */
.topbar {
  background: var(--blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand img {
  height: 36px;
  width: auto;
}
.cta-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 10px 14px;
  border-radius: 10px;
  transition: 0.3s;
}
.cta-phone:hover {
  background: rgba(255,255,255,0.15);
}

/* === Hero === */
.hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url("hero2.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 90px 0 70px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
}
.hero .accent {
  color: #ffe27a;
}
.lead {
  font-size: clamp(16px, 2.3vw, 20px);
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.25s ease;
}
.btn.primary {
  background: #fff;
  color: var(--blue-dark);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn.ghost {
  color: #fff;
  border: 2px solid #fff;
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* === Sections === */
.section {
  padding: 70px 0;
}
.section.alt {
  background: var(--alt);
}
.section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 24px;
  position: relative;
}
.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  margin: 12px auto 0;
}

/* === Cards / Services === */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--blue);
  color: #fff;
  padding: 28px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.card h3 {
  margin-bottom: 10px;
}

/* === About === */
.about-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.2fr 0.8fr;
}
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-list li {
  background: var(--blue-ghost);
  color: var(--blue-dark);
  border: 1px solid #cddff7;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* === Avis === */
#avis-form {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}
#avis-form input,
#avis-form textarea {
  padding: 12px 14px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
#avis-form input:focus,
#avis-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,95,182,0.15);
}
#avis-form button {
  align-self: start;
}
#avis-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.avis-item {
  background: var(--blue-ghost);
  border-left: 4px solid var(--blue);
  padding: 16px;
  border-radius: 10px;
}

/* === Galerie === */
.slider-section {
  background: #f8fbff;
  text-align: center;
}
.slider-wrapper {
  position: relative;
  overflow: hidden;
}
.slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar {
  display: none;
}
.slider img {
  flex: 0 0 auto;
  width: 340px;
  height: 230px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.slider img:hover {
  transform: scale(1.05);
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,95,182,0.8);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 22px;
}
.slide-btn.left { left: 8px; }
.slide-btn.right { right: 8px; }
.slide-btn:hover { background: rgba(10,72,144,0.95); }

/* === Contact === */
#contact-form {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#contact-form input,
#contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  font-size: 15px;
}
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13,95,182,0.15);
}

/* === Bouton flottant === */
.call-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: 0.3s;
  z-index: 999;
}
.call-float:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
}

/* === Footer === */
.footer {
  background: #0b2540;
  color: #c6d2e3;
  padding: 24px 0;
  text-align: center;
  margin-top: 40px;
}

/* === Animation Fade === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cta-phone {
    background: #fff;
    color: var(--blue-dark);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
  }
  .slider img {
    width: 260px;
    height: 180px;
  }
  .call-float {
    bottom: 10px;
    right: 10px;
    font-size: 14px;
    padding: 10px 14px;
  }
}
/* === À propos - Section centrée et moderne === */
#about {
  background: var(--alt);
  text-align: center;
}

.about-centered {
  max-width: 850px;
  margin: 0 auto;
}

.about-card {
  background: #fff;
  padding: 30px 40px;
  margin-top: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(13, 95, 182, 0.12);
  line-height: 1.7;
  font-size: 16px;
  color: #12202e;
  text-align: justify;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(13, 95, 182, 0.2);
}

.about-card strong {
  color: var(--blue);
}

.about-extra {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.about-extra h4 {
  color: var(--blue-dark);
  font-weight: 600;
  background: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(13, 95, 182, 0.12);
}
/* === Bannière Cookies === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-top: 2px solid var(--blue);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
  animation: slideUp 0.6s ease forwards;
}

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #12202e;
}

.cookie-content p {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.cookie-content a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons .btn {
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 8px;
}

.cookie-buttons .btn.ghost {
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.cookie-buttons .btn.ghost:hover {
  background: var(--blue);
  color: #fff;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
