/* ===== POLICE SWITZER ===== */
@font-face {
  font-family: 'Switzer';
  src: url('Police ecriture/Fonts/WEB/fonts/Switzer-Variable.woff2') format('woff2-variations'),
       url('Police ecriture/Fonts/WEB/fonts/Switzer-Variable.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('Police ecriture/Fonts/WEB/fonts/Switzer-VariableItalic.woff2') format('woff2-variations'),
       url('Police ecriture/Fonts/WEB/fonts/Switzer-VariableItalic.woff') format('woff');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c1: #263A47;
  --c2: #4A5B6A;
  --c3: #728495;
  --c4: #98A9BE;
  --c5: #B4C5D8;
  --text: #1e2d38;
  --text-light: #5a6e7f;
  --bg: #ffffff;
  --bg-light: #f4f7fa;
  --border: #dce5ee;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(38,58,71,0.08);
  --shadow-lg: 0 12px 48px rgba(38,58,71,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Switzer', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c1);
  color: #fff;
  border-color: var(--c1);
}
.btn-primary:hover {
  background: var(--c2);
  border-color: var(--c2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38,58,71,0.28);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--c5);
  color: var(--c5);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(38,58,71,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(180,197,216,.1);
  transition: box-shadow .3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  color: #fff;
}
.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  padding: 3px 6px;
  background: #fff;
}

nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--c5); }
.nav-cta { padding: .65rem 1.4rem; font-size: .95rem; align-self: center; }

.burger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: .75rem;
  background: var(--c1);
  border-top: 1px solid rgba(180,197,216,.1);
}
.mobile-menu a { color: rgba(255,255,255,.85); font-weight: 500; padding: .4rem 0; }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-img-mobile { display: none; }
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #1b2d38;
  padding-top: 72px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(180,197,216,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(114,132,149,0.06) 0%, transparent 60%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(27,45,56,0.72) 0%, rgba(38,58,71,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.badge {
  display: inline-block;
  background: rgba(180,197,216,.15);
  color: var(--c5);
  border: 1px solid rgba(180,197,216,.3);
  border-radius: 50px;
  padding: .35rem 1.1rem;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-content h1 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-content .slogan {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1.4rem;
  letter-spacing: -.02em;
}
.accent { color: var(--c5); }
.hero-content p {
  font-size: 1.12rem;
  color: rgba(255,255,255,.7);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 3.5rem; }
.hero-devis { align-self: stretch; justify-content: center; }
.hero-phones { display: flex; gap: 1rem; flex-wrap: wrap; width: 100%; justify-content: center; }
.hero-phone-wrap { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.hero-phone-name { color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 500; letter-spacing: .05em; }

.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat span { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .2rem; letter-spacing: .04em; text-transform: uppercase; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
.section-dark { background: var(--c1); color: #fff; }
.section-light { background: var(--bg-light); }
.section-cta { background: linear-gradient(140deg, #1b2d38, #263A47 60%, #344e5e); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  color: var(--c2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.section-header h2 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-label { color: var(--c5); }
.section-header p { color: var(--text-light); max-width: 560px; margin: 0 auto; font-size: 1.02rem; line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,.80); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2.2rem 2rem;
  transition: transform .32s cubic-bezier(.4,0,.2,1), box-shadow .32s ease, border-color .28s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Numéro décoratif */
.service-card::before {
  content: attr(data-num);
  position: absolute;
  top: -14px;
  right: 14px;
  font-size: 7rem;
  font-weight: 800;
  font-family: 'Switzer', sans-serif;
  color: rgba(38,58,71,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color .32s ease, transform .38s cubic-bezier(.4,0,.2,1);
}
/* Ligne d'accent en bas */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c2), var(--c5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(38,58,71,.13);
  border-color: var(--c4);
}
.service-card:hover::before {
  color: rgba(38,58,71,.09);
  transform: scale(1.06) translateY(-5px);
}
.service-card:hover::after {
  transform: scaleX(1);
}
.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c3) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(38,58,71,.22);
  transition: transform .32s cubic-bezier(.4,0,.2,1), box-shadow .32s ease;
  flex-shrink: 0;
}
.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 14px 30px rgba(38,58,71,.32);
}
.service-card h3 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: .7rem;
  color: var(--c1);
  transition: color .25s ease;
}
.service-card:hover h3 { color: var(--c2); }
.service-card p { color: var(--text-light); font-size: .92rem; line-height: 1.7; flex: 1; }

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(180,197,216,.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.gallery-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.gallery-info { padding: 1.35rem; }
.gallery-info h4 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}
.gallery-info p { font-size: .86rem; color: rgba(255,255,255,.55); margin-bottom: .85rem; line-height: 1.55; }
.tag {
  display: inline-block;
  background: rgba(180,197,216,.15);
  color: var(--c5);
  border: 1px solid rgba(180,197,216,.25);
  border-radius: 50px;
  padding: .18rem .8rem;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ===== À PROPOS ===== */
.apropos-header {
  max-width: 700px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.apropos-header .section-label { display: block; margin-bottom: .6rem; }
.apropos-header h2 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
  line-height: 1.2;
  color: var(--c1);
}
.apropos-header p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.75; }
.certifs {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2rem;
}
.certifs li {
  color: var(--c2);
  font-weight: 500;
  font-size: .9rem;
}

.gerants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.gerant-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gerant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gerant-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gerant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%);
  transition: filter .3s ease;
}
.gerant-card:hover .gerant-photo img { filter: grayscale(0%); }
.gerant-info {
  padding: 1.4rem 1.5rem 1.6rem;
  text-align: center;
}
.gerant-info h3 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c1);
  margin-bottom: .3rem;
}
.gerant-info > p { color: var(--text-light); font-size: .88rem; }


