/* ===== VARIABLES ===== */
:root {
  --blue-dark: #0d2137;
  --blue-mid: #1a3a5c;
  --blue-light: #2a5298;
  --orange: #e8650a;
  --orange-light: #f07a20;
  --orange-dark: #c4520a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #1e293b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13,33,55,.12);
  --shadow-lg: 0 12px 48px rgba(13,33,55,.18);
  --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

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

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.accent { color: var(--orange); }
.section-tag {
  display: inline-block;
  background: rgba(232,101,10,.12);
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--blue-dark); line-height: 1.2; margin-bottom: .75rem; }
.section-desc { color: var(--gray-600); font-size: 1.05rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,101,10,.35); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--orange); border-color: var(--white); font-weight: 700; }
.btn--white:hover { background: var(--orange); color: var(--white); border-color: var(--orange); transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.2rem; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(13,33,55,.1);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(13,33,55,.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}
.nav__logo-img { height: 52px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav__link {
  color: var(--blue-dark);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav__link:hover { color: var(--orange); background: rgba(232,101,10,.07); }
.nav__link--cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
}
.nav__link--cta:hover { background: var(--orange-dark); color: var(--white) !important; transform: translateY(-1px); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== VILLES ===== */
.villes { padding: 6rem 0; background: var(--white); }
.villes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.ville-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  user-select: none;
}
.ville-card:hover, .ville-card.active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13,33,55,.2);
}
.ville-card:hover .ville-card__icon, .ville-card.active .ville-card__icon { color: var(--orange); }
.ville-card__icon { color: var(--blue-mid); transition: var(--transition); }
.ville-card__icon svg { width: 28px; height: 28px; }
.ville-card__name { font-size: .92rem; font-weight: 700; }
.ville-card__region { font-size: .75rem; color: var(--gray-400); }
.ville-card:hover .ville-card__region, .ville-card.active .ville-card__region { color: rgba(255,255,255,.6); }
.ville-card--autre { border-style: dashed; border-color: var(--orange); background: rgba(232,101,10,.04); }
.ville-card--autre:hover, .ville-card--autre.active { background: var(--orange); border-color: var(--orange); border-style: solid; }
.villes__note {
  text-align: center;
  margin-top: 2rem;
  color: var(--gray-600);
  font-size: .9rem;
}
.villes__note strong { color: var(--blue-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../images/tuiles-pendant-2-1.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,33,55,.9) 0%, rgba(13,33,55,.7) 60%, rgba(26,58,92,.6) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.hero__badge {
  display: inline-block;
  background: rgba(232,101,10,.2);
  border: 1px solid rgba(232,101,10,.4);
  color: #ffa05e;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.hero__subtitle {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { top: 6px; opacity: 1; }
  80% { top: 22px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* ===== TRUST BAR ===== */
.trust {
  background: var(--blue-dark);
  padding: 1.5rem 0;
}
.trust__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
}
.trust__item svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

/* ===== SERVICES ===== */
.services { padding: 6rem 0; background: var(--gray-50); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(13,33,55,.07);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,101,10,.2);
}
.service-card__icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(232,101,10,.12), rgba(232,101,10,.06));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.service-card__icon svg { width: 32px; height: 32px; color: var(--orange); }
.service-card__title { font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .65rem; }
.service-card__desc { color: var(--gray-600); font-size: .92rem; line-height: 1.65; flex: 1; }
.service-card__link {
  margin-top: 1.25rem;
  color: var(--orange);
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
}
.service-card__link:hover { gap: .5rem; letter-spacing: .02em; }

/* ===== GALLERY ===== */
.gallery { padding: 6rem 0; background: var(--white); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,33,55,.85));
  color: var(--white);
  padding: 1.5rem 1rem .75rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.gallery__item:hover .gallery__caption { transform: translateY(0); }
.gallery__tag {
  display: inline-block;
  background: var(--orange);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .4rem;
}
.gallery__caption p { font-size: .88rem; font-weight: 500; }

