/* ==========================================================
   Les Jardins de l'Atlantide – feuille de style principale
   ========================================================== */
:root {
  --teal: #1F4E5A;
  --teal-dark: #143740;
  --brown: #6B4F2E;
  --sand: #E8D4B0;
  --sand-light: #F6F1E8;
  --cream: #FBF8F3;
  --ink: #1E1E1E;
  --muted: #6B6B6B;
  --line: #E3DCD0;
  --gold: #C8A35C;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 50, .12);
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1180px;
}
.lang-ar {
  --font-head: 'Tajawal', 'Segoe UI', sans-serif;
  --font-body: 'Tajawal', 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream);
  line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--brown); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--teal-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); background: var(--teal); color: #fff; padding: .5rem 1rem; }
.skip:focus { width: auto; height: auto; clip: auto; inset-inline-start: 1rem; z-index: 999; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--sand-light); }
.section-dark { background: var(--teal-dark); color: #E9EFF0; }
.section-dark h2, .section-dark h3 { color: var(--sand); }
.kicker { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); font-weight: 600; margin-bottom: .6rem; }
.section-dark .kicker { color: var(--gold); }
.lang-ar .kicker { letter-spacing: 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.section-dark .lead { color: #C9D6D9; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; transition: .2s; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: var(--brown); color: #fff; }
.btn-secondary:hover { background: #55391f; color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light { background: var(--sand); color: var(--teal-dark); }
.btn-light:hover { background: #fff; color: var(--teal-dark); }
.btn-outline-light { border-color: var(--sand); color: var(--sand); }
.btn-outline-light:hover { background: var(--sand); color: var(--teal-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--teal-dark); }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--teal); color: var(--sand); display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand-sub { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }
.lang-ar .brand-sub { letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.nav a { padding: .5rem .6rem; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
@media (max-width: 1400px) { .nav a { padding: .45rem .45rem; font-size: .84rem; } .lang-current { padding: .4rem .7rem; font-size: .8rem; } }
.nav a:hover, .nav a.active { background: var(--sand-light); color: var(--teal); }
.lang-quick { display: none; gap: .2rem; margin-inline-start: auto; }
.lang-quick a { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 .3rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .68rem; font-weight: 700; color: var(--teal-dark); letter-spacing: .02em; }
.lang-quick a.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--teal-dark); transition: .2s; }
.lang-switch { position: relative; }
.lang-current { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-family: var(--font-body); font-size: .85rem; display: flex; gap: .4rem; align-items: center; }
.lang-code { font-weight: 700; color: var(--brown); font-size: .75rem; }
.nav .lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: .4rem; min-width: 170px; display: none; z-index: 50; }
.nav .lang-menu.open { display: block; }
.brand-name { white-space: nowrap; }
.lang-menu a { display: flex; gap: .5rem; align-items: center; padding: .5rem .7rem; border-radius: 8px; font-size: .9rem; color: var(--ink); }
.lang-menu a:hover, .lang-menu a.active { background: var(--sand-light); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 780px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,55,64,.15) 0%, rgba(20,55,64,.35) 45%, rgba(20,55,64,.88) 100%); }
.hero-content { position: relative; z-index: 1; padding: 5rem 0 3.5rem; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero .kicker { color: var(--sand); }
.hero p { font-size: 1.15rem; color: #E6EEF0; max-width: 58ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-scroll { position: absolute; bottom: 1.2rem; inset-inline-end: 1.5rem; z-index: 1; color: var(--sand); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }

/* Figures strip */
.figures { background: var(--teal); color: #fff; }
.figures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.figure { padding: 1.6rem 1rem; text-align: center; border-inline-end: 1px solid rgba(255,255,255,.12); }
.figure:last-child { border: 0; }
.figure strong { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--sand); line-height: 1; }
.figure span { font-size: .82rem; color: #D6E2E5; }

/* Split section */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; }
.check-list li { padding-inline-start: 1.8rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 700; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.cards.five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(20,40,50,.07); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.card-body .more { font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.icon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.icon-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.6rem; }
.icon-card .num { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); line-height: 1; font-weight: 700; }
.icon-card h3 { margin: .6rem 0 .4rem; font-size: 1.25rem; }
.icon-card p { color: #C9D6D9; font-size: .93rem; margin: 0; }

/* Gallery */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0 2rem; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; font-family: var(--font-body); font-size: .88rem; }
.filters button.active, .filters button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery a { position: relative; border-radius: 12px; overflow: hidden; display: block; background: #ddd; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: .7rem .9rem; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); color: #fff; font-size: .85rem; }
.gallery a.hidden { display: none; }
.lightbox { position: fixed; inset: 0; background: rgba(10,20,25,.94); z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 94vw; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .cap { color: #ddd; margin-top: .8rem; font-size: .9rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.lightbox .close { top: 1rem; inset-inline-end: 1rem; }
.lightbox .prev { left: 1rem; top: 50%; }
.lightbox .next { right: 1rem; top: 50%; }

/* Page hero (interior pages) */
.page-hero { position: relative; min-height: 340px; display: grid; align-items: end; color: #fff; }
.page-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,55,64,.25), rgba(20,55,64,.85)); }
.page-hero .container { position: relative; z-index: 1; padding: 3rem 0 2.2rem; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #DCE6E8; max-width: 60ch; margin: .5rem 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(20,40,50,.06); font-size: .93rem; }
table.data th, table.data td { padding: .75rem .9rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--teal); color: #fff; font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.identity { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.identity div { background: #fff; border-radius: 10px; padding: .9rem 1.1rem; border: 1px solid var(--line); }
.identity dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brown); font-weight: 600; }
.lang-ar .identity dt { letter-spacing: 0; }
.identity dd { margin: .2rem 0 0; font-weight: 500; }

/* Level blocks */
.level { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.level:last-child { border-bottom: 1px solid var(--line); }
.level-name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--teal); }
.level-name small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 400; }
.level ul { margin: 0; padding-inline-start: 1.1rem; columns: 2; gap: 2rem; }
.level li { break-inside: avoid; margin-bottom: .3rem; font-size: .95rem; }

