/* ── VARIABLES ── */
:root {
  --primary:       #1251A3;
  --secondary:     #4FC3F7;
  --gradient:      linear-gradient(135deg, #1251A3, #4FC3F7);
  --gradient-text: linear-gradient(135deg, #1251A3 0%, #4FC3F7 100%);
  --bg-tint:       rgba(18, 81, 163, 0.06);
  --bg:            #FFFFFF;
  --bg-alt:        #F6FAFF;
  --border:        #E2EAF4;
  --text:          #0A0A12;
  --text-mid:      #353550;
  --text-muted:    #7A7A95;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.09);
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    220ms ease;
  --font-head:     'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ── UTILITY ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
}
.section-desc {
  margin-top: 14px; font-size: 0.92rem;
  color: var(--text-muted); max-width: 520px;
}
.section-header { margin-bottom: 56px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 30px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(18,81,163,0.28);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(18,81,163,0.42);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.50);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.btn-full { width: 100%; }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 28px;
  overflow: visible;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
#navbar.scrolled .nav-links a { color: var(--text-mid); }
#navbar.scrolled .nav-links a:hover { color: var(--primary); }
#navbar.scrolled .nav-links .nav-btn { color: #fff; }
#navbar.scrolled .burger span { background: var(--text); }

.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-main {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  color: #fff; letter-spacing: -0.02em; line-height: 1;
  transition: color var(--transition);
}
.logo-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.30);
  transition: background var(--transition);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  color: #fff; letter-spacing: 0.04em;
  transition: color var(--transition);
}
.logo-sub {
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.50); margin-top: 4px;
  transition: color var(--transition);
}

#navbar.scrolled .logo-main { color: var(--text); }
#navbar.scrolled .logo-name { color: var(--text-mid); }
#navbar.scrolled .logo-sub  { color: var(--text-muted); }
#navbar.scrolled .logo-divider { background: var(--border); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.80); transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-btn {
  padding: 9px 20px; background: var(--gradient);
  color: #fff !important; border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(18,81,163,0.30);
}
.nav-links .nav-btn:hover {
  box-shadow: 0 4px 18px rgba(18,81,163,0.45);
  transform: translateY(-1px);
}

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span {
  display: block; width: 23px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 250ms ease;
}

/* ── HERO ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
}
.hero-img {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5,14,32,0.80) 0%,
    rgba(5,14,32,0.52) 55%,
    rgba(18,81,163,0.22) 100%
  );
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1120px; width: 100%;
  margin: 0 auto; padding: 120px 28px 80px;
}
.hero-label {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.60); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-label::before {
  content: ''; width: 28px; height: 1px;
  background: var(--secondary); flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 700; line-height: 1.05; color: #fff; margin-bottom: 22px;
}
.hero-title em {
  font-style: normal; font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.58); margin-bottom: 38px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.scroll-line {
  display: block; width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(79,195,247,0.9), transparent);
  margin: 0 auto; animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ── SERVICES ── */
#services { padding: 108px 0; background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
  border-color: rgba(18,81,163,0.22);
}
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 19px; height: 19px; color: var(--primary); }
.service-card h3 {
  font-family: var(--font-head); font-size: 1.2rem;
  font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em;
}
.service-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }

/* ── À PROPOS ── */
#apropos { padding: 108px 0; background: var(--bg); }

.apropos-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.apropos-photo {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4/5;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.apropos-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}
.apropos-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--text-muted);
}
.apropos-photo-placeholder svg { width: 48px; height: 48px; opacity: 0.3; }
.apropos-photo-placeholder span {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.4;
}

.apropos-text {
  display: flex; flex-direction: column; gap: 16px;
}
.apropos-desc { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; }
.apropos-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.badge {
  display: inline-block;
  padding: 6px 14px; border-radius: 100px;
  background: var(--bg-tint); border: 1px solid rgba(18,81,163,0.15);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--primary);
}

/* ── RÉALISATIONS ── */
#realisations { padding: 108px 0; background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-wide { grid-column: span 2; grid-row: span 2; }

.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-wide { aspect-ratio: auto; min-height: 260px; }

/* Image réelle (quand disponible) */
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 300ms ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Placeholder tant que pas de photo */
.gallery-ph {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--bg-alt), #dbeafe);
  color: var(--text-muted);
  transition: background var(--transition);
}
.gallery-item:hover .gallery-ph {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.gallery-ph svg { width: 32px; height: 32px; opacity: 0.35; color: var(--primary); }
.gallery-ph span {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); opacity: 0.7;
}

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 16px 14px;
  background: linear-gradient(transparent, rgba(10,10,18,0.72));
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: #fff;
  transform: translateY(100%);
  transition: transform 240ms ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ── AVIS ── */
