/* ===============================
   Page d'accueil publique (Views/Home/Index) — classes nh-*
   Propriétés logiques (inline-start/end) pour l'arabe (RTL)
================================= */

:root {
    --nh-forest: #12301a;
    --nh-forest-2: #1e3d1e;
    --nh-leaf: #4caf50;
    --nh-leaf-2: #7ed492;
    --nh-water: #0e7490;
    --nh-water-2: #22a6c4;
    --nh-ink: #14231a;
    --nh-text: #1f2937;
    --nh-muted: #5b6b63;
    --nh-bg: #f4f7f5;
    --nh-line: #e2ebe4;
    --nh-radius: 22px;
    --nh-shadow: 0 1px 2px rgba(16, 40, 24, .04), 0 12px 36px rgba(16, 40, 24, .07);
    --nh-shadow-hover: 0 2px 6px rgba(16, 40, 24, .06), 0 22px 50px rgba(16, 40, 24, .12);
}

body { background: var(--nh-bg); }

/* ---------- Boutons ---------- */
.nh-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 14px;
    font-weight: 700; font-size: 15.5px; text-decoration: none;
    border: 1px solid transparent;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.nh-btn:hover { transform: translateY(-2px); }
.nh-btn--light { background: #fff; color: var(--nh-forest-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.nh-btn--light:hover { color: var(--nh-water); box-shadow: 0 14px 36px rgba(0, 0, 0, .24); }
.nh-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.nh-btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); }
.nh-btn--lg { padding: 16px 30px; font-size: 16.5px; }

