:root {
--primary: #6bbb43;
--primary-dark: #858585;
--accent: #ffd166;
--bg: #f5f8fc;
--surface: #ffffff;
--text: #1e293b;
--muted: #64748b;
--border: #dbe4ee;
--success: #107c41;
--danger: #c62828;
--shadow: 0 18px 40px rgba(15, 76, 129, 0.12);
--shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
--shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
--radius: 22px;
--radius-md: 18px;
--radius-sm: 14px;
--container: 1180px;
--transition: 0.25s ease;
}

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--text);
background: #eef4fa;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}

a {
color: inherit;
text-decoration: none;
transition: color var(--transition), background-color var(--transition), border-color var(--transition), opacity var(--transition);
}

img {
max-width: 100%;
display: block;
}

button,
input,
select,
textarea {
font: inherit;
}

button {
transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}

button:hover {
transform: translateY(-1px);
}

button:active {
transform: translateY(0);
}

button,
input,
select,
textarea,
a {
-webkit-tap-highlight-color: transparent;
}

:focus-visible {
outline: 3px solid rgba(107, 187, 67, 0.22);
outline-offset: 2px;
}

.container {
width: min(var(--container), calc(100% - 2rem));
margin: 0 auto;
}

.section {
padding: 1rem 0;
}

.section-sm {
padding: 2.5rem 0;
}

.badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.45rem 0.9rem;
border-radius: 999px;
margin-bottom: 10px;
background: rgba(15, 76, 129, 0.08);
color: var(--primary);
font-weight: 700;
font-size: 0.92rem;
}

.section-head {
max-width: 760px;
margin-bottom: 2rem;
}

.section-head h1,
.section-head h2,
.hero-text h1 {
margin: 0.35rem 0 1rem;
line-height: 1.06;
letter-spacing: -0.03em;
}

.section-head p,
.hero-text p,
.muted {
color: var(--muted);
}

.page-hero {
padding: 4rem 0 0;
background: #eef4fa 100%;
}

.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-lg);
}

/* =========================
HEADER / NAV
========================= */

.site-header {
position: sticky;
top: 0;
z-index: 1000;
backdrop-filter: blur(18px);
background: rgba(255, 255, 255, 0.9);
border-bottom: 1px solid rgba(219, 228, 238, 0.7);
}

.header-wrap {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
min-height: 78px;
}

.logo {
display: flex;
align-items: center;
gap: 0.9rem;
font-weight: 800;
letter-spacing: -0.02em;
}

