:root {
  --main:#0b6e4f; --main-2:#13906a; --dark:#12263a; --deep:#0a1621; --light:#f6f4ee; --sand:#ebe8dd;
  --ink:#111; --accent:#e8a33d;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
* { box-sizing:border-box; margin:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--sans); color:var(--dark); background:var(--light); line-height:1.5; -webkit-font-smoothing:antialiased; }
section[id] { scroll-margin-top:70px; }
a { color:inherit; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

/* ---------- Protection des images (dissuasion) ---------- */
img { max-width:100%; pointer-events:none; user-select:none; -webkit-user-select:none; -webkit-user-drag:none; -webkit-touch-callout:none; }
@media print { img, .stage, #dmc-all, #lightbox { display:none !important; } }

/* ---------- En-tête ---------- */
.header { display:flex; justify-content:space-between; align-items:center; padding:1rem 2rem; background:rgba(18,38,58,.92); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); position:sticky; top:0; z-index:1000; border-bottom:1px solid #ffffff14; }
.logo { font-family:var(--serif); font-weight:700; color:#fff; text-decoration:none; letter-spacing:.18em; font-size:.95rem; }
nav a { margin-left:1.6rem; text-decoration:none; color:#ffffffd9; font-size:.9rem; transition:color .25s; }
nav a:hover { color:var(--accent); }
.nav-cta { border:1px solid #fff; padding:.45rem 1rem; border-radius:999px; color:#fff; }
.nav-cta:hover { background:#fff; color:var(--dark); }
.burger { display:none; background:none; border:0; font-size:1.5rem; color:#fff; cursor:pointer; }

/* ---------- Bandeau d'accueil ---------- */
.hero { position:relative; min-height:88vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:6rem 1rem; color:#fff; overflow:hidden;
  background:linear-gradient(rgba(18,38,58,.78),rgba(11,110,79,.62)),url('https://laplainedescartes.wordpress.com/wp-content/uploads/2025/12/1763639260696.jpg?w=1600') center/cover, linear-gradient(135deg,var(--main),var(--dark));
  will-change:background-position; }
.hero::before { content:''; position:absolute; inset:0; pointer-events:none;
  background:repeating-radial-gradient(circle at 25% 120%, transparent 0 34px, rgba(255,255,255,.07) 34px 35px),
             repeating-radial-gradient(circle at 80% -20%, transparent 0 46px, rgba(232,163,61,.09) 46px 47px); }
.hero-inner { position:relative; z-index:1; }
.hero h1 { font-family:var(--serif); font-weight:500; font-size:clamp(2rem,5.2vw,3.6rem); letter-spacing:.02em; margin-bottom:1rem; text-shadow:0 2px 20px #0006; }
.hero h1 span { color:var(--accent); font-weight:300; margin:0 .15em; }
.hero-sub { font-size:1.15rem; opacity:.92; margin-bottom:.5rem; }
.eyebrow { text-transform:uppercase; letter-spacing:.38em; font-size:.8rem; color:var(--accent); margin-bottom:1.2rem; }
.btn { display:inline-block; margin-top:1.5rem; padding:.85rem 1.7rem; background:#fff; color:var(--main); border-radius:999px; text-decoration:none; font-weight:600; transition:transform .25s, box-shadow .25s, background .25s, color .25s; }
.btn:hover { transform:translateY(-2px); box-shadow:0 10px 24px #0003; }
.btn.dark { background:var(--main); color:#fff; border:0; cursor:pointer; font:inherit; font-weight:600; }
.btn.dark:hover { background:var(--main-2); }
.btn.small { margin-top:1rem; padding:.55rem 1.2rem; font-size:.88rem; }
.btn.ghost { background:transparent; color:#fff; border:1px solid #fff; }
.btn.ghost:hover { background:#fff; color:var(--dark); }
.hero .btn { margin-right:.6rem; }

/* ---------- Sections ---------- */
.section { padding:5.5rem 2rem; max-width:1100px; margin:0 auto; }
.section.alt { max-width:none; background:var(--sand); }
.section.alt > * { max-width:1100px; margin-left:auto; margin-right:auto; }
.section h2 { font-family:var(--serif); font-size:2rem; margin-bottom:2rem; font-weight:500; letter-spacing:.02em; position:relative; padding-bottom:.9rem; }
.section h2::after { content:''; position:absolute; left:0; bottom:0; width:56px; height:3px; border-radius:3px; background:var(--accent); }
.sub { margin:3rem 0 1rem; font-size:.95rem; text-transform:uppercase; letter-spacing:.16em; font-weight:600; color:var(--main); }
.lead { margin-bottom:1.5rem; line-height:1.75; font-size:1.05rem; }
.small-note { font-size:.85rem; color:#555; line-height:1.5; }
.two-cols { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:3rem; line-height:1.8; }
.about { align-items:center; }
.about img { width:100%; border-radius:16px; box-shadow:0 20px 40px #12263a33; }
.about p { margin-bottom:1rem; }

/* ---------- Ki ca mi lé ? : deux textes côte à côte ---------- */
.about-cols { display:grid; grid-template-columns:1fr 1fr; gap:1.6rem; margin-bottom:2rem; }
.about-panel { position:relative; padding:2.2rem 2.2rem 2.4rem; border-radius:22px; color:#f6f1e3; font-size:1.02rem; line-height:1.85; overflow:hidden; box-shadow:0 22px 46px #12263a40; }
.about-panel::before { content:''; position:absolute; inset:0; pointer-events:none; background:repeating-radial-gradient(circle at 105% 110%, transparent 0 30px, rgba(255,255,255,.055) 30px 31px); }
.about-panel > * { position:relative; }
.about-panel.p1 { background:linear-gradient(150deg,#0b6e4f 0%,#0c5c4a 55%,#12263a 118%); }
.about-panel.p2 { background:linear-gradient(150deg,#12263a 0%,#1a4551 62%,#0b6e4f 135%); }
.about-panel .kicker { display:block; text-transform:uppercase; letter-spacing:.32em; font-size:.74rem; color:var(--accent); margin-bottom:1.1rem; }
.about-panel p { margin-bottom:0; }
.about-panel p + p { margin-top:1.1rem; }
.about-panel strong { color:#ffd48a; font-weight:700; }
.about-me { display:flex; justify-content:flex-end; margin-top:1.4rem; }
.about-me img { width:84px; height:84px; object-fit:cover; border-radius:50%; border:2px solid var(--accent); box-shadow:0 8px 20px #0006; }
.about .about-me img.fx { clip-path:none; }
.about-sign { margin-top:2rem; text-align:center; line-height:1.85; max-width:820px; margin-left:auto; margin-right:auto; }
.about-sign a { color:var(--main); font-weight:600; }

/* Trait Cilaos <-> altitude (1 200 m) */
.about-panel strong.cilaos-mark { background:linear-gradient(to top, rgba(232,163,61,.6) 0, rgba(232,163,61,.6) .3em, transparent .3em) no-repeat; background-size:0% 100%; transition:background-size .9s ease .25s; }
.about-panel strong.cilaos-mark.on { background-size:100% 100%; }
#cilaos-link { position:fixed; left:0; top:0; width:100vw; height:100vh; pointer-events:none; z-index:880; opacity:0; transition:opacity .5s ease; overflow:visible; }
#cilaos-link.on { opacity:1; }
#cilaos-link path { fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:1; transition:stroke-dashoffset 1s cubic-bezier(.3,.7,.2,1); }
#cilaos-link.on path { stroke-dashoffset:0; }
#cilaos-link .dot { fill:var(--accent); stroke:#fff; stroke-width:1.5; }
#cilaos-link .pulse { fill:var(--accent); opacity:.4; transform-box:fill-box; transform-origin:center; animation:ping 2.2s ease-out infinite; }
#cilaos-link .chip { fill:#fff; stroke:var(--accent); stroke-width:1.2; }
#cilaos-link text { font-family:var(--sans); font-size:10px; font-weight:700; letter-spacing:.14em; fill:var(--dark); }
@keyframes ping { 0% { transform:scale(1); opacity:.5; } 100% { transform:scale(3.4); opacity:0; } }

.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1.5rem; padding:1rem 0 2rem; }
.card { background:#fff; padding:1.6rem; border-radius:16px; box-shadow:0 2px 10px #12263a14; transition:transform .3s, box-shadow .3s; border:1px solid #12263a0d; }
.card:hover { transform:translateY(-5px); box-shadow:0 16px 34px #12263a22; }

/* Services */
.profil h4, .product h4 { font-family:var(--serif); font-size:1.15rem; margin-bottom:.7rem; font-weight:600; }
.profil ul { margin:0 0 .8rem 1.1rem; line-height:1.65; }
.profil .ex { font-size:.85rem; color:#666; font-style:italic; }
.profil.accent { background:linear-gradient(145deg,var(--dark),#1d4a52); color:#fff; }
.profil.accent p { margin-bottom:1rem; }

.tags { display:flex; flex-wrap:wrap; gap:.6rem; list-style:none; padding:0; }
.tags li { background:#fff; padding:.45rem 1rem; border-radius:999px; border:1px solid var(--main); transition:background .25s, color .25s; }
.tags li:hover { background:var(--main); color:#fff; }

/* ---------- Portfolio : filtres ---------- */
.filters { margin:0 0 1.2rem; }
.filters button { padding:.45rem 1rem; border:1px solid var(--main); background:#fff; border-radius:999px; cursor:pointer; margin:0 .5rem .5rem 0; font:inherit; font-size:.85rem; transition:background .25s, color .25s; }
.filters button:hover { background:#e7f1ec; }
.filters .active { background:var(--main); color:#fff; }

/* ---------- Carrousel "coverflow" ---------- */
.stage { position:relative; height:360px; border-radius:20px; overflow:hidden; perspective:1200px; outline:none; user-select:none; -webkit-user-select:none; touch-action:pan-y;
  background:radial-gradient(ellipse at 50% 125%,#1b8a64 0%,#12263a 58%,#0a1621 100%); box-shadow:0 24px 50px #0a162140; }
.stage::before { content:''; position:absolute; inset:0; pointer-events:none;
  background:repeating-radial-gradient(circle at 50% 118%, transparent 0 26px, rgba(255,255,255,.06) 26px 27px); }
.stage:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.cf-track { position:absolute; inset:0; transform-style:preserve-3d; }
.stage-msg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#ffffffcc; font-size:.9rem; }
.cf-slide { position:absolute; left:50%; top:44%; width:168px; height:224px; margin:-112px 0 0 -84px; border-radius:10px; overflow:hidden; cursor:pointer; background:#0b1824;
  box-shadow:0 18px 32px #000a; border:1px solid #ffffff26;
  transition:transform .75s cubic-bezier(.2,.7,.2,1), opacity .6s, box-shadow .4s, border-color .4s; will-change:transform; }
.cf-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.cf-slide.active { border-color:var(--accent); box-shadow:0 26px 44px #000b, 0 0 0 2px var(--accent); }
.cf-cap { position:absolute; left:0; right:0; bottom:16px; z-index:200; display:flex; flex-direction:column; align-items:center; gap:.2rem; color:#fff; text-transform:uppercase; letter-spacing:.14em; font-size:.8rem; pointer-events:none; }
#cf-count { color:var(--accent); font-size:.72rem; letter-spacing:.2em; }
.car-btn { position:absolute; top:44%; transform:translateY(-50%); z-index:300; width:42px; height:42px; border-radius:50%; border:1px solid #ffffff55; background:#ffffff1f; color:#fff; font-size:1.4rem; line-height:1; cursor:pointer; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); transition:background .25s, color .25s; }
.car-btn:hover { background:var(--accent); color:#111; border-color:var(--accent); }
.car-btn.prev { left:14px; }
.car-btn.next { right:14px; }

/* ---------- Vue "toutes les cartes" sans scroll ---------- */
#dmc-all { position:fixed; inset:0; z-index:1500; background:var(--deep); display:flex; flex-direction:column; padding:.8rem 1.2rem 1.2rem; }
#dmc-all[hidden] { display:none; }
.dmc-head { display:flex; justify-content:space-between; align-items:center; color:#fff; letter-spacing:.14em; text-transform:uppercase; font-size:.9rem; padding-bottom:.7rem; }
#dmc-close { background:none; border:0; color:#fff; font-size:1.6rem; cursor:pointer; }
#dmc-grid { flex:1; min-height:0; display:grid; gap:6px; }
#dmc-grid .cell { position:relative; min-width:0; min-height:0; background:#0b1824; border-radius:6px; overflow:hidden; cursor:zoom-in; }
#dmc-grid .cell img { width:100%; height:100%; object-fit:contain; display:block; transition:transform .3s; }
#dmc-grid .cell:hover img { transform:scale(1.05); }
#dmc-grid .cell .day { position:absolute; left:6px; top:6px; background:#000a; color:#fff; font-size:.65rem; padding:.1rem .4rem; border-radius:8px; }
#dmc-grid .cell .lnk { position:absolute; right:6px; top:6px; width:20px; height:20px; border-radius:50%; background:#fff; color:#111; font-size:.7rem; display:flex; align-items:center; justify-content:center; }

/* ---------- Boutique ---------- */
.boutique-pitch { font-family:var(--serif); font-size:clamp(1.25rem,2.4vw,1.75rem); line-height:1.45; color:var(--dark); margin-bottom:1rem; }
.shop-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; list-style:none; padding:0; margin-bottom:1.5rem; }
.shop-steps li { display:flex; gap:.9rem; align-items:flex-start; background:#fff; border-radius:16px; padding:1.1rem 1.2rem; box-shadow:0 2px 10px #12263a14; }
.shop-steps span { flex:0 0 2.1rem; height:2.1rem; border-radius:50%; background:var(--accent); color:#111; font-weight:700; display:flex; align-items:center; justify-content:center; }
.shop-steps b { display:block; margin-bottom:.15rem; }
.shop-steps p { font-size:.88rem; color:#555; line-height:1.5; }

.product img, .product .noimg { width:100%; height:200px; object-fit:cover; border-radius:10px; margin-bottom:1rem; }
.product .noimg { background:#e4e9e2; display:flex; align-items:center; justify-content:center; color:#777; font-size:.85rem; }
.product .prix { font-weight:700; color:var(--main); margin:.5rem 0; }
.product .btn { margin-top:.5rem; }
.fmt { list-style:none; padding:0; margin:.8rem 0 .4rem; }
.fmt li { display:flex; justify-content:space-between; gap:1rem; padding:.45rem 0; border-bottom:1px dashed #12263a33; font-size:.92rem; }
.fmt b { color:var(--main); }

/* ---------- Contact : formulaire + "Comment ça marche" ---------- */
.contact-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:3rem; align-items:start; }
#form { display:grid; gap:1rem; }
#form input, #form textarea, #form select { padding:.85rem 1rem; border:1px solid #c9cfc6; border-radius:10px; font:inherit; background:#fff; transition:border-color .25s, box-shadow .25s; width:100%; }
#form input:focus, #form textarea:focus, #form select:focus { outline:none; border-color:var(--main); box-shadow:0 0 0 3px #0b6e4f26; }
#form .hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.form-legal { font-size:.74rem; color:#555; line-height:1.55; }
.linklike { background:none; border:0; padding:0; font:inherit; color:var(--main); text-decoration:underline; cursor:pointer; }
.form-msg { padding:.8rem 1rem; border-radius:10px; font-size:.92rem; }
.form-msg.ok { background:#e2f3ea; color:#0b5a41; }
.form-msg.err { background:#fbe4e1; color:#8a2417; }

.howto { background:linear-gradient(160deg,var(--dark),#1d4a52); color:#fff; border-radius:18px; padding:1.8rem; box-shadow:0 18px 40px #12263a33; position:sticky; top:90px; }
.howto h3 { font-family:var(--serif); font-size:1.3rem; font-weight:500; margin-bottom:1.2rem; }
.howto-steps { list-style:none; padding:0; display:grid; gap:1.1rem; position:relative; }
.howto-steps li { display:flex; gap:1rem; align-items:flex-start; }
.howto-steps span { flex:0 0 2.1rem; height:2.1rem; border-radius:50%; background:var(--accent); color:#111; font-weight:700; display:flex; align-items:center; justify-content:center; }
.howto-steps b { display:block; margin-bottom:.1rem; }
.howto-steps p { font-size:.88rem; opacity:.85; line-height:1.5; }

/* ---------- Lightbox ---------- */
#lightbox { position:fixed; inset:0; background:#000d; display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:2000; cursor:zoom-out; }
#lightbox[hidden] { display:none; }
#lightbox figure { margin:0; text-align:center; max-width:95vw; }
#lightbox figure img { max-width:95vw; max-height:80vh; border-radius:8px; }
#lightbox figcaption, #lightbox .cap { color:#fff; margin-top:.8rem; font-size:.95rem; }
#lightbox figcaption a, #lightbox .cap a { color:#fff; text-decoration:underline; font-weight:600; }
#lb-close { position:absolute; top:16px; right:20px; background:none; border:0; color:#fff; font-size:1.8rem; cursor:pointer; }

/* ---------- Pied de page ---------- */
footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.8rem; padding:1.4rem 2rem; font-size:.88rem; color:#555; border-top:1px solid #11111122; }
.legal { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.5rem 1.4rem; margin-left:auto; }
.legal button { background:none; border:0; padding:.2rem 0; font:inherit; font-size:.92rem; color:#444; cursor:pointer; border-bottom:1px solid transparent; transition:color .25s, border-color .25s; }
.legal button:hover { color:var(--main); border-bottom-color:var(--main); }

/* ---------- Fenêtres d'information (centrées) ---------- */
dialog { margin:auto; border:0; border-radius:18px; padding:0; width:min(720px,92vw); max-height:86vh; color:var(--dark); background:#fff; box-shadow:0 24px 70px #0008; }
dialog[open] { animation:pop .3s ease; }
dialog::backdrop { background:rgba(10,22,33,.72); backdrop-filter:blur(3px); }
@keyframes pop { from { opacity:0; transform:translateY(14px) scale(.98); } to { opacity:1; transform:none; } }
.dlg-body { position:relative; padding:2rem 2rem 2.2rem; max-height:86vh; overflow-y:auto; font-size:.95rem; line-height:1.7; }
.dlg-body h2 { font-family:var(--serif); font-size:1.5rem; font-weight:500; margin:0 2.2rem 1.2rem 0; padding:0; }
.dlg-body h2::after { display:none; }
.dlg-body h3 { font-size:.85rem; text-transform:uppercase; letter-spacing:.12em; margin:1.5rem 0 .4rem; color:var(--main); }
.dlg-body p { margin-bottom:.7rem; }
.dlg-close { position:absolute; top:1rem; right:1.2rem; background:none; border:0; font-size:1.4rem; cursor:pointer; color:inherit; }
.dlg-body details { border-bottom:1px solid #11111122; padding:.8rem 0; }
.dlg-body summary { cursor:pointer; font-weight:600; }
.dlg-body details p { margin-top:.6rem; }
.todo { background:#fff3b0; padding:0 .25rem; border-radius:3px; }

/* ---------- Fondus au défilement ---------- */
.fx { opacity:0; transform:translateY(28px); transition:opacity .9s ease var(--d,0ms), transform .9s ease var(--d,0ms); }
.fx.visible { opacity:1; transform:none; }
.about img.fx { opacity:1; transform:none; clip-path:inset(0 0 100% 0); transition:clip-path 1.2s cubic-bezier(.2,.7,.2,1); }
.about img.fx.visible { clip-path:inset(0); }

/* ---------- Tracé d'itinéraire ---------- */
#route { position:fixed; left:24px; top:90px; bottom:40px; width:1px; background:#11111155; z-index:900; }
#route-fill { width:100%; height:0; background:var(--ink); }
#route .tick { position:absolute; left:0; transform:translateY(-50%); padding-left:14px; font-size:.62rem; line-height:1; color:#555; white-space:nowrap; pointer-events:none; }
#route .tick::before { content:''; position:absolute; left:0; top:50%; width:8px; height:1px; background:#11111188; }
#route .stop { position:absolute; left:-5px; width:11px; height:11px; border-radius:50%; background:var(--light); border:1px solid #111; transform:translateY(-50%); transition:.4s; display:flex; align-items:center; justify-content:center; color:var(--ink); text-decoration:none; }
#route .stop.passed { background:var(--ink); }
#route .stop.first, #route .stop.last { width:34px; height:34px; left:-17px; background:var(--light); border:1px solid #111; }
#route .stop.first.passed, #route .stop.last.passed { background:var(--light); }
#route .stop svg { display:block; }
#route .stop::after { content:attr(data-label); position:absolute; left:calc(100% + 10px); top:50%; transform:translateY(-50%); white-space:nowrap; font-size:.72rem; letter-spacing:.05em; background:var(--ink); color:#fff; padding:.2rem .6rem; border-radius:3px; opacity:0; pointer-events:none; transition:.3s; }
#route .stop:hover::after { opacity:1; }
#route-alt { position:absolute; left:14px; top:0; transform:translateY(-50%); background:var(--ink); color:#fff; font-size:.66rem; letter-spacing:.05em; padding:.15rem .5rem; border-radius:10px; white-space:nowrap; pointer-events:none; z-index:2; }

@media (max-width:1300px) { #route { left:20px; } #route .tick { display:none; } }
@media (max-width:900px) {
  #route { display:none; }
  #cilaos-link { display:none; }
  .contact-grid { grid-template-columns:1fr; }
  .howto { position:static; }
  .about-cols { grid-template-columns:1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width:700px) {
  .burger { display:block; }
  nav { display:none; flex-direction:column; position:absolute; top:100%; left:0; right:0; background:var(--dark); padding:1rem; }
  nav.open { display:flex; }
  nav a { margin:.6rem 0; }
  .section { padding:3.8rem 1.2rem; }
  .section h2 { font-size:1.55rem; }
  .about-panel { padding:1.7rem 1.4rem 1.9rem; }
  .shop-steps { grid-template-columns:1fr; }
  .stage { height:320px; }
  .cf-slide { width:140px; height:190px; margin:-95px 0 0 -70px; }
  .car-btn { width:36px; height:36px; }
  .car-btn.prev { left:8px; }
  .car-btn.next { right:8px; }
  footer { flex-direction:column; align-items:flex-end; }
  .legal { gap:.4rem .9rem; }
  .dlg-body { padding:1.6rem 1.3rem 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; }
  .fx, .about img.fx { transition:none; opacity:1; transform:none; clip-path:none; }
  .cf-slide { transition:none; }
  #cilaos-link path { transition:none; }
}

/* --- Retouches 04/12 --- */
.hero .hero-sub { translate: 0 .6rem; }
#route-alt { left: 46px; }
#services li { line-height: 1.5; padding-bottom: .2rem; overflow: visible; }
/* --- Altitude : valeurs statiques decalees et visibles a toutes les largeurs --- */
@media (max-width:1300px) and (min-width:901px) { #route .tick { display:block; } }
#route .tick { padding-left: 30px; }

/* --- Titre accueil sur telephone --- */
@media (max-width:700px) {
  .hero h1.hero-brand { font-size: 7.2vw !important; white-space: nowrap; }
}