:root {
--bg-deep: #06090f;
--bg-card: #0e1420;
--bg-section: #090d16;
--accent: #f0a500;
--accent-light: #ffc84a;
--text-white: #f0ede8;
--text-gray: #7a8499;
--profit: #2ecc8a;
--container-padding: clamp(20px, 4.5vw, 76px);
--maxw: 1520px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
body {
background-color: var(--bg-deep);
color: var(--text-white);
font-family: 'DM Sans', sans-serif;
line-height: 1.6;
overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--container-padding); }
.reveal { opacity: 0; transform: translateY(35px); }

/* IMAGES */
.img-reveal { border-radius: 18px; cursor: zoom-in; transition: 0.5s ease; object-fit: cover; border: 1px solid rgba(255,255,255,0.05); width: 100%; }
.img-reveal:hover { transform: scale(1.02); border-color: var(--accent); }

/* TYPOGRAPHY */
.label { color: var(--accent); font-family: 'Inter', sans-serif; font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 5px; display: block; margin-bottom: 14px; }
/* Le kicker du hero est trop long pour des capitales : casse basse, lettrage resserré. */
.label--hero { text-transform: none; letter-spacing: normal; font-size: 0.82rem; line-height: 1.8; }
.title-xl { font-family: 'Inter', sans-serif; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.08; margin-bottom: 28px; }

/* EN-TÊTE DE SECTION */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .title-xl { margin-bottom: 18px; }
.section-head > p { color: var(--text-gray); font-size: 0.98rem; line-height: 1.75; }

/* HEADER */
header {
padding: 22px 0;
position: sticky;
top: 0;
background: rgba(6,9,15,0.92);
z-index: 1000;
backdrop-filter: blur(18px);
border-bottom: 1px solid rgba(240,165,0,0.08);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 28px; align-items: center; }
nav a { color: var(--text-gray); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: 0.3s; }
nav a:hover { color: var(--accent); }
nav a.nav-cta {
background: var(--accent);
color: var(--bg-deep);
padding: 10px 22px;
border-radius: 8px;
font-weight: 700;
font-size: 0.78rem;
}
nav a.nav-cta:hover { background: var(--accent-light); transform: none; color: var(--bg-deep); }

/* HERO */
.hero {
display: grid;
grid-template-columns: 1.15fr 0.85fr;
gap: 60px;
padding: clamp(70px, 11vh, 130px) 0;
align-items: center;
}
h1 { font-family: 'Inter', sans-serif; font-size: clamp(2.8rem, 7.5vw, 5.2rem); font-weight: 800; line-height: 0.95; margin-bottom: 28px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--text-gray); font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 520px; margin-bottom: 42px; line-height: 1.7; }
.hero-signature {
margin-top: 44px;
max-width: 480px;
border-left: 2px solid var(--accent);
padding-left: 20px;
color: var(--text-gray);
font-size: 0.92rem;
font-style: italic;
line-height: 1.8;
}