.logo-mark {
width: 44px;
height: 44px;
border-radius: 14px;
display: grid;
place-items: center;
color: #fff;
background: linear-gradient(135deg, var(--primary), #2f7ac0);
box-shadow: 0 12px 25px rgba(15, 76, 129, 0.25);
}

.logo small {
display: block;
color: var(--muted);
font-weight: 600;
}

.nav-toggle {
display: none;
background: transparent;
border: 0;
width: 46px;
height: 46px;
border-radius: 12px;
cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
content: "";
display: block;
width: 24px;
height: 2px;
margin: 6px auto;
background: var(--text);
transition: var(--transition);
}

.nav-toggle.active span {
opacity: 0;
}

.nav-toggle.active::before {
transform: rotate(50deg) translateY(9px) translateX(2px);
}

.nav-toggle.active::after {
transform: rotate(-50deg) translateY(-11px) translateX(1px);
}

.site-nav ul {
display: flex;
gap: 0.25rem;
list-style: none;
padding: 0;
margin: 0;
align-items: center;
flex-wrap: nowrap;
}

.site-nav a {
display: block;
padding: 0.75rem 0.8rem;
border-radius: 12px;
color: var(--muted);
font-weight: 700;
font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a.active {
background: rgba(15, 76, 129, 0.08);
color: var(--primary);
}

/* =========================
HERO
========================= */

.hero {
padding: 1.75rem 0 2rem;
}

.hero-grid {
display: grid;
grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
gap: 1.5rem;
align-items: center;
}

.hero-text {
max-width: 100%;
}

.hero-text .actions {
display: flex;
gap: 1rem;
flex-wrap: wrap;
margin-top: 1.6rem;
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.6rem;
min-height: 50px;
padding: 0 1.2rem;
border-radius: 14px;
border: 1px solid transparent;
font-weight: 800;
cursor: pointer;
transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary {
background: var(--primary);
color: #fff;
box-shadow: 0 16px 28px rgba(15, 76, 129, 0.18);
}

.btn-primary:hover {
background: var(--primary-dark);
}

.btn-secondary {
background: #fff;
color: var(--primary);
border-color: var(--border);
}

.btn-secondary:hover {
border-color: var(--primary);
background: rgba(255, 255, 255, 0.96);
}

.hero-media {
padding: 0;
overflow: hidden;
border-radius: 30px;
position: relative;
min-height: 250px;
margin: 0;
background: linear-gradient(180deg, rgba(15, 76, 129, 0.05), rgba(15, 76, 129, 0.14));
box-shadow: var(--shadow);
}

.hero-media img {
width: 100%;
height: 100%;
object-fit: cover;
}

.hero-stats {
position: absolute;
right: 1rem;
left: 1rem;
bottom: 1rem;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.8rem;
}

.stat {
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(255, 255, 255, 0.7);
padding: 1rem;
border-radius: 18px;
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.stat strong {
display: block;
font-size: 1.35rem;
}

/* =========================
GRIDS / CARDS
========================= */

.grid-2,
.grid-3,
.grid-4 {
display: grid;
gap: 1.2rem;
}

.grid-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.news-card,
.team-card,
.infra-card,
.doc-card,
.project-card,
.contact-card,
.photo-card {
padding: 1.15rem;
}

.feature-card h3,
.news-card h3,
.team-card h3,
.infra-card h3,
.doc-card h3,
.project-card h3,
.contact-card h3 {
margin: 0.4rem 0 0.6rem;
}

.image-shell {
overflow: hidden;
border-radius: 18px;
margin-bottom: 1rem;
}

.image-shell img {
width: 100%;
aspect-ratio: 16 / 11;
object-fit: cover;
transition: transform 0.35s ease;
}

.card:hover .image-shell img {
transform: scale(1.03);
}

.meta {
display: flex;
gap: 0.8rem;
flex-wrap: wrap;
color: var(--muted);
font-size: 0.92rem;
}

.news-list {
display: grid;
gap: 1rem;
}

.news-card {
display: grid;
gap: 0.9rem;
}

.news-card p:last-child {
margin-bottom: 0;
}

/* =========================
FORMS / FILTERS
========================= */

.filters {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
justify-content: space-between;
margin-bottom: 1.4rem;
}

.select-wrap select,
.field input,
.field textarea,
.field select {
width: 100%;
border: 1px solid var(--border);
background: #fff;
border-radius: 14px;
padding: 0.95rem 1rem;
outline: none;
transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.select-wrap select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
border-color: var(--primary);
box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.team-card .role {
color: var(--primary);
font-weight: 700;
}

.doc-card .doc-meta {
display: flex;
justify-content: space-between;
gap: 1rem;
color: var(--muted);
font-size: 0.92rem;
}

.doc-card .doc-actions {
display: flex;
gap: 0.8rem;
flex-wrap: wrap;
margin-top: 1rem;
}

.project-card ul {
padding-left: 1.2rem;
color: var(--muted);
}

.contact-layout {
display: grid;
grid-template-columns: 1.08fr 0.92fr;
gap: 1.4rem;
}

.form-grid {
display: grid;
gap: 1rem;
}

.field label {
display: block;
margin-bottom: 0.45rem;
font-weight: 700;
}

.field textarea {
min-height: 170px;
resize: vertical;
}

.form-note {
font-size: 0.92rem;
color: var(--muted);
}

/* =========================
ALERTS
========================= */

.alert {
padding: 1rem 1.1rem;
border-radius: 16px;
margin-bottom: 1rem;
font-weight: 700;
}

.alert-success {
background: rgba(16, 124, 65, 0.09);
color: var(--success);
border: 1px solid rgba(16, 124, 65, 0.18);
}

.alert-error {
background: rgba(198, 40, 40, 0.08);
color: var(--danger);
border: 1px solid rgba(198, 40, 40, 0.16);
}

.newsletter-feedback {
margin-top: 10px;
padding: 10px 14px;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
}

.newsletter-success {
background: #e6f7ec;
color: #1a7f37;
border: 1px solid #a6e3b8;
}

.newsletter-error {
background: #fdecea;
color: #b42318;
border: 1px solid #f5b5b0;
}

.newsletter-info {
background: #eef4ff;
color: #1e40af;
border: 1px solid #c7d2fe;
}

/* =========================
MAP / FOOTER
========================= */

.map-embed {
min-height: 180px;
border: 0;
width: 100%;
border-radius: 20px;
}

.site-footer {
background: #74b64b;
color: #dbe7f5;
padding: 1.6rem 0 0.8rem;
margin-top: 3rem;
}

.footer-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 1.2rem;
align-items: start;
}

.footer-card {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
padding: 0.8rem;
border-radius: 20px;
}

.footer-card h3 {
margin-top: 0;
color: #fff;
}

.footer-bottom {
margin-top: 0.7rem;
color: #aac0d7;
font-size: 0.92rem;
}

/* =========================
GALLERY / PHOTOS
========================= */

.gallery-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.2rem;
}

.photo-card figure {
margin: 0;
}

.photo-card .album-head {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: flex-start;
margin-bottom: 0.8rem;
}

.photo-card .count {
color: var(--primary);
font-weight: 800;
}

.photo-card .thumb img {
aspect-ratio: 16 / 10;
object-fit: cover;
border-radius: 18px;
}

.photo-card figcaption {
margin-top: 0.8rem;
color: var(--muted);
}

.album-actions {
margin-top: 1rem;
}

.album-downloads {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
color: var(--muted);
}

.album-downloads strong {
display: block;
margin-bottom: 0.65rem;
color: var(--text);
}

.download-list {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
}

.download-list a {
padding: 0.55rem 0.85rem;
border-radius: 999px;
background: rgba(15, 76, 129, 0.08);
color: var(--primary);
font-weight: 700;
font-size: 0.9rem;
}

.download-list a:hover {
background: rgba(15, 76, 129, 0.14);
}

/* =========================
NEWSLETTER
========================= */

.newsletter {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 1rem;
align-items: center;
padding: 1.1rem;
}

.newsletter form {
display: flex;
gap: 0.8rem;
flex-wrap: wrap;
}

.newsletter form input {
flex: 1 1 220px;
}

/* =========================
LIGHTBOX
========================= */

.lightbox {
position: fixed;
inset: 0;
background: rgba(7, 15, 24, 0.86);
display: none;
align-items: center;
justify-content: center;
z-index: 1200;
padding: 1rem;
}

.lightbox.open {
display: flex;
}

.lightbox-inner {
width: min(1000px, 100%);
position: relative;
background: #08131f;
border-radius: 24px;
padding: 1rem;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-image img {
width: 100%;
max-height: 70vh;
object-fit: contain;
border-radius: 18px;
}

.lightbox-controls {
position: absolute;
inset: 50% 0 auto 0;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
pointer-events: none;
}

.lightbox-btn,
.close-btn {
pointer-events: all;
border: 0;
background: rgba(255, 255, 255, 0.14);
color: #fff;
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
backdrop-filter: blur(8px);
}

.close-btn {
position: absolute;
top: 1rem;
right: 1rem;
}

.lightbox-footer {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 0.9rem 0.4rem 0.2rem;
}

.lightbox-caption {
color: #edf5ff;
padding: 0;
}

.lightbox-download {
white-space: nowrap;
}

/* =========================
UTILITIES
========================= */

.empty-state {
padding: 2rem;
text-align: center;
color: var(--muted);
}

.hidden {
display: none !important;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

/* =========================
ACTUALITÉS ULTRA VISIBLES
========================= */

.news-highlight-section {
position: relative;
}

.news-highlight-banner {
display: flex;
align-items: center;
gap: 0.8rem;
margin-bottom: 1.4rem;
padding: 0.9rem 1.1rem;
border-radius: 18px;
background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 100%);
color: #fff;
box-shadow: 0 14px 35px rgba(127, 29, 29, 0.22);
}

.news-alert-dot {
width: 14px;
height: 14px;
border-radius: 50%;
background: #fff;
box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.15);
flex-shrink: 0;
}

.news-alert-text {
font-size: 1rem;
font-weight: 800;
letter-spacing: 0.02em;
text-transform: uppercase;
}

.news-featured-board {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) 220px;
gap: 1.25rem;
align-items: end;
padding: 2rem 1.5rem 1.5rem;
margin-bottom: 1.8rem;
border-left: 10px solid #dc2626;
border-radius: 24px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 250, 0.98)),
repeating-linear-gradient(
0deg,
transparent,
transparent 30px,
rgba(15, 23, 42, 0.03) 31px
);
box-shadow:
0 24px 60px rgba(15, 23, 42, 0.12),
0 6px 16px rgba(220, 38, 38, 0.10);
transform: rotate(-0.4deg);
}