/* ===== AVANT / APRÈS ===== */
.avantapres { padding: 6rem 0; background: var(--gray-50); }
.avantapres__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.avantapres__text .section-title { text-align: left; }
.avantapres__text > p { color: var(--gray-600); margin-bottom: 1.75rem; }
.avantapres__list { margin-bottom: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.avantapres__list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--gray-800);
  font-size: .95rem;
  font-weight: 500;
}
.avantapres__list svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }
.avantapres__images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.avantapres__img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.avantapres__img-wrap img { width: 100%; height: 220px; object-fit: cover; }
.avantapres__label {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--blue-dark);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .75rem;
  border-radius: 6px;
}
.avantapres__label--after { background: var(--orange); }

/* ===== À PROPOS ===== */
.apropos { padding: 6rem 0; background: var(--white); }
.apropos__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.apropos__image { position: relative; }
.apropos__image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.apropos__badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--orange);
  color: var(--white);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 32px rgba(232,101,10,.4);
}
.apropos__badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.apropos__badge span { font-size: .8rem; font-weight: 600; opacity: .9; }
.apropos__text .section-title { text-align: left; }
.apropos__text > p { color: var(--gray-600); margin-bottom: 1rem; }
.apropos__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.stat__num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat__label { font-size: .82rem; color: var(--gray-600); font-weight: 500; margin-top: .25rem; display: block; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 4rem 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__text h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; color: var(--white); margin-bottom: .5rem; }
.cta-band__text p { color: rgba(255,255,255,.75); font-size: 1rem; }

/* ===== CONTACT ===== */
.contact { padding: 6rem 0; background: var(--gray-50); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact__info .section-title { text-align: left; }
.contact__info > p { color: var(--gray-600); margin-bottom: 2rem; }
.contact__details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__detail-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact__detail-icon {
  width: 44px; height: 44px;
  background: rgba(232,101,10,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__detail-icon svg { width: 20px; height: 20px; color: var(--orange); }
.contact__detail-item div { display: flex; flex-direction: column; gap: .2rem; }
.contact__detail-item strong { color: var(--blue-dark); font-weight: 700; font-size: .9rem; }
.contact__detail-item a, .contact__detail-item span { color: var(--gray-600); font-size: .9rem; transition: var(--transition); }
.contact__detail-item a:hover { color: var(--orange); }

/* ===== FORM ===== */
.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--blue-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,101,10,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form__success {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.3);
  border-radius: 10px;
  color: #166534;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 500;
  font-size: .9rem;
}
.form__success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.8); padding: 5rem 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo { height: 48px; margin-bottom: 1rem; }
.footer__brand p { font-size: .88rem; line-height: 1.7; max-width: 260px; }
.footer__links h4, .footer__services h4, .footer__contact h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer__links ul, .footer__services ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__links li a { font-size: .88rem; transition: var(--transition); }
.footer__links li a:hover { color: var(--orange); padding-left: .35rem; }
.footer__services li { font-size: .88rem; }
.footer__contact a { display: block; color: var(--orange); font-size: .9rem; margin-bottom: .5rem; word-break: break-all; }
.footer__contact p { font-size: .88rem; margin-bottom: 1.5rem; }
.footer__bottom {
  padding: 1.5rem 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer__bottom p { font-size: .82rem; color: rgba(255,255,255,.5); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232,101,10,.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--orange-dark); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: .25rem;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 32px rgba(0,0,0,.15);
    overflow-y: auto;
    z-index: 999;
  }
  .nav__menu.open { right: 0; }
  .nav__link { font-size: 1rem; padding: .75rem 1rem; width: 100%; border-radius: 10px; color: var(--blue-dark); }
  .nav__link--cta { margin-top: 1rem; text-align: center; background: var(--orange); color: var(--white) !important; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .services__grid { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: span 2; }

  .avantapres__inner { grid-template-columns: 1fr; gap: 3rem; }
  .avantapres__images { order: -1; }

  .apropos__inner { grid-template-columns: 1fr; gap: 3rem; }
  .apropos__badge { bottom: -1rem; right: -.5rem; }
  .apropos__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__inner .btn { width: 100%; max-width: 320px; justify-content: center; }

  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom .container { flex-direction: column; text-align: center; }

  .trust__grid { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .apropos__stats { grid-template-columns: 1fr; gap: .75rem; }
  .contact__form { padding: 1.75rem 1.25rem; }
  .villes__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.service-card, .gallery__item, .apropos__inner > *, .avantapres__inner > * {
  animation: fadeUp .6s ease both;
}