/* ===== DEVIS FORM ===== */
.devis-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(180,197,216,.15);
  border-radius: var(--radius);
  padding: 2.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { color: rgba(255,255,255,.8); font-size: .87rem; font-weight: 600; letter-spacing: .02em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,197,216,.2);
  border-radius: 8px;
  padding: .8rem 1rem;
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.55); }
.form-group select option { background: var(--c1); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--c5); }
.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  margin-top: 1.25rem;
  background: rgba(180,197,216,.12);
  border: 1px solid rgba(180,197,216,.3);
  color: var(--c5);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}
.form-error {
  display: none;
  margin-top: 1.25rem;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.35);
  color: #fca5a5;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-grid h2 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 2.25rem;
  color: var(--c1);
}
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.contact-item > span { font-size: 1.4rem; margin-top: .1rem; }
.contact-item > div { display: flex; flex-direction: column; gap: .18rem; }
.contact-item strong { font-weight: 700; font-size: .87rem; color: var(--c2); text-transform: uppercase; letter-spacing: .05em; }
.contact-item a { color: var(--c2); font-weight: 600; font-size: .98rem; transition: color .2s; }
.contact-item a:hover { color: var(--c1); }
.contact-item span { color: var(--text-light); font-size: .9rem; line-height: 1.5; }

.map-wrap {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.map-iframe {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.map-caption {
  font-size: .95rem;
  text-align: center;
  line-height: 1.7;
  color: var(--text);
}
.map-caption small { font-size: .82rem; color: var(--text-light); }

/* ===== NOUS REJOINDRE ===== */
.rejoindre-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.rejoindre-atouts h3 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c1);
  margin-bottom: 1.75rem;
}

.atouts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.atouts-list li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.6;
}

.atout-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.candidature-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.candidature-form .form-group label { color: var(--text); }