.news-featured-content {
min-width: 0;
}

.news-featured-pin {
position: absolute;
top: -16px;
left: 42px;
width: 28px;
height: 28px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #ffb4b4, #dc2626 70%);
box-shadow:
0 4px 0 rgba(0, 0, 0, 0.08),
0 12px 24px rgba(220, 38, 38, 0.28);
}

.news-featured-pin::after {
content: "";
position: absolute;
top: 6px;
left: 7px;
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.8);
}

.news-featured-top {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.8rem;
margin-bottom: 0.9rem;
}

.news-featured-tag {
display: inline-flex;
align-items: center;
padding: 0.45rem 0.85rem;
border-radius: 999px;
background: #fee2e2;
color: #991b1b;
font-size: 0.82rem;
font-weight: 900;
letter-spacing: 0.04em;
}

.news-featured-date {
color: #64748b;
font-size: 0.95rem;
font-weight: 700;
}

.news-featured-title {
margin: 0 0 0.85rem;
font-size: clamp(1.6rem, 2vw, 2.3rem);
line-height: 1.15;
color: #111827;
}

.news-featured-text {
margin: 0 0 1.2rem;
max-width: 70ch;
color: #334155;
font-size: 1.05rem;
line-height: 1.8;
}

.news-featured-btn {
box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}

.news-featured-image-wrap {
align-self: end;
justify-self: end;
width: 140px;
max-width: 100%;
}

.news-featured-image-wrap img {
width: 100%;
display: block;
border-radius: 16px;
object-fit: cover;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* actualités secondaires */
.news-secondary-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.2rem;
}