#avis { padding: 108px 0; background: var(--bg-alt); }

.avis-placeholder {
  max-width: 560px; margin: 0 auto;
  text-align: center;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 56px 40px;
  box-shadow: var(--shadow-sm);
}
.avis-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.avis-icon svg { width: 26px; height: 26px; color: var(--primary); }
.avis-msg {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
  color: var(--text); margin-bottom: 10px; line-height: 1.4;
}
.avis-sub {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 28px;
}

.testi-card p {
  font-size: 0.92rem; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 18px;
}
.testi-card footer cite {
  font-style: normal; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}

.testi-cta {
  text-align: center; padding: 48px 32px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.testi-cta p {
  font-family: var(--font-head); font-size: 1.5rem;
  font-weight: 600; color: var(--text); margin-bottom: 22px;
}

/* ── CONTACT ── */
#contact { padding: 108px 0; background: var(--bg); }

.contact-solo {
  max-width: 680px; margin: 0 auto; text-align: center;
}
.contact-solo .section-header { margin-bottom: 42px; }
.contact-solo .section-desc { margin: 14px auto 0; }

.contact-phone-cta {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 24px 48px; border-radius: var(--radius-lg);
  background: var(--gradient);
  color: #fff; font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 32px rgba(18,81,163,0.32);
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 56px;
}
.contact-phone-cta:hover {
  box-shadow: 0 12px 42px rgba(18,81,163,0.46);
  transform: translateY(-3px);
}
.contact-phone-cta svg { width: 28px; height: 28px; flex-shrink: 0; }

.info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-row {
  flex-direction: row; justify-content: center;
  gap: 0; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-alt);
}
.contact-info-row .info-item {
  flex: 1; padding: 24px 22px;
  border-right: 1px solid var(--border);
}
.contact-info-row .info-item:last-child { border-right: none; }

.info-item { display: flex; align-items: flex-start; gap: 14px; }
.info-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--bg-tint); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 16px; height: 16px; color: var(--primary); }
.info-item > div { display: flex; flex-direction: column; gap: 2px; }
.info-item strong {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.info-item span, .info-item a { font-size: 0.9rem; color: var(--text); display: block; }
.info-item a:hover { color: var(--primary); }

/* ── FOOTER ── */
#footer { padding: 60px 0 30px; background: var(--text); color: #fff; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.10); margin-bottom: 22px;
}
.footer-logo {
  font-family: var(--font-head); font-size: 1.3rem;
  font-weight: 700; color: #fff; margin-bottom: 10px;
}
.footer-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p:last-child { font-size: 0.82rem; color: rgba(255,255,255,0.48); line-height: 1.65; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-links a {
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.52); cursor: pointer;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 0.77rem; color: rgba(255,255,255,0.32); }
.footer-bottom a { color: var(--secondary); }
.footer-bottom a:hover { text-decoration: underline; }
.privacy-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--secondary); font-size: inherit; font-family: inherit;
  text-decoration: underline; text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}
.privacy-link:hover { text-decoration-color: var(--secondary); }

/* ── MODAL CONFIDENTIALITÉ ── */
.privacy-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.privacy-modal[hidden] { display: none; }
.privacy-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,14,32,0.70);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.privacy-content {
  position: relative; z-index: 1;
  background: var(--bg); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.privacy-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.privacy-header h2 {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
}
.privacy-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.privacy-close:hover { background: var(--border); }
.privacy-close svg { width: 14px; height: 14px; color: var(--text-mid); }
.privacy-body {
  overflow-y: auto; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.7;
}
.privacy-body h3 {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 6px;
}
.privacy-body p { margin: 0; }
.privacy-body ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.privacy-body a { color: var(--primary); text-decoration: underline; }
.privacy-intro {
  font-size: 0.92rem; color: var(--text); font-weight: 500;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.privacy-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }

/* ── FADE-IN ── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; aspect-ratio: 16/9; }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .apropos-grid { grid-template-columns: 1fr; gap: 36px; }
  .apropos-photo { aspect-ratio: 4/3; max-width: 100%; width: 100%; margin: 0; }
  .apropos-img { object-position: center 20%; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-info-row { flex-direction: column; }
  .contact-info-row .info-item { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-info-row .info-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    display: none; position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column; padding: 28px; gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-mid) !important; font-size: 1rem; }
  .nav-links .nav-btn { text-align: center; color: #fff !important; }
  .services-grid { grid-template-columns: 1fr; }
  .apropos-photo { aspect-ratio: 1/1; }
  .apropos-badges { gap: 6px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-column: span 2; }
  .contact-phone-cta { padding: 18px 28px; }
  .footer-inner { flex-direction: column; }
  .footer-links { align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
}