/* ---------- Hero ---------- */
.nh-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 150px 0 160px;
    background:
        radial-gradient(900px 600px at 85% 10%, rgba(34, 166, 196, .28), transparent 60%),
        radial-gradient(800px 600px at 0% 100%, rgba(76, 175, 80, .22), transparent 60%),
        linear-gradient(155deg, #0c2414 0%, #173a1f 50%, #11414a 100%);
}
.nh-hero__glow {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 75%);
}
.nh-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.nh-tags { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.nh-tags li {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #d6efe0;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.nh-tags i { color: var(--nh-leaf-2); font-size: 12px; }
.nh-tags li:nth-child(1) i { color: #7fd6ea; }
.nh-tags li:nth-child(2) i { color: #fbbf6a; }

.nh-hero__title { font-size: clamp(36px, 5vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; }
.nh-hero__title span {
    display: block;
    background: linear-gradient(90deg, #9be7b0 0%, #6fd3e6 60%, #b8f0ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nh-hero__sub { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; color: #e8f4ec; margin: 0 0 14px; }
.nh-hero__lead { font-size: 16.5px; line-height: 1.7; color: #b5cdbd; max-width: 560px; margin: 0 0 34px; }
.nh-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.nh-hero__visual { position: relative; padding: 28px 34px; }
.nh-photo {
    position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 1 / 1.02;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
    transform: rotate(2deg);
}
.nh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.nh-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 36, 20, .45)); }

.nh-float {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 11px;
    padding: 11px 16px 11px 11px; border-radius: 16px;
    background: rgba(255, 255, 255, .94); color: var(--nh-ink);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    font-weight: 700; font-size: 14.5px;
    animation: nh-float 6s ease-in-out infinite;
}
.nh-float small { display: block; font-size: 10.5px; font-weight: 700; color: var(--nh-muted); letter-spacing: .08em; }
.nh-float__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--nh-forest-2), var(--nh-water)); font-size: 14px; }
.nh-float--1 { top: 6%; inset-inline-start: -2%; }
.nh-float--2 { top: 32%; inset-inline-end: -4%; animation-delay: -1.5s; }
.nh-float--2 .nh-float__icon { background: linear-gradient(135deg, var(--nh-water), var(--nh-water-2)); }
.nh-float--3 { bottom: 26%; inset-inline-start: -6%; animation-delay: -3s; }
.nh-float--3 .nh-float__icon { background: linear-gradient(135deg, #b7791f, #f0b45a); }
.nh-float--4 { bottom: 4%; inset-inline-end: 4%; animation-delay: -4.5s; }
.nh-float--4 .nh-float__icon { background: linear-gradient(135deg, #2e7d32, var(--nh-leaf)); }
@keyframes nh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.nh-waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 110px; z-index: 1; }
.nh-wave--back { fill: rgba(244, 247, 245, .35); }
.nh-wave--front { fill: #fff; }

/* ---------- Sections ---------- */
.nh-section { position: relative; padding: 104px 0; background: var(--nh-bg); }
.nh-section--white { background: #fff; }
.nh-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.nh-head__text { margin: 14px auto 0; }

.nh-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--nh-water); margin: 0 0 14px;
}
.nh-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--nh-leaf), var(--nh-water-2)); }
.nh-eyebrow--light { color: #8fdcec; }
.nh-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.028em; line-height: 1.12; color: var(--nh-ink); margin: 0 0 20px; }
.nh-title--light { color: #fff; }
.nh-text { font-size: 17px; line-height: 1.75; color: var(--nh-muted); margin: 0 0 14px; }

.nh-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

/* Le constat : la grande question */
.nh-question {
    position: relative; overflow: hidden;
    padding: 44px 42px; border-radius: 28px; color: #fff;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(34, 166, 196, .45), transparent 70%),
        linear-gradient(150deg, var(--nh-forest) 0%, #1c4a2a 60%, #135560 100%);
    box-shadow: 0 30px 70px rgba(18, 48, 26, .28);
}
.nh-question__intro { color: #b9d4c1; font-size: 16px; margin: 0 0 6px; }
.nh-question__big { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 22px; }
.nh-question__answer { color: #d5e8db; font-size: 16px; line-height: 1.7; margin: 0; position: relative; z-index: 1; }
.nh-question__deco { position: absolute; inset-inline-end: -26px; bottom: -34px; font-size: 170px; color: rgba(255, 255, 255, .05); }

/* Méthode */
.nh-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.nh-steps::before {
    content: ""; position: absolute; top: 31px; inset-inline: 12%; height: 2px;
    background: linear-gradient(90deg, var(--nh-leaf), var(--nh-water-2));
    opacity: .35;
}
.nh-step {
    position: relative; text-align: center;
    padding: 0 22px 30px; padding-top: 0;
}
.nh-step__marker {
    position: relative; z-index: 1;
    width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 20px;
    display: grid; place-items: center; font-size: 22px; color: #fff;
    background: linear-gradient(135deg, var(--nh-forest-2), var(--nh-water));
    box-shadow: 0 14px 30px rgba(14, 116, 144, .28), 0 0 0 8px var(--nh-bg);
    transition: transform .25s;
}
.nh-step:hover .nh-step__marker { transform: translateY(-4px) rotate(-4deg); }
.nh-step__num { display: block; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--nh-water); margin-bottom: 6px; }
.nh-step h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--nh-ink); margin: 0 0 10px; }
.nh-step p { color: var(--nh-muted); font-size: 15.5px; line-height: 1.6; margin: 0; }

.nh-signature { margin: 48px auto 0; max-width: 720px; text-align: center; padding: 26px 30px; border-radius: 20px; background: #fff; box-shadow: var(--nh-shadow); }
.nh-signature__main {
    font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -.015em; margin: 0 0 4px;
    background: linear-gradient(90deg, var(--nh-forest-2), var(--nh-water));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nh-signature__sub { color: var(--nh-muted); margin: 0; }

/* Solutions */
.nh-solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nh-solution {
    --nh-c1: var(--nh-water); --nh-c2: var(--nh-water-2); --nh-soft: #e8f6fa;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 34px 32px 30px; border-radius: var(--nh-radius);
    background: #fff; border: 1px solid var(--nh-line);
    box-shadow: var(--nh-shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.nh-solution::before {
    content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--nh-c1), var(--nh-c2));
}
.nh-solution::after {
    content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    inset-inline-end: -110px; top: -130px; background: var(--nh-soft); opacity: .7; z-index: 0;
    transition: transform .4s;
}
.nh-solution:hover { transform: translateY(-6px); box-shadow: var(--nh-shadow-hover); border-color: transparent; }
.nh-solution:hover::after { transform: scale(1.15); }
.nh-solution > * { position: relative; z-index: 1; }
.nh-solution--climate { --nh-c1: #c2410c; --nh-c2: #f59e0b; --nh-soft: #fff4e2; }
.nh-solution--nature  { --nh-c1: #2e7d32; --nh-c2: #66bb6a; --nh-soft: #eaf6ec; }
.nh-solution--city    { --nh-c1: var(--nh-forest-2); --nh-c2: #4b7f5b; --nh-soft: #eef3ef; }
.nh-solution__icon {
    width: 56px; height: 56px; border-radius: 17px; margin-bottom: 22px;
    display: grid; place-items: center; font-size: 22px; color: #fff;
    background: linear-gradient(135deg, var(--nh-c1), var(--nh-c2));
    box-shadow: 0 12px 26px color-mix(in srgb, var(--nh-c1) 35%, transparent);
}
.nh-solution__name { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nh-c1); margin: 0 0 8px; }
.nh-solution__tagline { font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; color: var(--nh-ink); margin: 0 0 12px; }
.nh-solution__text { color: var(--nh-muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 18px; }
.nh-solution__offer {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; border-radius: 10px; margin: 0 0 20px;
    font-size: 13.5px; font-weight: 700; color: var(--nh-c1); background: var(--nh-soft);
}
.nh-solution__cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--nh-ink); text-decoration: none; }
.nh-solution__cta i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--nh-c1), var(--nh-c2)); transition: transform .2s; }
.nh-solution__cta:hover { color: var(--nh-c1); }
.nh-solution__cta:hover i { transform: translateX(4px); }
[dir="rtl"] .nh-solution__cta:hover i { transform: scaleX(-1) translateX(4px); }

/* Différence (section sombre) */
.nh-section--dark {
    overflow: hidden; color: #fff;
    background: linear-gradient(160deg, #0d2615 0%, #16361d 55%, #0f3c44 100%);
}
.nh-dark__glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 90% 0%, rgba(34, 166, 196, .22), transparent 70%),
        radial-gradient(500px 400px at 0% 100%, rgba(76, 175, 80, .18), transparent 70%);
}
.nh-section--dark .container { position: relative; }
.nh-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nh-pillar {
    padding: 32px 28px; border-radius: var(--nh-radius);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    transition: background .25s, transform .25s, border-color .25s;
}
.nh-pillar:hover { background: rgba(255, 255, 255, .08); border-color: rgba(143, 220, 236, .35); transform: translateY(-4px); }
.nh-pillar__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; margin-bottom: 20px; color: #0d2615; background: linear-gradient(135deg, #9be7b0, #6fd3e6); }
.nh-pillar__name { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8fdcec; margin: 0 0 8px; }
.nh-pillar h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; color: #fff; }
.nh-pillar p:last-child { color: #b5cdbd; line-height: 1.7; margin: 0; font-size: 15.5px; }

.nh-conviction { position: relative; margin: 56px auto 0; max-width: 860px; text-align: center; }
.nh-conviction > i { font-size: 34px; color: rgba(155, 231, 176, .5); margin-bottom: 14px; }
.nh-conviction figcaption { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fdcec; margin-bottom: 12px; }
.nh-conviction blockquote { font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 0; color: #fff; }

/* Histoire */
.nh-split--story { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.nh-story__photo { position: relative; }
.nh-story__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 60%; border-radius: 28px; display: block; box-shadow: var(--nh-shadow-hover); }
.nh-story__badge {
    position: absolute; inset-inline-end: -18px; bottom: 32px;
    width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center;
    font-size: 30px; color: #fff; background: linear-gradient(135deg, #2e7d32, var(--nh-leaf));
    box-shadow: 0 18px 40px rgba(46, 125, 50, .35), 0 0 0 8px #fff;
}
.nh-story__question {
    margin: 22px 0; padding: 4px 0 4px 22px; padding-inline: 22px 0;
    border-inline-start: 4px solid; border-image: linear-gradient(180deg, var(--nh-leaf), var(--nh-water-2)) 1;
    font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; color: var(--nh-ink);
}
.nh-story__signature { margin: 24px 0 0; font-size: 18px; font-weight: 700; font-style: italic; color: var(--nh-forest-2); }

/* Marchés */
.nh-markets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nh-market {
    padding: 30px 26px; border-radius: var(--nh-radius);
    background: #fff; border: 1px solid var(--nh-line); box-shadow: var(--nh-shadow);
    transition: transform .25s, box-shadow .25s;
}
.nh-market:hover { transform: translateY(-5px); box-shadow: var(--nh-shadow-hover); }
.nh-market__icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; margin-bottom: 20px; color: var(--nh-water); background: linear-gradient(135deg, #e3f5f9, #e7f5ea); transition: background .25s, color .25s; }
.nh-market:hover .nh-market__icon { color: #fff; background: linear-gradient(135deg, var(--nh-forest-2), var(--nh-water)); }
.nh-market h3 { font-size: 18px; font-weight: 800; color: var(--nh-ink); margin: 0 0 8px; }
.nh-market p { color: var(--nh-muted); line-height: 1.65; margin: 0; font-size: 15px; }

/* Appel à l'action */
.nh-cta-wrap { padding: 0 0 96px; background: var(--nh-bg); }
.nh-cta {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    padding: 72px 32px 84px; border-radius: 32px;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(111, 211, 230, .35), transparent 70%),
        linear-gradient(135deg, #12301a 0%, #1e4d2b 50%, #0e5563 100%);
    box-shadow: 0 40px 90px rgba(18, 48, 26, .3);
}
.nh-cta h2 { position: relative; font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px; }
.nh-cta p { position: relative; color: #cfe3d6; font-size: 17.5px; line-height: 1.7; max-width: 640px; margin: 0 auto 32px; }
.nh-cta .nh-btn { position: relative; }
.nh-cta__waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 110px; }
.nh-cta__waves path { fill: rgba(255, 255, 255, .05); }

/* Apparition au défilement */
.nh-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.nh-reveal.is-visible { opacity: 1; transform: none; }
.nh-steps .nh-reveal:nth-child(2), .nh-solutions .nh-reveal:nth-child(2), .nh-pillars .nh-reveal:nth-child(2), .nh-markets .nh-reveal:nth-child(2) { transition-delay: .08s; }
.nh-steps .nh-reveal:nth-child(3), .nh-solutions .nh-reveal:nth-child(3), .nh-pillars .nh-reveal:nth-child(3), .nh-markets .nh-reveal:nth-child(3) { transition-delay: .16s; }
.nh-steps .nh-reveal:nth-child(4), .nh-solutions .nh-reveal:nth-child(4), .nh-markets .nh-reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nh-markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .nh-hero { padding: 110px 0 120px; }
    .nh-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .nh-hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .nh-split, .nh-split--story { grid-template-columns: 1fr; gap: 40px; }
    .nh-story__photo { max-width: 460px; }
    .nh-story__photo img { aspect-ratio: 16 / 11; }
    .nh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .nh-steps::before { display: none; }
    .nh-pillars { grid-template-columns: 1fr; }
    .nh-section { padding: 80px 0; }
}

@media (max-width: 640px) {
    .nh-hero__visual { padding: 18px 10px; }
    .nh-float { padding: 8px 12px 8px 8px; font-size: 13px; gap: 8px; }
    .nh-float__icon { width: 30px; height: 30px; font-size: 12px; }
    .nh-float--1 { inset-inline-start: 0; }
    .nh-float--2 { inset-inline-end: 0; }
    .nh-float--3 { inset-inline-start: 0; }
    .nh-solutions, .nh-markets, .nh-steps { grid-template-columns: 1fr; }
    .nh-solution { padding: 28px 24px 24px; }
    .nh-question { padding: 32px 26px; }
    .nh-section { padding: 64px 0; }
    .nh-head { margin-bottom: 40px; }
    .nh-cta { padding: 52px 22px 64px; border-radius: 24px; }
    .nh-cta-wrap { padding-bottom: 64px; }
    .nh-btn { width: 100%; justify-content: center; }
    .nh-story__badge { inset-inline-end: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .nh-float { animation: none; }
    .nh-reveal { opacity: 1; transform: none; transition: none; }
}