.news-card-small {
position: relative;
padding: 1.15rem 1rem 1rem;
border-radius: 20px;
background: #ffffff;
border: 2px solid #f1f5f9;
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-card-small:hover {
transform: translateY(-5px);
border-color: #fecaca;
box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.news-card-small::before {
content: "📰";
position: absolute;
top: -10px;
right: 14px;
font-size: 1.2rem;
background: #fff;
padding: 0.1rem 0.3rem;
border-radius: 999px;
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.news-card-small .news-date {
display: inline-block;
margin-bottom: 0.6rem;
font-size: 0.88rem;
font-weight: 700;
color: #b91c1c;
}

.news-card-small h3 {
margin: 0 0 0.55rem;
font-size: 1.08rem;
line-height: 1.35;
color: #0f172a;
}

.news-card-small p {
margin: 0;
color: #475569;
line-height: 1.65;
font-size: 0.96rem;
}

/* =========================
NOTRE PETIT +
========================= */

#highlightsGrid {
display: flex;
flex-direction: column;
gap: 20px;
}

#highlightsGrid .card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
background: white;
border-radius: 16px;
padding: 20px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

#highlightsGrid .card h3 {
margin-bottom: 10px;
font-size: 1.3rem;
}

#highlightsGrid .card p {
color: #555;
}

#highlightsGrid .image-shell {
flex-shrink: 0;
margin-bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background: #fff;
border-radius: 12px;
}

#highlightsGrid img {
width: 300px;
height: 300px;
border-radius: 12px;
object-fit: contain;
background: #fff;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 1024px) {
.hero-grid,
.contact-layout,
.newsletter,
.footer-grid,
.grid-4,
.grid-3,
.gallery-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero {
position: relative;
}

.hero::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 240px;
background: linear-gradient(
to bottom,
rgba(238, 244, 250, 0) 0%,
rgba(238, 244, 250, 0.4) 40%,
#eef4fa 100%
);
pointer-events: none;
}
}

@media (max-width: 980px) {
.news-secondary-grid {
grid-template-columns: 1fr;
}

.news-featured-board {
transform: none;
}

.news-featured-title {
font-size: 1.45rem;
}

.news-featured-text {
font-size: 1rem;
}
}

@media (max-width: 900px) {
.news-featured-board {
grid-template-columns: 1fr;
}

.news-featured-image-wrap {
width: 100%;
justify-self: stretch;
}

.news-featured-image-wrap img {
max-height: 200px;
}
}

@media (max-width: 820px) {
.nav-toggle {
display: block;
}

.site-nav {
position: fixed;
top: 78px;
left: 1rem;
right: 1rem;
background: #fff;
border: 1px solid var(--border);
border-radius: 22px;
box-shadow: var(--shadow);
padding: 0.8rem;
display: none;
}

.site-nav.open {
display: block;
}

.site-nav ul {
flex-direction: column;
align-items: stretch;
}

.site-nav a {
display: block;
}

.hero {
position: relative;
background-image: url("../images/photo-ecole-acceuil.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 1.5rem 0;
}

.hero::before {
content: "";
position: absolute;
inset: 0;
background: rgba(255, 255, 255, 0.75);
}

.hero .container {
position: relative;
z-index: 2;
}

.hero-grid,
.contact-layout,
.grid-3,
.grid-2,
.grid-4,
.gallery-grid,
.newsletter,
.footer-grid {
grid-template-columns: 1fr;
}

.hero-grid {
gap: 1rem;
}

.hero-text {
padding-right: 0.15rem;
}

.hero-text h1 {
margin-bottom: 0.8rem;
}

.hero-text p {
margin-bottom: 0;
}

.hero-media {
display: none;
}

.hero-stats {
grid-template-columns: 1fr;
}

.page-hero {
padding-top: 4rem;
padding-bottom: 0;
background: #eef4fa 100%;
}

.section-sm {
padding-top: 0;
}

.news-highlight-section {
margin-top: 2.5rem;
}

.container.section-head {
margin-left: 20px;
}

.lightbox-footer {
flex-direction: column;
align-items: stretch;
}

.lightbox-download {
width: 100%;
}
}

@media (max-width: 768px) {
#highlightsGrid .card {
flex-direction: column;
text-align: center;
}

#highlightsGrid img {
width: 100%;
height: auto;
max-height: 420px;
}
}

.chatbot-widget {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 1300;
}

.chatbot-toggle {
width: 58px;
height: 58px;
border: 0;
border-radius: 50%;
background: var(--primary);
color: #fff;
font-size: 1.4rem;
cursor: pointer;
box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.chatbot-toggle:hover {
transform: translateY(-2px);
background: var(--primary-dark);
}

.chatbot-panel {
position: absolute;
right: 0;
bottom: 72px;
width: min(360px, calc(100vw - 24px));
background: #fff;
border: 1px solid var(--border);
border-radius: 22px;
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
overflow: hidden;
}

.chatbot-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding: 1rem 1rem .8rem;
background: linear-gradient(135deg, rgba(107, 187, 67, 0.12), rgba(107, 187, 67, 0.04));
border-bottom: 1px solid var(--border);
}

.chatbot-subtitle {
margin-top: .2rem;
font-size: .86rem;
color: var(--muted);
}

.chatbot-close {
border: 0;
background: transparent;
color: var(--muted);
font-size: 1.1rem;
cursor: pointer;
}

.chatbot-messages {
max-height: 340px;
overflow-y: auto;
padding: 1rem;
display: grid;
gap: .8rem;
background: #fff;
}

.chatbot-message {
max-width: 88%;
padding: .8rem .95rem;
border-radius: 16px;
line-height: 1.55;
font-size: .95rem;
}

.chatbot-message.bot {
background: #f8fafc;
border: 1px solid var(--border);
color: var(--text);
}

