:root {
    --emd-red: #e63232;
    --emd-green: #5ac94b;
    --emd-blue: #5b9bd5;
    --bg-dark: #0a0a0c;
    --bg-soft: #121216;
    --bg-card: #16161c;
    --text: #f2f4f8;
    --text-muted: #9aa3b2;
    --border: #262630;
    --radius: 16px;
    --maxw: none;   /* pleine largeur, comme easymultidisplay.com et collectivview.com */
    --gutter: clamp(1rem, 2.5vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;   /* 17 px, comme easymultidisplay.com : lisibilite 50 ans et plus */
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, .display {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1.04;
}

.grad-text {
    background: linear-gradient(100deg, var(--emd-red), var(--emd-green) 55%, var(--emd-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section { padding: calc(5.5rem - 40px) 0 5.5rem; position: relative; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--emd-green);
    margin-bottom: 0.8rem;
}
.section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.6rem; }
.section-lead { color: var(--text-muted); font-size: 1.08rem; max-width: none; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== NAV ===== */
header.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,12,0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 2rem; }
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 2px; display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.logo .dot { font-size: 1.2rem; }
/* nav-links occupe l'espace central. Les liens (.nav-menu) sont centres en absolu dans la barre ;
   les boutons CTA restent dans le flux et sont pousses a droite. */
.nav-links { display: flex; align-items: center; gap: 0.6rem; flex: 1; }
.nav-menu { display: flex; align-items: center; gap: 0.15rem; margin: 0 auto; }
/* Menu aligne sur la regle commune EMD / CollectivView : 1.06rem (17 px), ecart porte par le padding (zone cliquable large) */
.nav-menu > a, .nav-menu .nav-dd-toggle { color: var(--text); font-size: 1.06rem; font-weight: 500; padding: 0.6rem 0.85rem; border-radius: 6px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-menu > a:hover, .nav-menu .nav-dd-toggle:hover { background: #1c2028; }
.nav-links a { color: var(--text-muted); font-size: 1rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 0.8rem; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.5rem; border-radius: 12px;
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
    border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--emd-red), #c41f1f); color: #fff; box-shadow: 0 8px 24px rgba(230,50,50,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(230,50,50,0.4); color: #000; background: linear-gradient(135deg, #ff6b6b, #e23a3a); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-demo { background: linear-gradient(135deg, #2faf48, #15772f); color: #fff; box-shadow: 0 8px 24px rgba(34,140,60,0.30); }
/* Bleu du logo EMD : les 3 boutons du haut reprennent l'ordre vert, rouge, bleu */
.btn-blue { background: linear-gradient(135deg, #5b9bd5, #2f6fae); color: #fff; box-shadow: 0 8px 24px rgba(47,111,174,0.32); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47,111,174,0.45); color: #fff; background: linear-gradient(135deg, #78b2e6, #3a7fc2); }
.btn-demo:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34,140,60,0.45); color: #000; background: linear-gradient(135deg, #46d063, #1f9a3f); }
.nav .btn { padding: 0.55rem 1rem; font-size: 0.95rem; border-radius: 8px; }
/* CTA dans la nav : ne pas heriter du gris .nav-links a -> repos blanc, survol noir */
.nav-links a.btn { color: #fff; }
.nav-links a.btn-primary:hover, .nav-links a.btn-demo:hover { color: #000; }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ===== MENU DEROULANT "Fonctions" ===== */
.nav-dd { position: relative; }
.nav-dd-toggle { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.nav-dd-caret { font-size: 0.65rem; transition: transform 0.2s; }
.nav-dd:hover .nav-dd-caret, .nav-dd:focus-within .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu { display: none; position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 200px; flex-direction: column; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 0.4rem; box-shadow: 0 14px 34px rgba(0,0,0,0.4); z-index: 60; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: flex; }
.nav-dd-menu a { padding: 0.55rem 0.75rem; border-radius: 8px; white-space: nowrap; }
.nav-dd-menu a:hover { background: var(--bg); color: var(--text); }
/* pont invisible sous le libelle pour garder le survol jusqu'au menu */
.nav-dd::after { content: ''; position: absolute; top: 100%; inset-inline: 0; height: 12px; }

/* ===== SELECTEUR DE LANGUE ===== */
.lang { position: relative; }
.lang .lang-btn { display: flex; align-items: center; gap: 0.4rem; background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.7rem; color: var(--text-muted); cursor: pointer; font-weight: 700; font-size: 0.85rem; transition: color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.lang .lang-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.42); }
.lang .lang-btn svg, .lang .lang-btn img.flag { width: 20px; height: 14px; border-radius: 2px; display: block; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.lang .lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0.4rem; min-width: 178px; display: none; flex-direction: column; gap: 2px; box-shadow: 0 16px 40px rgba(0,0,0,0.55); z-index: 200; max-height: min(72vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.lang .lang-menu::-webkit-scrollbar { width: 8px; }
.lang .lang-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 8px; }
.lang.open .lang-menu { display: flex; }
.lang .lang-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 8px; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.lang .lang-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang .lang-menu a.active { color: var(--text); background: rgba(90,201,75,0.12); }
.lang .lang-menu a svg, .lang .lang-menu a img.flag { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }

/* ===== HERO ===== */
.hero { position: relative; padding: calc(4.5rem - 35px) 0 4rem; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 50% at 15% 0%, rgba(230,50,50,0.18), transparent 60%),
        radial-gradient(55% 45% at 85% 10%, rgba(91,155,213,0.18), transparent 60%),
        radial-gradient(50% 50% at 50% 100%, rgba(90,201,75,0.12), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: 1.2rem; }
.hero p.sub { color: var(--text-muted); font-size: 1.15rem; max-width: 520px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-mini { margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: nowrap; color: var(--text-muted); font-size: 0.95rem; }
.hero-mini span { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }

/* Mockups */
.mockups { position: relative; }
.browser {
    border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
    background: #0d0d12; box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #16161c; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.browser-bar i:nth-child(1){ background:#ff5f56;} .browser-bar i:nth-child(2){ background:#ffbd2e;} .browser-bar i:nth-child(3){ background:#27c93f;}
.phone {
    position: absolute; right: -10px; bottom: -34px; width: 27%;
    border-radius: 22px; overflow: hidden; border: 5px solid #1c1c24;
    box-shadow: 0 24px 50px rgba(0,0,0,0.6); background: #000;
}

/* ===== TRUST BAR ===== */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 1.8rem; padding: 1.5rem 2.2rem; }
.trust-item { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 1rem; color: var(--text); }
.trust-item .ico { font-size: 1.3rem; }

/* ===== FEATURE GRID ===== */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.feat {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem; transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.feat:hover, .feat.in.vu:hover { transform: translateY(-4px); border-color: rgba(91,155,213,0.5); }
.feat .ico { font-size: 2rem; margin-bottom: 0.7rem; }
.feat h3 { font-size: 1.45rem; letter-spacing: 1px; margin-bottom: 0.4rem; }
.feat p { color: var(--text-muted); font-size: 1.0625rem; }

/* ===== SPLIT (terrain vs PC) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.4rem; }
.split-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.split-card .cap { padding: 1.6rem 1.6rem 0; }
.split-card h3 { font-size: 1.7rem; letter-spacing: 1px; }
.split-card .tag { font-size: 0.9rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.tag.green { color: var(--emd-green); } .tag.blue { color: var(--emd-blue); } .tag.orange { color: #ff9a3c; }
/* Deploiement : 3 modes cote a cote (le 3e = kit autonome pour salle ephemere) */
.split.split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.split-3 .split-card { display: flex; flex-direction: column; }
.split-3 .split-card > p { padding: 0 1.6rem; }
.split-ref { margin: auto 1.6rem 1.6rem; padding: 1rem 1.1rem; border-radius: 12px; background: rgba(255,154,60,0.08); border: 1px solid rgba(255,154,60,0.35); }
.split-ref p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.5; margin: 0 0 0.6rem; }
.split-ref strong { color: #ff9a3c; }
.split-ref a { font-weight: 700; font-size: 1rem; color: var(--text); text-decoration: none; cursor: pointer; }
.split-ref a:hover { color: #ff9a3c; }
@media (max-width: 1100px) { .split.split-3 { grid-template-columns: 1fr; } }
.split-card ul { list-style: none; padding: 1rem 1.6rem 1.6rem; }
.split-card li { color: var(--text-muted); padding: 0.35rem 0 0.35rem 1.6rem; position: relative; font-size: 1.0625rem; }
.split-card li::before { content: '✓'; position: absolute; left: 0; color: var(--emd-green); font-weight: 800; }
.split-shot { padding: 0 1.6rem 1.6rem; }
.split-shot img { border-radius: 12px; border: 1px solid var(--border); margin: 0 auto; height: min(560px, 80vh); width: auto; }

/* ===== FEATURE ROW (image + texte alternés) ===== */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 2.5rem; }
.row.rev .row-txt { order: 2; }
.row-shot img { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.row-txt h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.8rem; }
.row-txt p { color: var(--text-muted); margin-bottom: 1rem; }
.row-txt ul { list-style: none; }
.row-txt li { padding: 0.3rem 0 0.3rem 1.7rem; position: relative; color: var(--text-muted); }
.row-txt li::before { content: '▸'; position: absolute; left: 0; color: var(--emd-blue); }

/* ===== WHY ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.why { display: flex; gap: 1rem; padding: 1.4rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.why .n { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; line-height: 1; color: var(--emd-red); flex-shrink: 0; width: 42px; }
.why h3 { font-size: 1.25rem; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.why p { color: var(--text-muted); font-size: 1.0625rem; }

/* ===== USE CASES ===== */
.uc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.uc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; border-top: 3px solid var(--emd-red); }
.uc:nth-child(2){ border-top-color: var(--emd-blue);} .uc:nth-child(3){ border-top-color: var(--emd-green);} .uc:nth-child(4){ border-top-color: #f39c12;}
.uc .ico { font-size: 2.2rem; margin-bottom: 0.6rem; }
.uc h3 { font-size: 1.4rem; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.uc p { color: var(--text-muted); font-size: 1.0625rem; }

/* ===== GALLERY ===== */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2.6rem; }
.gal-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; background: #0d0d12; }
.gal-item img { width: 100%; height: 170px; object-fit: cover; object-position: top center; transition: transform 0.3s, opacity 0.3s; opacity: 0.92; }
.gal-item:hover img { transform: scale(1.05); opacity: 1; }
.gal-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 0.8rem; font-size: 0.95rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 2rem; flex-direction: column; gap: 1rem; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lb .lb-cap { color: var(--text-muted); font-size: 1.0625rem; }
.lb-close { position: absolute; top: 1.2rem; right: 1.4rem; width: 46px; height: 46px; border-radius: 50%; background: var(--emd-red); color: #fff; border: none; font-size: 1.4rem; cursor: pointer; }

/* ===== AUDIENCE / REFS ===== */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 2.4rem; }
.aud { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.aud .ico { font-size: 1.8rem; margin-bottom: 0.5rem; }
.aud h3 { font-size: 1.25rem; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.aud p { color: var(--text-muted); font-size: 1.0625rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; margin-top: 3rem; padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat { text-align: center; }
.stat .num { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* ===== ECOSYSTEM ===== */
.eco-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.pill { padding: 0.6rem 1.1rem; border-radius: 30px; border: 1px solid var(--border); background: var(--bg-card); font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.pill.on { color: var(--text); border-color: rgba(90,201,75,0.5); background: rgba(90,201,75,0.08); }
a.pill { cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
a.pill:hover { color: var(--text); border-color: rgba(90,201,75,0.5); background: rgba(90,201,75,0.08); }

/* Liens techniques en ligne (outils EMD, IA) - maillage SEO */
.ilink { color: var(--emd-green); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; transition: color .15s; }
.ilink:hover { color: var(--text); }
.feat .more { display: inline-block; margin-top: .5rem; color: var(--emd-green); font-weight: 700; font-size: .95rem; cursor: pointer; }
.feat .more:hover { color: var(--text); }

/* ===== PILOTAGE PAR IA ===== */
.ia-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.8rem; margin: 2.2rem 0; }
.ia-node { flex: 1 1 200px; min-width: 170px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); padding: 1.1rem 1.2rem; }
.ia-node .k { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.ia-node .v { margin-top: 0.4rem; font-weight: 700; color: var(--text); }
.ia-node .v small { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.95rem; margin-top: 0.3rem; line-height: 1.5; }
.ia-node.accent { border-color: rgba(90,201,75,0.5); background: rgba(90,201,75,0.08); }
.ia-arrow { align-self: center; color: var(--emd-green); font-size: 1.4rem; font-weight: 700; line-height: 1; }
@media (max-width: 760px) { .ia-arrow { transform: rotate(90deg); align-self: center; } }

/* ===== REFERENCES CLIENTS ===== */
.ref-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.ref-chip { padding: 0.5rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); font-size: 0.95rem; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.ref-chip.samu { border-color: rgba(91,155,213,0.5); color: #aacdf0; }
.ref-chip.cod { border-color: rgba(90,201,75,0.5); color: #a9e6a0; }
#refmap { height: 440px; width: 100%; margin-top: 1.6rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); z-index: 0; }
#refmap .leaflet-popup-content { font-weight: 700; }
.ref-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; color: var(--text-muted); font-size: 0.95rem; }
.ref-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ref-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ===== CTA ===== */
.cta { text-align: center; border-radius: 24px; padding: 4rem 2rem; position: relative; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.cta::before { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(50% 120% at 50% 0%, rgba(230,50,50,0.16), transparent 60%), radial-gradient(50% 120% at 50% 100%, rgba(91,155,213,0.14), transparent 60%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.8rem; }
.cta p { color: var(--text-muted); max-width: none; margin: 0 auto 1.8rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border); padding: 3rem 0 2.5rem; background: var(--bg-soft); }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.foot-grid p { color: var(--text-muted); font-size: 1rem; max-width: 340px; margin-top: 0.6rem; }
.foot-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.foot-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 0.7rem; }
.foot-col a { display: block; color: var(--text); font-size: 1rem; padding: 0.18rem 0; }
.foot-col a:hover { color: var(--emd-green); }
/* Colonne "Produit" (1re colonne du footer) sur 2 colonnes : la liste s'allonge (Drone, etc.), on evite un footer trop haut. Le titre reste pleine largeur au-dessus. */
.foot-links .foot-col:first-child { column-count: 2; column-gap: 2rem; }
.foot-links .foot-col:first-child h4 { column-span: all; }
.foot-links .foot-col:first-child a { break-inside: avoid; }
/* ===== Bouton remonter en haut (flottant, cote droit) - aligne sur la charte (carte sombre + accent vert au survol, lift comme les boutons du site) ===== */
.to-top {
    position: fixed; right: 26px; bottom: 28px; z-index: 900;
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    background: rgba(22,22,28,0.72);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
    cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity 0.25s ease, transform 0.2s ease, visibility 0.25s, border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.to-top > * { pointer-events: none; }
.to-top svg { display: block; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top.show:hover { transform: translateY(-3px); color: #fff; border-color: rgba(90,201,75,0.6); background: rgba(90,201,75,0.12); box-shadow: 0 14px 32px rgba(34,140,60,0.35); }
.to-top.show:active { transform: translateY(-1px); }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; } }

.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(34px) scale(0.985); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal:not(.in) { will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* Une fois apparue, la carte reagit au survol sans delai ni lenteur (la cascade ne sert qu'a l'apparition). */
.reveal.in.vu { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; transition-delay: 0ms; }
/* Cartes : legere elevation au survol, comme les fonctions */
.why.in.vu:hover, .uc.in.vu:hover, .aud.in.vu:hover, .split-card.in.vu:hover { transform: translateY(-4px); border-color: rgba(91,155,213,0.45); box-shadow: 0 14px 34px rgba(0,0,0,0.35); }
.gal-item.in.vu:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.4); }
/* Mouvement reduit (reglage Windows / macOS) : on garde un fondu doux, sans deplacement ni zoom. */
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none !important; transition: opacity 0.6s ease; transition-delay: var(--d, 0ms); }
  .reveal.in.vu:hover, .feat:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
/* Menu : bascule en burger des que la barre complete ne tient plus (besoin ~1212px). */
@media (max-width: 1600px) {
    .nav-inner { gap: 1rem; }
    .nav-menu > a, .nav-menu .nav-dd-toggle { font-size: 0.98rem; padding: 0.6rem 0.5rem; }
    .nav-links { gap: 0.4rem; }
    .nav .btn { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
}
@media (max-width: 1400px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .nav-links.open { display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 0.5rem 1.4rem 1.2rem; }
    .nav-links.open a { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
    .nav-links.open .btn { margin-top: 0.8rem; justify-content: center; }
    /* dropdown "Fonctions" : deplie a plat sur mobile */
    .nav-links.open .nav-dd { width: 100%; }
    .nav-links.open .nav-dd-menu { display: flex !important; position: static; border: none; box-shadow: none; padding: 0; background: transparent; min-width: 0; }
    .nav-links.open .nav-dd-menu a { padding-inline-start: 1.2rem; opacity: 0.9; }
    .nav-links.open .nav-dd-caret { display: none; }
    .nav-links.open .nav-dd::after { display: none; }
    /* annuler le centrage desktop dans le menu mobile (colonne) :
       tout doit s'etirer sur toute la largeur et s'aligner a gauche,
       sinon les liens directs et les boutons flottent centres au milieu. */
    .nav-links.open { flex: none; align-items: stretch; }
    .nav-links.open > .btn-demo { margin-left: 0; }
    .nav-links.open .nav-menu { position: static; transform: none; flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
}
@media (max-width: 920px) {
    .hero-grid, .split, .row, .row.rev .row-txt { grid-template-columns: 1fr; }
    .hero-mini { flex-wrap: wrap; }
    .row.rev .row-txt { order: 0; }
    .phone { position: relative; right: auto; bottom: auto; width: 52%; margin: -2rem auto 0; }
    .mockups { margin-top: 1rem; }
    .split-shot img { height: auto; width: 70%; }
}
@media (max-width: 520px) {
    .section { padding: 3.8rem 0; }
    .trust-grid { justify-content: flex-start; }
}

/* FORMULAIRE DE CONTACT */
.contact-form { max-width: 580px; margin: 1.8rem auto 0; text-align: left; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-form .cf-row { display: flex; gap: 0.75rem; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 0.95rem; color: var(--text); font-family: 'Inter', sans-serif; font-size: 1.0625rem; line-height: 1.5; transition: border-color .18s, box-shadow .18s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--emd-green); box-shadow: 0 0 0 3px rgba(90,201,75,0.18); }
.contact-form textarea { resize: vertical; min-height: 104px; }
.contact-form .cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-form .cf-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 0.25rem; }
.contact-form button { cursor: pointer; }
.contact-form.sending button { opacity: .6; pointer-events: none; }
.cf-status { min-height: 1.2em; margin: 0.25rem 0 0; font-size: 1rem; text-align: center; }
.cf-status.ok { color: var(--emd-green); }
.cf-status.err { color: var(--emd-red); }
@media (max-width: 560px) { .contact-form .cf-row { flex-direction: column; } }

/* Impression / Enregistrer en PDF : tout le contenu, sans animation. */
@media print { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Bandeau de confiance : renvoi vers la reference Lourdes 2026 */
.trust-lourdes a { color: inherit; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-lourdes a:hover { color: #ff9a3c; }

/* btn-retour-ligne : sur telephone, un bouton au libelle long (el, ms, vi...) passe a la ligne au lieu de deborder */
@media (max-width: 480px) { .btn { white-space: normal; max-width: 100%; text-align: center; } }

/* ===================== FAQ (questions depliables, lisibles par Google : FAQPage) ===================== */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; align-items: start; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; transition: border-color 0.2s; }
.faq-item[open] { border-color: rgba(52, 152, 219, 0.55); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--text-muted); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary * { cursor: pointer; }
.faq-item p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.6; margin: 0; padding: 0 1.3rem 1.2rem; }
@media (max-width: 820px) { .faq-list { grid-template-columns: 1fr; } }
.foot-legal { flex-basis: 100%; font-size: 0.9rem; }
.foot-legal a { color: inherit; text-decoration: underline; cursor: pointer; }
/* Captures de telephone (portrait) dans une rangee image + texte : hauteur fixe, largeur deduite de
   width/height (meme avant chargement), centrees. Sinon une capture 824x1760 montait a 1640 px. */
.row-shot img.shot-tall { height: min(560px, 80vh); width: auto; margin: 0 auto; }
/* En-tete plus bas sur telephone (comme collectivview.com) ; le panneau du menu suit la hauteur de la barre. */
@media (max-width: 560px) {
    .nav-inner { height: 68px; }
    .nav-links.open { top: 68px; }
}
