/* ==============================================
   SOLÉO SARL — Site vitrine
   Couleurs : Navy + Orange (du logo)
   ============================================== */

:root {
  --navy: #1F2A56;
  --navy-light: #2C3E70;
  --orange: #E89B3B;
  --orange-light: #F4B45E;
  --turquoise: #5DADE2;
  --white: #FFFFFF;
  --bg-light: #F8F9FB;
  --gray-100: #F3F4F6;
  --gray-300: #D1D5DB;
  --gray-600: #525252;
  --gray-900: #1F2937;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

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

/* ===== HEADER ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-link { display: flex; align-items: center; gap: 0.6rem; }
.logo-link .logo-icon { height: 64px; width: auto; display: block; }
.logo-link .logo-text {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.85rem;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 6px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-900);
  padding: 0.5rem 0;
  position: relative;
}

nav a:hover, nav a.active { color: var(--orange); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--orange-light); color: var(--white) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,155,59,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 span { color: var(--orange); }

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}

.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-width: 100%;
  width: 440px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== SECTIONS GÉNÉRALES ===== */
section { padding: 4rem 0; }

.section-light { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--gray-600); font-size: 1.1rem; }
.section-tagline {
  display: inline-block;
  background: rgba(232,155,59,0.12);
  color: var(--orange);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== SERVICES (cartes) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  transition: all .25s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--white);
}

.service-card h3 { color: var(--navy); margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; }

/* ===== POURQUOI NOUS ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-item {
  text-align: center;
}

.why-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--orange);
  box-shadow: var(--shadow-md);
}

.why-item h3 { font-size: 1.1rem; }
.why-item p { color: var(--gray-600); font-size: 0.95rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 { color: var(--white); }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p, .footer-col li { color: rgba(255,255,255,0.75); margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--orange); }

.footer-logo { color: var(--white); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.footer-bottom a:hover { color: var(--orange); }

/* ===== FORMULAIRE CONTACT ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info p { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.contact-info p strong { color: var(--navy); display: block; margin-bottom: 0.15rem; }
.contact-info .contact-icon {
  width: 36px; height: 36px;
  background: rgba(232,155,59,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

form { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); font-size: 0.95rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,155,59,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== GALERIE RÉALISATIONS ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s;
}
.gallery-item:hover { transform: translateY(-4px); }

.gallery-placeholder {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-300) 100%);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ===== SLIDESHOW (vignette galerie) ===== */
.slideshow {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.slideshow .slide.active { opacity: 1; }
.slideshow-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.slideshow-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.slideshow-dots .dot.active { background: var(--white); }

.gallery-item h3 { padding: 1rem 1.25rem 0.25rem; font-size: 1.05rem; }
.gallery-item p { padding: 0 1.25rem 1.25rem; color: var(--gray-600); font-size: 0.9rem; }

/* ===== CURSEUR AVANT / APRÈS ===== */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.before-after-item {
  display: flex;
  flex-direction: column;
}
.before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  user-select: none;
  background: var(--gray-100);
  touch-action: pan-y;
}
.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.before-after .ba-after { z-index: 1; }
.before-after .ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.before-after .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}
.before-after .ba-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.before-after .ba-handle::after {
  content: '\21C6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 800;
}
.before-after .ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.7rem;
  background: rgba(15, 37, 63, 0.85);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 4px;
  z-index: 4;
  pointer-events: none;
}
.before-after .ba-label-before { left: 1rem; }
.before-after .ba-label-after { right: 1rem; }
.before-after-caption {
  margin-top: 1rem;
  text-align: center;
}
.before-after-caption h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.before-after-caption p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}
.before-after-hint {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  font-style: italic;
}

/* ===== PAGE INTERNE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* ===== À PROPOS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-grid img, .about-img-placeholder {
  border-radius: var(--radius-lg);
  height: 400px;
}
.about-grid img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.about-img-placeholder {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}
.value-card h3 { font-size: 1.05rem; }
.value-card p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 0; }

/* ===== MENTIONS LÉGALES ===== */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; font-size: 1.4rem; border-bottom: 2px solid var(--orange); padding-bottom: 0.5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--gray-600); }
.legal-content strong { color: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav ul {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  nav ul.active { display: flex; }
  nav li { width: 100%; padding: 0 1.5rem; }
  nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
  .menu-toggle { display: block; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-img { order: -1; }
  .hero-logo { width: 320px; }

  .form-grid, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid img, .about-img-placeholder { height: 280px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 3rem 0; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
}