.chatbot-message.user {
margin-left: auto;
background: rgba(107, 187, 67, 0.12);
color: var(--text);
border: 1px solid rgba(107, 187, 67, 0.16);
}

.chatbot-form {
display: grid;
grid-template-columns: 1fr auto;
gap: .65rem;
padding: 1rem;
border-top: 1px solid var(--border);
background: #fff;
}

.chatbot-form input {
width: 100%;
border: 1px solid var(--border);
border-radius: 14px;
padding: .9rem 1rem;
outline: none;
}

.chatbot-form input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 4px rgba(107, 187, 67, 0.12);
}

.chatbot-message a {
color: var(--primary);
font-weight: 700;
text-decoration: underline;
}

@media (max-width: 640px) {
.chatbot-widget {
right: 12px;
bottom: 12px;
}

.chatbot-panel {
width: min(360px, calc(100vw - 16px));
bottom: 70px;
}

.chatbot-form {
grid-template-columns: 1fr;
}
}


@media (max-width: 820px) {
.lightbox {
padding: 0;
}

.lightbox-inner {
width: 100%;
height: 100%;
max-width: none;
border-radius: 0;
padding: .75rem .75rem 1rem;
display: flex;
flex-direction: column;
justify-content: center;
}

.lightbox-image {
display: flex;
align-items: center;
justify-content: center;
min-height: 56vh;
}

.lightbox-image img {
width: 100%;
max-height: 64vh;
object-fit: contain;
border-radius: 14px;
}

.lightbox-controls {
inset: auto 0 120px 0;
transform: none;
padding: 0 .6rem;
}

.lightbox-btn,
.close-btn {
width: 52px;
height: 52px;
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(8px);
}

.close-btn {
top: .75rem;
right: .75rem;
}

.lightbox-footer {
margin-top: .8rem;
gap: .75rem;
}

.lightbox-caption {
text-align: center;
font-size: .95rem;
line-height: 1.45;
}

.lightbox-download {
width: 100%;
}
}

.photo-card {
transition: transform .18s ease, box-shadow .18s ease;
}

@media (max-width: 820px) {
.photo-card:active {
transform: scale(0.985);
}
}

.lightbox-image {
position: relative;
overflow: hidden;
}

.lightbox-image img {
width: 100%;
max-height: 70vh;
object-fit: contain;
border-radius: 18px;
transition: opacity .22s ease, transform .22s ease;
will-change: transform, opacity;
}


.lightbox {
opacity: 0;
visibility: hidden;
transition: opacity .22s ease, visibility .22s ease;
}

.lightbox.open {
display: flex;
opacity: 1;
visibility: visible;
}

.lightbox-inner {
transform: translateY(10px) scale(.985);
transition: transform .22s ease;
}

.lightbox.open .lightbox-inner {
transform: translateY(0) scale(1);
}

.lightbox {
position: fixed;
inset: 0;
background: rgba(7, 15, 24, .86);
display: flex;
align-items: center;
justify-content: center;
z-index: 1200;
padding: 1rem;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity .22s ease, visibility .22s ease;
}

.lightbox.open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