.btn-cta {
background: var(--accent);
color: var(--bg-deep);
padding: 17px 42px;
border-radius: 10px;
text-decoration: none;
font-family: 'Inter', sans-serif;
font-weight: 700;
font-size: 0.95rem;
display: inline-block;
border: none;
cursor: pointer;
transition: 0.35s;
}
.btn-cta:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-ghost {
background: transparent;
color: var(--text-white);
padding: 16px 36px;
border-radius: 10px;
text-decoration: none;
font-family: 'Inter', sans-serif;
font-weight: 600;
font-size: 0.92rem;
display: inline-block;
border: 1px solid rgba(255,255,255,0.15);
cursor: pointer;
transition: 0.3s;
margin-left: 14px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* PROFILE CARD */
.profile-card {
background: var(--bg-card);
border-radius: 36px;
overflow: hidden;
border: 1px solid rgba(240,165,0,0.1);
box-shadow: 0 50px 100px rgba(0,0,0,0.7);
width: 100%;
max-width: 440px;
margin-left: auto;
}
.card-img-box { position: relative; width: 100%; height: 430px; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cloud-overlay {
position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
background: linear-gradient(to bottom, transparent, rgba(14,20,32,0.4) 30%, rgba(14,20,32,0.92) 70%, var(--bg-card) 100%);
z-index: 2;
}
.card-body { padding: 0 36px 38px; text-align: center; margin-top: -28px; position: relative; z-index: 3; }
.card-name { font-family: 'Inter', sans-serif; font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.card-tag { color: var(--accent); font-weight: 600; font-size: 0.72rem; letter-spacing: normal; line-height: 1.8; display: block; }
.card-nicknames { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nickname-badge { background: rgba(240,165,0,0.08); border: 1px solid rgba(240,165,0,0.2); color: var(--accent); font-size: 0.7rem; font-weight: 700; padding: 5px 13px; border-radius: 20px; }

/* CHIFFRES CLÉS */
.stats-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: 40px;
padding: 80px 0;
border-top: 1px solid rgba(255,255,255,0.04);
text-align: center;
}
.stat-icon { color: var(--accent); font-size: 1.15rem; margin-bottom: 14px; opacity: 0.75; }
.stat-item h3 { font-family: 'Inter', sans-serif; font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-item p { color: var(--text-gray); font-size: 0.85rem; margin-top: 12px; line-height: 1.6; max-width: 260px; margin-left: auto; margin-right: auto; }

/* MISSION / CITATION avec fond photo */
.quote-section {
position: relative;
overflow: hidden;
padding: 110px 0;
background: var(--bg-section);
margin-left: calc(-50vw + 50%);
width: 100vw;
text-align: center;
}
.quote-bg {
position: absolute;
inset: 0;
background-image: url('../images/workstation-close.jpg');
background-size: cover;
background-position: center 35%;
opacity: 0.2;
}
.quote-section::after {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse at center, rgba(9,13,22,0.55) 0%, var(--bg-section) 78%);
}
.quote-inner { position: relative; z-index: 3; max-width: 1000px; margin: 0 auto; padding: 0 var(--container-padding); }
.big-quote { font-family: 'Inter', sans-serif; font-size: clamp(1.35rem, 2.8vw, 1.95rem); font-weight: 600; line-height: 1.55; color: var(--text-white); }
.big-quote em { font-style: normal; color: var(--accent); }

/* PARCOURS / STORY */
.story-section { padding: 120px 0 100px; }
.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.story-quote {
font-family: 'Inter', sans-serif;
font-size: 1.15rem;
font-weight: 600;
line-height: 1.6;
color: var(--text-white);
border-left: 2px solid var(--accent);
padding-left: 24px;
}
.story-quote cite { display: block; margin-top: 18px; font-style: normal; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 400; color: var(--text-gray); }
/* Le conteneur est large : on borne la longueur de ligne pour garder la lecture confortable. */
.story-body { max-width: 68ch; }
.story-body p { color: var(--text-gray); line-height: 1.85; margin-bottom: 20px; }
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--text-white); font-weight: 600; }

.flags { margin-top: 42px; }
/* Ces intitulés font 50 à 65 caractères : trop longs pour des capitales. */
.flags-label {
font-family: 'Inter', sans-serif;
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.6px;
color: var(--text-gray);
margin-bottom: 16px;
}
.flags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-pill {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--bg-card);
border: 1px solid rgba(255,255,255,0.06);
padding: 8px 15px;
border-radius: 30px;
font-size: 0.76rem;
color: var(--text-gray);
}
.flag-emoji { font-size: 0.95rem; line-height: 1; }

/* RACINES SCIENTIFIQUES / BANDEAU 2 IMAGES */
.sci-block { margin-top: 90px; }
.sci-caption { max-width: 560px; margin-bottom: 30px; }
.sci-caption p { color: var(--text-gray); line-height: 1.8; }
.sci-band { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
/* Racines scientifiques : les deux photos n'ont pas le même rapport (0.80 et 0.713).
   Hauteur commune imposée, largeur laissée libre : même hauteur ET image entière, sans recadrage. */
.sci-band--natural { display: flex; justify-content: center; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.sci-band--natural img { height: 600px; width: auto; max-width: 100%; object-fit: contain; }
.teaching-band { margin-top: 60px; }
.teaching-band img { height: 480px; object-fit: cover; }

/* ÉTAPES CLÉS — TIMELINE */
.milestones-section { padding: 110px 0; background: var(--bg-section); margin-left: calc(-50vw + 50%); width: 100vw; }
.milestones-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--container-padding); }

.timeline { position: relative; max-width: 1060px; margin: 0 auto; padding-left: 58px; }
.timeline::before {
content: '';
position: absolute;
left: 13px;
top: 10px;
bottom: 10px;
width: 2px;
background: linear-gradient(180deg,
    rgba(240,165,0,0) 0%,
    rgba(240,165,0,0.55) 6%,
    rgba(240,165,0,0.55) 94%,
    rgba(240,165,0,0) 100%);
}

.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
content: '';
position: absolute;
left: -51px;
top: 4px;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--bg-section);
border: 2px solid var(--accent);
}
.tl-item--now::before { background: var(--accent); }