/* Timeline / status */
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.status div { background: #fff; border-radius: 12px; padding: 1.2rem; border-inline-start: 4px solid var(--gold); }
.status strong { display: block; color: var(--teal); margin-bottom: .3rem; }
.status p { margin: 0; font-size: .92rem; color: var(--muted); }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.doc { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; color: var(--ink); }
.doc:hover { border-color: var(--teal); }
.doc .ico { width: 46px; height: 46px; border-radius: 10px; background: var(--sand-light); color: var(--brown); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.doc strong { display: block; }
.doc span { font-size: .85rem; color: var(--muted); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--teal-dark); }
input, select, textarea { width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-body); font-size: .95rem; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { width: auto; margin-top: .25rem; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; }
.alert-success { background: #E6F4EA; color: #1E5E33; border: 1px solid #BFE3C9; }
.alert-error { background: #FBE9E7; color: #8A2A1F; border: 1px solid #F1C6C0; }
.contact-side { background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); }
.contact-side h3 { margin-top: 0; }
.contact-side dl { margin: 0; }
.contact-side dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brown); margin-top: 1rem; }
.contact-side dd { margin: .2rem 0 0; }

/* Map & tour */
#map { height: 560px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; }
#map-mini { height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; }
.poi-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; margin-top: 1.5rem; }
.poi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; display: flex; gap: .8rem; align-items: center; cursor: pointer; font-size: .92rem; }
.poi:hover { border-color: var(--teal); }
.poi .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.poi small { display: block; color: var(--muted); }
.leaflet-popup-content { font-family: var(--font-body); }
.leaflet-popup-content strong { color: var(--teal); }
.popup-project { min-width: 220px; line-height: 1.45; }
.popup-actions { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; }
.popup-btn { display: inline-flex; align-items: center; gap: .3rem; background: var(--teal); color: #fff !important; padding: .4rem .85rem; border-radius: 999px; font-weight: 600; font-size: .82rem; }
.popup-btn:hover { background: var(--teal-dark); }
.popup-link { font-size: .82rem; }
.leaflet-bar.map-replay { background: #fff; border: 0; padding: .35rem .7rem; cursor: pointer; font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--teal-dark); display: flex; gap: .3rem; align-items: center; }
.leaflet-bar.map-replay:hover { background: var(--sand-light); }
@media (max-width: 560px) { .leaflet-bar.map-replay span { display: none; } }
#panorama, #panorama360, .pano-wrap .pano-viewer { height: 600px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #222; }
.scene-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; margin-top: 1rem; }
.scene { border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; padding: 0; font-family: var(--font-body); text-align: start; }
.scene img { aspect-ratio: 2 / 1; object-fit: cover; }
.scene span { display: block; padding: .5rem .7rem; font-size: .82rem; font-weight: 500; }
.scene.active { border-color: var(--gold); }
.pano-wrap { position: relative; }
.state-switch { position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 5; display: flex; gap: .3rem; background: rgba(20,55,64,.72); backdrop-filter: blur(6px); padding: .3rem; border-radius: 999px; }
.state-btn { border: 0; background: transparent; color: #E6EEF0; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font-family: var(--font-body); font-size: .85rem; font-weight: 600; transition: .2s; }
.state-btn:hover { background: rgba(255,255,255,.12); }
.state-btn.active { background: var(--gold); color: var(--teal-dark); }
.pano-title { position: absolute; bottom: 1rem; inset-inline-start: 1rem; z-index: 5; background: rgba(20,55,64,.72); color: #fff; padding: .45rem .9rem; border-radius: 8px; font-size: .9rem; font-weight: 500; pointer-events: none; }
@media (max-width: 560px) { .state-switch { top: auto; bottom: 3.2rem; inset-inline: 1rem; justify-content: center; } .state-btn { padding: .45rem .7rem; font-size: .78rem; } }
/* Vidéo de la visite */
.video-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #143740; aspect-ratio: 16 / 9; }
.video-wrap video { width: 100%; height: 100%; display: block; }

/* Visite guidée : flèches de navigation et mode repérage */
.pnlm-hotspot-base.tour-hotspot { width: 44px; height: 44px; border-radius: 50%; background: rgba(200,163,92,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143740' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/22px no-repeat; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; transition: transform .2s; }
.pnlm-hotspot-base.tour-hotspot:hover { transform: scale(1.12); }
.pnlm-hotspot-base.tour-hotspot .pnlm-tooltip span { font-family: var(--font-body); font-size: .85rem; background: rgba(20,55,64,.9); border-radius: 8px; padding: .4rem .7rem; }
.picker { margin-top: 1rem; background: #fff; border: 1px dashed var(--gold); border-radius: 12px; padding: 1rem 1.2rem; display: grid; gap: .5rem; }
.picker p { margin: 0; color: var(--muted); font-size: .9rem; }
.picker code { display: block; background: var(--sand-light); padding: .6rem .8rem; border-radius: 8px; font-size: .95rem; direction: ltr; }
.picker .btn { justify-self: start; padding: .5rem 1.1rem; font-size: .85rem; }
.tour-teaser { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: grid; place-items: center; color: #fff; text-align: center; background-size: cover; background-position: center; }
.tour-teaser::before { content: ""; position: absolute; inset: 0; background: rgba(20,55,64,.55); }
.tour-teaser > div { position: relative; z-index: 1; padding: 2rem; }
.tour-teaser h2 { color: #fff; }
.play { width: 82px; height: 82px; border-radius: 50%; border: 2px solid var(--sand); display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.6rem; color: var(--sand); }

/* CTA band + footer */
.cta-band { background: linear-gradient(120deg, var(--brown), #8a6a44); color: #fff; padding: 3.5rem 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #F3E9DA; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.site-footer { background: var(--teal-dark); color: #C9D6D9; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer .brand-sub { color: var(--sand); }
.footer-about { max-width: 46ch; }
.site-footer h3 { color: var(--sand); font-size: 1.1rem; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: #E4ECEE; }
.site-footer a:hover { color: var(--sand); }
address { font-style: normal; }
.footer-langs { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; font-size: .85rem; }
.footer-langs a.active { color: var(--sand); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: #93A6AB; }
.to-top { position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); z-index: 90; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1240px) {
  .nav ul { gap: 0; }
  .nav a { padding: .5rem .5rem; font-size: .85rem; white-space: nowrap; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .lang-quick { display: flex; }
  .nav .lang-switch { display: none; }
  /* Le header (backdrop-filter) sert de bloc conteneur : le menu est positionné sous lui, en absolu. */
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 74px); background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1.2rem 1.5rem 1.6rem; gap: 1.2rem; overflow: auto; z-index: 99; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav .lang-menu { position: static; display: flex; flex-wrap: wrap; gap: .3rem; box-shadow: none; border: 0; background: transparent; }
  .lang-current { display: none; }
  .nav a { font-size: 1.05rem; padding: .8rem 1rem; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .level { grid-template-columns: 1fr; gap: .6rem; }
  .level ul { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  #map, #panorama, #panorama360, .pano-wrap .pano-viewer { height: 460px; }
}
@media (max-width: 560px) {
  .header-inner { gap: .4rem; }
  .brand { gap: .5rem; min-width: 0; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.05rem; }
  .brand-name { font-size: .9rem; line-height: 1.05; white-space: normal; max-width: 110px; }
  .brand-sub { display: none; }
  .lang-quick { gap: 2px; flex-shrink: 0; }
  .lang-quick a { min-width: 24px; height: 24px; padding: 0 .15rem; font-size: .6rem; }
  .nav-toggle { width: 32px; flex-shrink: 0; }
  .nav { top: 100%; }
  .hero { min-height: 78vh; }
  .figure strong { font-size: 1.8rem; }
  .hero-scroll { display: none; }
}
@media (max-width: 340px) {
  .brand-text { display: none; }
}