@media (max-width: 820px) {
.lightbox-btn,
.close-btn {
width: 54px;
height: 54px;
border-radius: 50%;
background: rgba(15, 23, 42, 0.42);
backdrop-filter: blur(10px);
box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.lightbox-btn:active,
.close-btn:active {
transform: scale(.96);
}
}

.close-btn {
position: absolute;
top: 12px;
right: 12px;
z-index: 9999; /* IMPORTANT */
}

.lightbox-inner {
position: relative;
}

@media (max-width: 820px) {

.chatbot {
position: fixed;
bottom: calc(90px + env(safe-area-inset-bottom)); /* espace du bas */
right: 12px;
left: 12px;
width: auto;
max-width: none;
border-radius: 18px;
}

.chatbot-window {
border-radius: 18px;
overflow: hidden;
}

.chatbot-messages {
padding: 12px;
gap: 10px;
}

.chatbot-input {
padding: 10px;
border-top: 1px solid rgba(0,0,0,0.06);
background: white;
}

.chatbot-input input {
border-radius: 12px;
padding: 12px;
}

.chatbot-input button {
border-radius: 12px;
padding: 10px 14px;
}
}

@media (max-width: 820px) {
.chatbot.open {
top: 0;
bottom: 0;
left: 0;
right: 0;
border-radius: 0;
}
}

.news-card {
display: flex;
flex-direction: column;
min-height: 420px;
height: 420px;
}

.news-text-wrap {
overflow: hidden;
}

.news-text {
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 6;
line-clamp : 6;
-webkit-box-orient: vertical;
overflow: hidden;
}

.news-expand-btn {
margin-top: auto;
align-self: flex-start;
padding: .45rem 0 0;
border: 0;
background: transparent;
color: var(--primary);
font-weight: 800;
cursor: pointer;
}

.news-card.expanded {
height: auto;
}

.news-card.expanded .news-text {
display: block;
overflow: visible;
}

.news-actions {
margin-top: 1rem;
}

@media (max-width: 820px) {
.news-card {
min-height: auto;
height: auto;
}

.news-text-wrap {
overflow: visible;
}

.news-text {
display: block;
overflow: visible;
-webkit-line-clamp: unset;
line-clamp: unset;
-webkit-box-orient: unset;
}

.news-expand-btn {
display: none;
}
}

.lightbox {
position: fixed;
inset: 0;
z-index: 9999;
}

.lightbox-inner {
position: relative;
z-index: 1;
}

.lightbox-image {
position: relative;
z-index: 1;
}

.lightbox-image img {
display: block;
max-width: 100%;
max-height: 70vh;
object-fit: contain;
}

.lightbox-controls {
position: absolute;
inset: 50% 0 auto 0;
transform: translateY(-50%);
display: flex;
justify-content: space-between;
z-index: 20; /* plus haut que l’image */
pointer-events: none; /* le conteneur ne bloque pas */
}

.lightbox-btn,
.close-btn {
position: relative;
z-index: 21;
pointer-events: auto; /* les boutons restent cliquables */
}

.close-btn {
position: absolute;
top: 12px;
right: 12px;
z-index: 30;
}

.news-card {
display: flex;
flex-direction: column;
min-height: 420px;
height: 420px;
}

.news-text-wrap {
overflow: hidden;
}

.news-text {
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 6;
line-clamp: 6;
-webkit-box-orient: vertical;
overflow: hidden;
}

.news-expand-btn {
margin-top: auto;
align-self: flex-start;
padding: .45rem 0 0;
border: 0;
background: transparent;
color: var(--primary);
font-weight: 800;
cursor: pointer;
}

.news-card.expanded {
height: auto;
}

.news-card.expanded .news-text {
display: block;
overflow: visible;
}

@media (max-width: 820px) {
.news-card {
min-height: auto;
height: auto;
}

.news-text-wrap {
overflow: visible;
}

.news-text {
display: block;
overflow: visible;
-webkit-line-clamp: unset;
line-clamp: unset;
-webkit-box-orient: unset;
}

.news-expand-btn {
display: none;
}
}

@media (max-width: 820px) {
.news-card {
height: 420px; /* même taille pour toutes */
min-height: 420px;
}

.news-text-wrap {
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}

.news-text {
display: block;
overflow: visible;
-webkit-line-clamp: unset;
line-clamp: unset;
}

.news-expand-btn {
display: none; /* pas de bouton sur mobile */
}
}

.news-text-wrap::-webkit-scrollbar {
width: 4px;
}

.news-text-wrap::-webkit-scrollbar-thumb {
background: rgba(0,0,0,0.2);
border-radius: 4px;
}

.news-text-wrap {
overflow-y: auto;
-webkit-overflow-scrolling: touch;

/* force une scrollbar visible */
scrollbar-width: thin;
scrollbar-color: rgba(0,0,0,0.3) transparent;
}

/* Chrome / Safari */
.news-text-wrap::-webkit-scrollbar {
width: 6px;
}

.news-text-wrap::-webkit-scrollbar-track {
background: transparent;
}

.news-text-wrap::-webkit-scrollbar-thumb {
background: rgba(0,0,0,0.3);
border-radius: 6px;
}

.news-text-wrap::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 30px;
background: linear-gradient(transparent, white);
pointer-events: none;
}

@media (max-width: 820px) {
.news-card {
height: 420px;
min-height: 420px;
}

.news-text-wrap {
overflow: hidden; /* plus de scroll */
}

.news-text {
display: -webkit-box;
-webkit-line-clamp: 6;
line-clamp: 6;
-webkit-box-orient: vertical;
overflow: hidden;
}

.news-expand-btn {
display: block; /* bouton visible sur mobile */
}
}

.news-text {
display: -webkit-box;
-webkit-line-clamp: 6;
line-clamp: 6;
-webkit-box-orient: vertical;
overflow: hidden;
}

.news-card.expanded .news-text {
display: block;
overflow: visible;
}


.depaysement-class-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.25rem;
}

.depaysement-class-card {
text-decoration: none;
color: inherit;
transition: transform .2s ease, box-shadow .2s ease;
}

.depaysement-class-card:hover {
transform: translateY(-3px);
}

.depaysement-class-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: .75rem;
margin-bottom: 1rem;
}

.depaysement-class-card .count {
font-size: .95rem;
font-weight: 700;
color: var(--primary);
}

.depaysement-phase-grid {
display: grid;
gap: 1rem;
}

.depaysement-phase-card {
overflow: hidden;
}

.depaysement-phase-toggle {
width: 100%;
border: 0;
background: transparent;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.25rem;
font-size: 1.15rem;
font-weight: 800;
cursor: pointer;
color: var(--heading);
}

.depaysement-phase-icon {
font-size: 1.5rem;
line-height: 1;
color: var(--primary);
}

.depaysement-phase-content {
padding: 0 1.25rem 1.25rem;
}

.depaysement-phase-content.hidden {
display: none;
}

.depaysement-entry-block + .depaysement-entry-block {
margin-top: 1.25rem;
padding-top: 1.25rem;
border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.depaysement-entry-block h4 {
margin-bottom: .75rem;
}

.depaysement-photo-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: .85rem;
margin-top: 1rem;
}