.candidature-form input,
.candidature-form select,
.candidature-form textarea {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem 1rem;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
}
.candidature-form select {
  background: var(--c1);
  color: #fff;
  border-color: var(--c2);
}
.candidature-form select option { background: var(--c1); color: #fff; }

.candidature-form input::placeholder,
.candidature-form textarea::placeholder { color: var(--c2); }

.candidature-form input:focus,
.candidature-form select:focus,
.candidature-form textarea:focus { border-color: var(--c1); }

.form-success-light {
  display: none;
  margin-top: 1.25rem;
  background: #eef4f0;
  border: 1px solid #b2d4bc;
  color: #2d6a4f;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 768px) {
  .rejoindre-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .candidature-form { padding: 1.75rem; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--c1);
  color: rgba(255,255,255,.65);
  padding: 3.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-size: 1.05rem;
  font-family: 'Switzer', system-ui, sans-serif;
}
.footer-logo p { color: rgba(255,255,255,.45); font-size: .83rem; font-family: 'Switzer', system-ui, sans-serif; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color .2s; letter-spacing: .02em; }
.footer-links a:hover { color: var(--c5); }
.footer-legal { font-size: .76rem; color: rgba(255,255,255,.28); letter-spacing: .03em; }

/* ===== ONGLETS RÉALISATIONS ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding: .9rem 1.4rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(180,197,216,.15);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .22s ease;
  text-align: left;
  min-width: 160px;
}
.tab-btn:hover {
  background: rgba(180,197,216,.1);
  border-color: rgba(180,197,216,.35);
}
.tab-btn.active {
  background: var(--c5);
  border-color: var(--c5);
}
.tab-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.tab-btn.active .tab-label { color: rgba(38,58,71,.7); }
.tab-title {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.tab-btn.active .tab-title { color: var(--c1); }
.tab-loc {
  font-size: .75rem;
  color: var(--c4);
}
.tab-btn.active .tab-loc { color: var(--c2); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.fb-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.tab-btn-facebook {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  text-decoration: none;
  flex-direction: row !important;
  align-items: center !important;
  gap: .85rem !important;
  padding: 1rem 1.6rem !important;
  animation: fb-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(24,119,242,.45);
}
.tab-btn-facebook:hover {
  background: #0e6ae0 !important;
  border-color: #0e6ae0 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(24,119,242,.6) !important;
  animation: none;
}
.fb-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-text { display: flex; flex-direction: column; gap: .15rem; }
.tab-btn-facebook .tab-label { color: rgba(255,255,255,.85) !important; font-size: .72rem !important; }
.tab-btn-facebook .tab-title { color: #fff !important; font-size: 1rem !important; }

@keyframes fb-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(24,119,242,.45); }
  50%       { box-shadow: 0 4px 32px rgba(24,119,242,.8); }
}

.real-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.real-grid.cols-1 { grid-template-columns: 1fr; max-width: 700px; margin-left: auto; margin-right: auto; }
.real-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.real-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.real-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.real-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.real-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.real-item:hover img { transform: scale(1.04); }
.real-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38,58,71,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.real-item:hover .real-overlay { opacity: 1; }
.real-overlay span {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.7);
  padding: .4rem 1rem;
  border-radius: 50px;
}
.real-desc {
  color: rgba(255,255,255,.6);
  font-size: .93rem;
  line-height: 1.7;
  max-width: 720px;
  padding-top: .5rem;
  border-top: 1px solid rgba(180,197,216,.12);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,18,24,.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
#lbCaption {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  text-align: center;
  letter-spacing: .02em;
}
.lb-close {
  position: fixed;
  top: 1.25rem; right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: .5rem .9rem;
  border-radius: 8px;
  line-height: 1;
  transition: background .2s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ===== MENTIONS LÉGALES ===== */
.footer-legal-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  font-size: .76rem;
  cursor: pointer;
  text-decoration: underline;
  letter-spacing: .03em;
  transition: color .2s;
}
.footer-legal-btn:hover { color: var(--c5); }

.legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.legal-overlay.open { display: flex; }

.legal-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}
.legal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--c3);
  transition: color .2s;
}
.legal-close:hover { color: var(--c1); }

.legal-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: .75rem;
}
.legal-tab {
  background: none;
  border: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  padding: .4rem .9rem;
  border-radius: 6px;
  transition: all .2s;
}
.legal-tab.active {
  background: var(--c1);
  color: #fff;
}

.legal-content { display: none; }
.legal-content.active { display: block; }

.legal-content h2 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: 1.6rem;
  color: var(--c1);
  margin-bottom: 1.5rem;
}
.legal-content h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--c1);
  margin: 1.5rem 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.legal-content p { color: var(--text-light); font-size: .92rem; line-height: 1.75; margin-bottom: .5rem; }
.legal-content ul { padding-left: 1.25rem; margin-bottom: .5rem; }
.legal-content ul li { color: var(--text-light); font-size: .92rem; line-height: 1.75; }


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav .nav-links, nav .nav-cta { display: none; }
  .burger { display: block; }
  /* Hero mobile */
  .hero { min-height: auto; height: calc(90px + 65vw + 240px); display: block; background: #263A47; }
  .hero-video-desktop { display: none; }
  .hero-img-mobile {
    display: block;
    position: absolute;
    top: 90px; left: 0; right: 0; bottom: auto;
    width: 100%;
    height: 65vw;
    object-fit: cover;
    object-position: center center;
  }
  .hero-overlay { top: 90px; left: 0; right: 0; bottom: auto; height: 65vw; }
  .hero-content h1 { display: none; }
  .hero-content > p:not(.slogan) { display: none; }
  .hero-content .badge { display: none; }
  .hero-stats { display: none; }
  .hero-devis { display: none; }
  .hero-content {
    position: relative;
    z-index: 2;
    padding: calc(90px + 1.5rem) 1.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-content .slogan {
    font-size: clamp(2rem, 7vw, 2.6rem);
    margin-bottom: 0;
    text-align: center;
  }
  .hero-phones {
    flex-direction: column;
    align-items: center;
    margin-top: calc(65vw - 9rem);
    gap: 0.75rem;
  }
  .gerants-grid { grid-template-columns: 1fr; max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .devis-form { padding: 1.75rem; }
  .services-grid, .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-content h1 { font-size: 2.1rem; }
}
