:root {
  --blanc: #ffffff;
  --gris: #f5f5f7;
  --texte: #1d1d1f;
  --secondaire: #6e6e73;
  --ligne: #d2d2d7;
  --bleu: #0071e3;
  --bleu-fonce: #0062c4;
  --police: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; color: var(--texte); }
p { margin: 0; }

.saut { position: absolute; left: -9999px; }
.saut:focus { left: 16px; top: 16px; z-index: 100; background: var(--texte); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

.enveloppe { width: min(1040px, 100% - 44px); margin-inline: auto; }
.etroite, .enveloppe-etroite { width: min(680px, 100% - 44px); margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 980px;
  border: 0;
  background: var(--bleu);
  color: #fff;
  font: 500 17px/1 var(--police);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--bleu-fonce); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-petit { padding: 8px 16px; font-size: 14px; white-space: nowrap; }
.lien { color: var(--bleu); text-decoration: none; font-size: 17px; }
.lien:hover { text-decoration: underline; }

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.entete-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; color: var(--texte); }
.logo span { font-weight: 400; color: var(--secondaire); margin-left: 4px; }

/* Accueil */
.hero { text-align: center; padding: 96px 0 0; overflow: hidden; }
.surtitre { font-size: 17px; font-weight: 600; color: var(--secondaire); margin-bottom: 12px; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1.02; letter-spacing: -0.045em; }
.hero-lead { margin: 24px auto 0; max-width: 640px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--secondaire); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; margin-top: 36px; }
.scene3d { position: relative; height: 520px; margin-top: 10px; opacity: 0; transition: opacity 1.2s ease; }
.scene3d.pret { opacity: 1; }
.scene3d canvas { display: block; width: 100% !important; height: 100% !important; }
.scene3d.sans3d { opacity: 1; height: 420px; margin: 40px auto 0; width: min(1040px, 100% - 44px); border-radius: 28px; background: center / cover no-repeat url("https://static.wixstatic.com/media/77ab07_7bfe4c0d96a743c89ed7692c8fe1a760~mv2.jpg/v1/fill/w_1400,h_700,al_c,q_80,enc_auto/R.jpg"); }

/* Sections */
.section { padding: 110px 0; text-align: center; }
.gris { background: var(--gris); }
.section h2 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.07; }
.intro { margin: 16px auto 0; max-width: 620px; font-size: 21px; line-height: 1.4; color: var(--secondaire); }

/* Trois blocs */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; text-align: left; }
.bloc { background: var(--blanc); border-radius: 28px; padding: 40px 34px 44px; box-shadow: 0 4px 24px rgba(0, 0, 0, .04); }
.icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gris); margin-bottom: 26px; }
.icone svg { width: 28px; height: 28px; fill: none; stroke: var(--texte); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.bloc h3 { font-size: 28px; margin-bottom: 8px; }
.bloc p { color: var(--secondaire); font-size: 17px; }

/* Mosaïque de photos */
.mosaique { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; margin-top: 56px; }
.mosaique figure { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--gris); }
.mosaique .m1 { grid-row: span 2; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mosaique figure:hover img { transform: scale(1.04); }
.mosaique figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 980px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; color: var(--texte); }
.note { margin-top: 18px; font-size: 12px; color: var(--secondaire); }

/* Offre */
.offre .prix { margin: 28px 0 22px; font-size: 21px; font-weight: 600; }

/* Formulaire */
.demande .form-carte { margin-top: 44px; text-align: left; background: var(--gris); border-radius: 28px; padding: 40px 36px; }
.chargement { color: var(--secondaire); text-align: center; }
.form-carte form { display: grid; gap: 18px; }
.champ { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.champ label, .champ legend { font-size: 14px; font-weight: 500; color: var(--texte); }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ input[type="url"], .champ input[type="number"], .champ select, .champ textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ligne);
  background: var(--blanc);
  color: var(--texte);
  font: 400 17px/1.3 var(--police);
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--secondaire) 50%), linear-gradient(135deg, var(--secondaire) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.champ input::placeholder, .champ textarea::placeholder { color: #a1a1a6; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.champ [aria-invalid="true"] { border-color: #e30000; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--secondaire); cursor: pointer; }
.case input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--bleu); flex: none; }
.case a { color: var(--bleu); }
.requis { color: var(--secondaire); margin-left: 2px; }
.aide { font-size: 13px; color: var(--secondaire); }
.erreur, .erreur-form { color: #e30000; font-size: 13px; }
.erreur:empty, .erreur-form:empty { display: none; }
.form-carte .btn { width: 100%; margin-top: 6px; }
.merci { text-align: center; }
.merci .kicker { color: var(--secondaire); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.merci h3 { font-size: 32px; margin-bottom: 10px; }
.merci p { color: var(--secondaire); margin-bottom: 8px; }

/* Effet 3D au survol */
[data-3d] { transition: transform .3s ease-out; will-change: transform; }

/* Pied de page */
.pied { background: var(--gris); border-top: 1px solid rgba(0, 0, 0, .06); padding: 22px 0 90px; }
.pied-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 12px; color: var(--secondaire); }
.pied nav { display: flex; gap: 20px; }
.pied a { color: var(--secondaire); text-decoration: none; }
.pied a:hover { color: var(--texte); text-decoration: underline; }

.cta-mobile { display: none; }

/* Pages légales */
.legal { padding: 80px 0 100px; text-align: left; }
.legal .kicker { font-size: 17px; font-weight: 600; color: var(--secondaire); margin-bottom: 8px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.07; margin-bottom: 10px; }
.legal h1 em { font-style: normal; }
.legal .maj { color: var(--secondaire); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--texte); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--bleu); }