.depaysement-photo-btn {
border: 0;
background: transparent;
padding: 0;
cursor: pointer;
}

.depaysement-photo-btn img {
width: 100%;
height: 120px;
object-fit: cover;
border-radius: 16px;
display: block;
transition: transform .2s ease;
}

.depaysement-photo-btn:hover img {
transform: scale(1.02);
}

.depaysement-empty-phase {
color: var(--muted);
}

@media (max-width: 960px) {
.depaysement-class-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 820px) {
.depaysement-class-grid {
grid-template-columns: 1fr;
}

.depaysement-phase-toggle {
padding: 1rem;
}

.depaysement-phase-content {
padding: 0 1rem 1rem;
}
}

.depaysement-class-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.75rem;
margin-top: 2rem;
}

.depaysement-class-card {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 220px;
padding: 1.75rem;
text-decoration: none;
color: inherit;
border-radius: 28px;
transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.depaysement-class-card:hover {
transform: translateY(-4px);
}

.depaysement-class-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.5rem;
}

.depaysement-class-card .badge {
font-size: .9rem;
padding: .5rem .9rem;
border-radius: 999px;
}

.depaysement-class-card .count {
font-size: .95rem;
font-weight: 800;
color: var(--primary);
white-space: nowrap;
}

.depaysement-class-card h3 {
font-size: 1.8rem;
line-height: 1.15;
margin: 0 0 1rem;
}

.depaysement-class-card p {
margin: 0;
color: var(--muted);
font-size: 1.02rem;
line-height: 1.7;
}

.depaysement-phase-grid {
display: grid;
gap: 1.25rem;
margin-top: 2rem;
}

.depaysement-phase-card {
overflow: hidden;
border-radius: 26px;
}

.depaysement-phase-toggle {
width: 100%;
border: 0;
background: transparent;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.4rem 1.5rem;
font-size: 1.15rem;
font-weight: 800;
cursor: pointer;
color: var(--heading);
}

.depaysement-phase-icon {
font-size: 1.7rem;
line-height: 1;
color: var(--primary);
}

.depaysement-phase-content {
padding: 0 1.5rem 1.5rem;
}

.depaysement-phase-content.hidden {
display: none;
}

.depaysement-entry-block + .depaysement-entry-block {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.depaysement-entry-block h4 {
margin-bottom: .85rem;
font-size: 1.15rem;
}

.depaysement-entry-block p {
line-height: 1.8;
margin: 0;
}

.depaysement-photo-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
margin-top: 1.25rem;
}

.depaysement-photo-btn {
border: 0;
background: transparent;
padding: 0;
cursor: pointer;
}

.depaysement-photo-btn img {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 18px;
display: block;
transition: transform .2s ease;
}

.depaysement-photo-btn:hover img {
transform: scale(1.02);
}

.depaysement-empty-phase {
color: var(--muted);
line-height: 1.7;
}

@media (max-width: 1100px) {
.depaysement-class-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 820px) {
.depaysement-class-grid {
grid-template-columns: 1fr;
gap: 1rem;
}

.depaysement-class-card {
min-height: 190px;
padding: 1.25rem;
border-radius: 22px;
}

.depaysement-class-head {
margin-bottom: 1rem;
}

.depaysement-class-card h3 {
font-size: 1.45rem;
margin-bottom: .7rem;
}

.depaysement-class-card p {
font-size: .98rem;
line-height: 1.6;
}

.depaysement-phase-toggle {
padding: 1rem 1.1rem;
}

.depaysement-phase-content {
padding: 0 1.1rem 1.1rem;
}

.depaysement-photo-list {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.depaysement-photo-btn img {
height: 120px;
}
}

.depaysement-accompagnateurs {
margin: 1.5rem 0;
padding: 1.5rem;
border-radius: 24px;
}

.depaysement-accompagnateurs-head h2 {
margin: 0 0 1rem;
font-size: 1.15rem;
}

.depaysement-accompagnateurs-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 1rem;
}

.depaysement-accompagnateur {
text-align: center;
}

.depaysement-accompagnateur img {
width: 96px;
height: 96px;
border-radius: 999px;
object-fit: cover;
display: block;
margin: 0 auto .75rem;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.depaysement-accompagnateur h3 {
margin: 0 0 .3rem;
font-size: 1rem;
}

.depaysement-accompagnateur p {
margin: 0;
color: var(--muted);
font-size: .95rem;
line-height: 1.4;
}

@media (max-width: 820px) {
.depaysement-accompagnateurs {
padding: 1.1rem;
border-radius: 20px;
}

.depaysement-accompagnateurs-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.depaysement-accompagnateur img {
width: 84px;
height: 84px;
}
}

.depaysement-accompagnateurs {
padding: 1.4rem 1.5rem;
border-radius: 26px;
}

.depaysement-accompagnateurs-head {
margin-bottom: 1.25rem;
}

.depaysement-accompagnateurs-head h2 {
margin: 0;
font-size: 1.15rem;
font-weight: 800;
color: var(--heading);
}

.depaysement-accompagnateurs-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1.25rem;
justify-items: center;
}

.depaysement-accompagnateur {
text-align: center;
}