.tl-year {
display: inline-block;
font-family: 'Inter', sans-serif;
font-weight: 800;
font-size: 0.7rem;
letter-spacing: 2.5px;
text-transform: uppercase;
color: var(--accent);
background: rgba(240,165,0,0.08);
border: 1px solid rgba(240,165,0,0.2);
padding: 5px 14px;
border-radius: 20px;
margin-bottom: 14px;
}
.tl-item--now .tl-year { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }

.tl-card {
background: var(--bg-card);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 18px;
padding: 26px 30px;
transition: border-color 0.3s;
}
.tl-item:hover .tl-card { border-color: rgba(240,165,0,0.25); }
.tl-card--media { display: grid; grid-template-columns: 1fr 190px; gap: 26px; align-items: center; }
.tl-card h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.tl-card p { color: var(--text-gray); font-size: 0.87rem; line-height: 1.7; max-width: 70ch; }
.tl-thumb img {
width: 100%;
height: 130px;
object-fit: cover;
object-position: top;
border-radius: 12px;
border: 1px solid rgba(255,255,255,0.06);
cursor: zoom-in;
transition: 0.4s ease;
}
.tl-thumb img:hover { border-color: var(--accent); }

/* PREUVES / CERTIFICATS */
.proofs-section { padding: 110px 0; }
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-tile {
background: var(--bg-card);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 18px;
overflow: hidden;
transition: border-color 0.3s;
}
.cert-tile:hover { border-color: rgba(240,165,0,0.3); }
.cert-tile img {
width: 100%;
aspect-ratio: 4 / 3;
object-fit: contain;
background: #05070c;
padding: 12px;
display: block;
cursor: zoom-in;
}
.cert-tile figcaption {
padding: 16px 20px;
font-family: 'Inter', sans-serif;
font-size: 0.8rem;
font-weight: 600;
color: var(--text-gray);
border-top: 1px solid rgba(255,255,255,0.04);
line-height: 1.5;
}
.attest-block { margin-top: 70px; }
.attest-block .flags-label { text-align: center; margin-bottom: 26px; }

/* SERVICES */
.services-section { padding: 110px 0; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.service-card { background: var(--bg-card); padding: 42px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.04); position: relative; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); opacity: 0; transition: 0.3s; }
.service-card:hover::before { opacity: 1; }
.service-card:hover { border-color: rgba(240,165,0,0.15); transform: translateY(-4px); }
.service-num { font-family: 'Inter', sans-serif; font-size: 3rem; font-weight: 800; color: rgba(240,165,0,0.12); position: absolute; top: 24px; right: 30px; line-height: 1; }
.service-icon { color: var(--accent); font-size: 1.5rem; margin-bottom: 20px; }
.service-card h3 { font-family: 'Inter', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.service-card p { color: var(--text-gray); font-size: 0.88rem; line-height: 1.8; margin-bottom: 26px; max-width: 62ch; }
.service-cta { margin-left: 0; margin-top: auto; align-self: flex-start; padding: 13px 28px; font-size: 0.84rem; }

/* PANNEAU ATS */
.ats-panel {
margin-top: 26px;
background: var(--bg-card);
border: 1px solid rgba(240,165,0,0.14);
border-radius: 24px;
padding: 52px;
}
.ats-panel h3 { font-family: 'Inter', sans-serif; font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 800; margin-bottom: 18px; max-width: 24ch; }
.ats-panel p { color: var(--text-gray); line-height: 1.85; max-width: 72ch; margin-bottom: 30px; }

/* MÉDIA */
.media-section { padding: 110px 0 0; background: var(--bg-section); margin-left: calc(-50vw + 50%); width: 100vw; }
.video-feature {
max-width: 1120px;
margin: 0 auto;
border-radius: 22px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.06);
background: #000;
}
.video-feature video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }

/* CAROUSEL */
.carousel-wrap { --slide: 320px; --gap: 22px; overflow: hidden; padding: 80px 0 90px; }
.carousel-track { display: flex; gap: var(--gap); width: max-content; animation: scroll 55s linear infinite; }
.carousel-wrap:hover .carousel-track { animation-play-state: paused; }
.carousel-item { width: var(--slide); height: 420px; flex-shrink: 0; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc((var(--slide) + var(--gap)) * -7)); } }