@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; }
  .mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .mosaique .m1 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .hero { padding-top: 64px; }
  .scene3d { height: 380px; }
  .section { padding: 80px 0; }
  .intro { font-size: 19px; }
  .bloc { padding: 32px 26px 36px; }
  .mosaique { grid-template-rows: 260px 160px 160px; gap: 10px; }
  .demande .form-carte { padding: 28px 20px; }
  .entete .btn-petit { display: none; }
  .cta-mobile {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 60;
    box-shadow: 0 8px 24px rgba(0, 113, 227, .3);
    transition: opacity .25s, transform .25s;
  }
  .cta-mobile.cache { opacity: 0; transform: translateY(20px); pointer-events: none; }
}

/* ============ Accueil avec photo ============ */
.hero-photo { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: zoomLent 18s ease-out forwards; }
@keyframes zoomLent { to { transform: scale(1); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.05) 80%), linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 45%); }
.hero-photo-in { position: relative; z-index: 1; padding: 0 0 96px; }
.hero-photo h1 { color: #fff; font-size: clamp(46px, 8vw, 92px); line-height: 1.02; letter-spacing: -0.045em; max-width: 820px; }
.clair { color: rgba(255, 255, 255, .82) !important; }
.lien.clair { color: #fff !important; }
.hero-photo .hero-lead { margin: 22px 0 0; max-width: 560px; text-align: left; }
.hero-actions.gauche { justify-content: flex-start; }
.hero-photo .surtitre { color: rgba(255,255,255,.75); }

/* Mission */
.mission { padding: 120px 0; }
.grand-texte { max-width: 900px; margin: 0 auto; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; color: #86868b; text-align: left; }
.grand-texte strong { color: var(--texte); font-weight: 700; }

/* Rangées photo + texte */
.rangee { padding: 100px 0; }
.rangee-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.rangee-in.inverse .rangee-photo { order: 2; }
.rangee-photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.12); aspect-ratio: 4 / 3; }
.rangee-photo img { width: 100%; height: 100%; object-fit: cover; }
.rangee-texte h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; margin-bottom: 18px; }
.rangee-texte p:not(.surtitre) { font-size: 19px; color: var(--secondaire); line-height: 1.5; }

/* Bande photo */
.bande { position: relative; height: min(70vh, 620px); overflow: hidden; background: #000; }
.bande img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.bande-texte { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.15)); padding: 0 22px; }
.bande-texte h2 { color: #fff; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; }

/* Section 3D */
.section-3d { padding-bottom: 60px; overflow: hidden; }
.section-3d .scene3d { margin-top: 10px; }
.section-3d .note { margin-top: 0; }

@media (max-width: 860px) {
  .rangee-in, .rangee-in.inverse { grid-template-columns: 1fr; gap: 36px; }
  .rangee-in.inverse .rangee-photo { order: 0; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.2) 100%); }
}
@media (max-width: 600px) {
  .hero-photo { min-height: 86vh; }
  .hero-photo-in { padding-bottom: 110px; }
  .hero-actions.gauche { gap: 20px; }
  .mission, .rangee { padding: 80px 0; }
  .bande { height: 420px; }
}

/* ============ Légal : pied de page, barre des témoins ============ */
.pied { background: var(--gris); border-top: 1px solid rgba(0, 0, 0, .06); padding: 28px 0 100px; font-size: 12px; color: var(--secondaire); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 14px; border-bottom: 1px solid var(--ligne); }
.pied-liens a { color: var(--texte); text-decoration: none; }
.pied-liens a:hover { text-decoration: underline; }
.pied-avis { margin-top: 14px; max-width: 760px; line-height: 1.5; }
.pied-bas { margin-top: 10px; }
.legal .retour { margin-top: 48px; }
.legal .retour a { text-decoration: none; }
.legal strong { font-weight: 600; }
.bandeau-temoins { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; width: min(720px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px; padding: 16px 18px 16px 22px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 12px 40px rgba(0, 0, 0, .14); border: 1px solid rgba(0, 0, 0, .06); transition: opacity .35s, transform .35s; }
.bandeau-temoins p { font-size: 13px; line-height: 1.45; color: var(--texte); }
.bandeau-temoins a { color: var(--bleu); }
.bandeau-temoins .btn { flex: none; }
.bandeau-temoins.ferme { opacity: 0; transform: translate(-50%, 20px); }
@media (max-width: 600px) {
  .bandeau-temoins { flex-direction: column; align-items: stretch; bottom: 84px; }
  .bandeau-temoins .btn { width: 100%; }
}

/* ============ Grille des commerces ============ */
.grille-commerces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; text-align: left; }
.commerce { background: var(--blanc); border-radius: 24px; overflow: hidden; box-shadow: 0 4px 24px rgba(0, 0, 0, .06); transition: transform .3s ease, box-shadow .3s ease; }
.commerce:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0, 0, 0, .1); }
.commerce img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.commerce-texte { padding: 20px 22px 24px; }
.commerce-texte h3 { font-size: 22px; margin-bottom: 4px; }
.commerce-texte p { font-size: 16px; color: var(--secondaire); }
.section-commerces { background: var(--blanc); }
.section-commerces .commerce { border: 1px solid rgba(0, 0, 0, .06); }
@media (max-width: 860px) { .grille-commerces { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grille-commerces { grid-template-columns: 1fr; gap: 16px; } }

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo svg { width: 28px; height: 28px; margin-right: 9px; flex: none; }