.depaysement-accompagnateur img {
width: 120px;
height: 120px;
object-fit: cover;
border-radius: 999px;
display: block;
margin: 0 auto .85rem;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.depaysement-accompagnateur h3 {
margin: 0 0 .3rem;
font-size: 1rem;
font-weight: 800;
color: var(--heading);
}

.depaysement-accompagnateur p {
margin: 0;
color: var(--muted);
font-size: .95rem;
line-height: 1.5;
}

@media (max-width: 820px) {
.depaysement-accompagnateurs {
padding: 1.1rem;
border-radius: 22px;
}

.depaysement-accompagnateurs-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}

.depaysement-accompagnateur img {
width: 96px;
height: 96px;
}
}

#lightboxImage {
transition:
opacity .18s ease,
transform .18s ease;
will-change: transform, opacity;
user-select: none;
-webkit-user-drag: none;
touch-action: pan-y;
}

.lightbox-image {
overflow: hidden;
position: relative;
}

.lightbox-track {
display: flex;
width: 300%;
transform: translateX(-100%);
transition: transform .26s ease;
will-change: transform;
}

.lightbox-slide {
width: 100%;
flex: 0 0 100%;
display: flex;
align-items: center;
justify-content: center;
}

.lightbox-slide img {
max-width: 100%;
max-height: 70vh;
object-fit: contain;
display: block;
user-select: none;
-webkit-user-drag: none;
}

@media (max-width: 820px) {
.lightbox-slide img {
max-height: 62vh;
}
}

.lightbox-track {
transition: transform .38s cubic-bezier(.22, .8, .3, 1);
}

.lightbox-image {
overflow: hidden;
position: relative;
width: 100%;
min-height: 70vh;
display: flex;
align-items: center;
justify-content: center;
}

.lightbox-track {
display: flex;
width: 300%;
height: 100%;
transform: translateX(-100%);
transition: transform .38s cubic-bezier(.22, .8, .3, 1);
will-change: transform;
}

.lightbox-slide {
flex: 0 0 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.lightbox-slide img {
max-width: 100%;
max-height: 70vh;
width: auto;
height: auto;
object-fit: contain;
display: block;
user-select: none;
-webkit-user-drag: none;
}

@media (max-width: 820px) {
.lightbox-image {
min-height: 62vh;
}

.lightbox-slide img {
max-height: 62vh;
}
}

/* =========================
LIGHTBOX
========================= */

.lightbox {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(7, 15, 24, 0.86);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity .22s ease, visibility .22s ease;
}

.lightbox.open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.lightbox-inner {
width: min(1000px, 100%);
position: relative;
background: #08131f;
border-radius: 24px;
padding: 1rem;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
transform: translateY(10px) scale(.985);
transition: transform .22s ease;
}

.lightbox.open .lightbox-inner {
transform: translateY(0) scale(1);
}

.lightbox-image {
overflow: hidden;
position: relative;
width: 100%;
min-height: 70vh;
display: flex;
align-items: center;
justify-content: center;
border-radius: 18px;
}

.lightbox-track {
display: flex;
width: 300%;
height: 100%;
transform: translateX(-100%);
transition: transform .38s cubic-bezier(.22, .8, .3, 1);
will-change: transform;
}

.lightbox-slide {
flex: 0 0 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.lightbox-slide img {
max-width: 100%;
max-height: 70vh;
width: auto;
height: auto;
object-fit: contain;
display: block;
user-select: none;
-webkit-user-drag: none;
pointer-events: none;
}

.lightbox-controls {
position: absolute;
inset: 50% 0 auto 0;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
z-index: 20;
pointer-events: none;
}

.lightbox-btn,
.close-btn {
pointer-events: auto;
border: 0;
background: rgba(255, 255, 255, 0.14);
color: #fff;
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
backdrop-filter: blur(8px);
box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.close-btn {
position: absolute;
top: 12px;
right: 12px;
z-index: 30;
}

.lightbox-footer {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 0.9rem 0.4rem 0.2rem;
}

.lightbox-caption {
color: #edf5ff;
padding: 0;
}

.lightbox-download {
white-space: nowrap;
}

@media (max-width: 820px) {
.lightbox {
padding: 0;
}

.lightbox-inner {
width: 100%;
height: 100%;
max-width: none;
border-radius: 0;
padding: .75rem .75rem 1rem;
display: flex;
flex-direction: column;
justify-content: center;
}

.lightbox-image {
min-height: 62vh;
}

.lightbox-slide img {
max-height: 62vh;
}

.lightbox-controls {
inset: auto 0 120px 0;
transform: none;
padding: 0 .6rem;
}

.lightbox-btn,
.close-btn {
width: 54px;
height: 54px;
background: rgba(15, 23, 42, 0.42);
backdrop-filter: blur(10px);
}

.lightbox-btn:active,
.close-btn:active {
transform: scale(.96);
}

.close-btn {
top: .75rem;
right: .75rem;
}

.lightbox-footer {
margin-top: .8rem;
gap: .75rem;
flex-direction: column;
align-items: stretch;
}

.lightbox-caption {
text-align: center;
font-size: .95rem;
line-height: 1.45;
}

.lightbox-download {
width: 100%;
}
}