/* COMMUNAUTÉ */
.community-section { padding: 100px 0; }
.community-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--container-padding); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: center; }
.community-img img { width: 100%; height: 540px; object-fit: cover; border-radius: 28px; border: 1px solid rgba(240,165,0,0.1); }
.community-lead { color: var(--text-gray); line-height: 1.8; margin-bottom: 34px; font-size: 1rem; }
.community-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.community-card {
position: relative;
background: var(--bg-card);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 18px;
padding: 28px;
text-decoration: none;
color: inherit;
transition: border-color 0.3s, transform 0.3s;
}
.community-card:hover { border-color: rgba(240,165,0,0.3); transform: translateY(-3px); }
.community-card--highlight { border-color: rgba(240,165,0,0.22); }
.community-icon { color: var(--accent); font-size: 1.45rem; margin-bottom: 16px; }
.community-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.community-sub { color: var(--text-gray); font-size: 0.82rem; line-height: 1.5; }
.community-badge {
position: absolute;
top: 20px; right: 20px;
background: rgba(240,165,0,0.1);
border: 1px solid rgba(240,165,0,0.25);
color: var(--accent);
font-family: 'Inter', sans-serif;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.5px;
padding: 4px 11px;
border-radius: 20px;
}

/* CONTACT */
.contact-section { padding: 100px 0 60px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.contact-method {
background: var(--bg-card);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 22px;
padding: 36px 32px;
display: flex;
flex-direction: column;
transition: border-color 0.3s;
}
.contact-method:hover { border-color: rgba(240,165,0,0.25); }
.contact-method--primary { border-color: rgba(240,165,0,0.22); }
.contact-method h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.contact-method h3 i { color: var(--accent); margin-right: 8px; }
.contact-method > p { color: var(--text-gray); font-size: 0.87rem; line-height: 1.7; margin-bottom: 22px; }
.contact-method .btn-cta,
.contact-method .btn-ghost { margin-left: 0; margin-top: auto; align-self: flex-start; padding: 14px 30px; font-size: 0.87rem; }
.wa-num { font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 26px; }
.mail-addr { font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 600; color: var(--accent); margin-bottom: 26px; word-break: break-all; }
.community-badge--inline { position: static; display: inline-block; align-self: flex-start; margin-bottom: 26px; }

/* FOOTER */
footer { padding: 90px 0 60px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-sig { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(1rem, 2vw, 1.35rem); max-width: 30ch; line-height: 1.4; }
.footer-sig span { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--text-gray); text-decoration: none; font-size: 0.82rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.disclaimer {
margin-top: 70px;
font-size: 0.72rem;
color: var(--text-gray);
line-height: 2;
max-width: 900px;
text-align: justify;
}
.footer-copy { margin-top: 34px; font-size: 0.75rem; color: var(--text-gray); }

/* LIGHTBOX */
#lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.98); display: none; justify-content: center; align-items: center; z-index: 2000; cursor: zoom-out; }
#lightbox img { max-width: 92%; max-height: 90%; }

/* NOISE OVERLAY */
body::before {
content: '';
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
opacity: 0.02;
pointer-events: none;
z-index: 9999;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
.hero, .community-inner, .story-grid { grid-template-columns: 1fr; }
.hero { text-align: center; }
.hero-sub { margin: 0 auto 42px; }
.hero-signature { margin-left: auto; margin-right: auto; text-align: left; }
.profile-card { margin: 0 auto; }
.services-grid, .community-cards { grid-template-columns: 1fr; }
.certs-grid { grid-template-columns: repeat(2, 1fr); }
.community-img { display: none; }
.story-grid { gap: 46px; }
.section-head { margin-bottom: 44px; }

/* nav : on garde uniquement le CTA rendez-vous accessible */
nav a { display: none; }
nav a.nav-cta { display: inline-block; }

.contact-grid { grid-template-columns: 1fr; }
.tl-card--media { grid-template-columns: 1fr; gap: 20px; }
.tl-thumb img { height: 200px; }
.teaching-band img { height: 380px; }
.sci-band--natural img { height: 440px; }
.ats-panel { padding: 36px 28px; }
}
@media (max-width: 768px) {
.carousel-wrap { --slide: 230px; --gap: 14px; padding: 50px 0 60px; }
.carousel-item { height: 300px; }
.certs-grid { grid-template-columns: 1fr; }
.sci-band { grid-template-columns: 1fr; }
/* Trop étroit pour deux colonnes : chaque photo passe pleine largeur, hauteur naturelle. */
.sci-band--natural img { height: auto; width: 100%; }
.btn-ghost { margin-left: 0; margin-top: 12px; }
.timeline { padding-left: 40px; }
.timeline::before { left: 7px; }
.tl-item::before { left: -39px; }
.tl-card { padding: 22px 22px; }
.disclaimer { text-align: left; }
}
