/* ============================================================
   AGRENE — Main Stylesheet
   ============================================================ */

/* Variables (overridden by customizer via inline style tag) */
:root {
    --green-deep:  #1a3323;
    --green-mid:   #2d5a3d;
    --green-light: #4a8c5c;
    --green-pale:  #a8c8a0;
    --cream:       #f5f0e8;
    --cream-dark:  #ede7d8;
    --text-dark:   #1a1a14;
    --text-mid:    #3a3a2e;
    --text-light:  #7a7a6a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

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

a { color: inherit; }

/* ── SHARED ──────────────────────────────── */
.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--green-deep);
    margin-bottom: 2rem;
}
.section-title em { font-style: italic; color: var(--green-light); }

.btn-primary {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-deep);
    background: var(--cream);
    padding: 1rem 2.2rem;
    text-decoration: none;
    transition: background 0.25s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--green-pale); }

.btn-ghost {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.65);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}
.btn-ghost:hover { color: #fff; }
.btn-ghost::after { content: '→'; font-size: 1rem; }

/* ── NAV ──────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 4rem;
    transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
    background: rgba(245,240,232,0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(74,140,92,0.15);
}

.nav-brand { display: flex; flex-direction: column; gap: 0.1rem; }
.nav-logo-link { text-decoration: none; }
.nav-logo-img  { height: 40px; width: auto; }

.nav-logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #fff;
    line-height: 1;
    transition: color 0.4s;
}
#navbar.scrolled .nav-logo-name { color: var(--green-deep); }

.nav-logo-tagline {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green-pale);
    transition: color 0.4s;
}
#navbar.scrolled .nav-logo-tagline { color: var(--green-light); }

.nav-links,
#primary-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* WordPress adds sub-menus — hide them */
.nav-links .sub-menu,
#primary-menu .sub-menu { display: none; }

/* WordPress wraps items in <li> with classes like .menu-item */
.nav-links li,
#primary-menu li { list-style: none; margin: 0; padding: 0; }

.nav-links a,
#primary-menu a {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.25s;
}
#navbar.scrolled .nav-links a,
#navbar.scrolled #primary-menu a { color: var(--green-mid); }
.nav-links a:hover,
#primary-menu a:hover { color: #fff; }
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled #primary-menu a:hover { color: var(--green-deep); }

.nav-cta {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-deep);
    background: var(--cream);
    padding: 0.7rem 1.6rem;
    text-decoration: none;
    transition: background 0.25s;
}
.nav-cta:hover { background: var(--green-pale); }

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: background 0.4s, transform 0.3s;
}
#navbar.scrolled .nav-mobile-toggle span { background: var(--green-deep); }
.nav-mobile-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ───────────────────────────────── */
#hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1530836369250-ef72a3f5cda8?w=1800&q=80');
    background-size: cover;
    background-position: center 30%;
    filter: saturate(0.8) brightness(0.72);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,28,18,var(--ov-hero,0.65)) 0%, rgba(10,28,18,var(--ov-hero-mid,0.18)) 55%, rgba(10,28,18,0) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: end;
    padding: 6rem 6rem 7rem;
    width: 100%;
}

.hero-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--green-pale);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 5.5vw, 5.8rem);
    font-weight: 300;
    line-height: 1.05;
    color: #f5f0e8;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.4s forwards;
}
.hero-title em { font-style: italic; color: var(--green-pale); }

.hero-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(245,240,232,0.6);
    max-width: 48ch;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.6s forwards;
}
.hero-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.9s 0.8s forwards;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-end;
    opacity: 0;
    animation: fadeUp 0.9s 0.6s forwards;
}
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; width: 100%; }
.hero-stat { border-left: 1px solid rgba(168,200,160,0.3); padding-left: 1.5rem; }
.hero-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: #f5f0e8;
    line-height: 1;
}
.hero-stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
    margin-top: 0.4rem;
}
.hero-photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; width: 100%; }
.hero-photo-strip img {
    width: 100%; height: 155px;
    object-fit: cover;
    filter: saturate(0.75) brightness(0.88);
    transition: filter 0.4s;
}
.hero-photo-strip img:hover { filter: saturate(0.85) brightness(0.95); }

/* ── TICKER ─────────────────────────────── */
.ticker {
    background: var(--green-mid);
    padding: 1.1rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-inner {
    display: inline-flex;
    gap: 5rem;
    animation: scroll-band 22s linear infinite;
}
.ticker-item {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--green-pale);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}
.ticker-item::before { content: '◆'; font-size: 0.4rem; }

/* ── ABOUT ──────────────────────────────── */
#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 85vh;
}
.about-image-col { position: relative; overflow: hidden; min-height: 600px; }
.about-image-col img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.about-image-col:hover img { transform: scale(1.04); }
.about-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,51,35,var(--ov-about,0.25)) 0%, transparent 55%);
}
.about-image-caption {
    position: absolute;
    bottom: 2rem; left: 2rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.57rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.45);
}
.about-text-col {
    padding: 7rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--cream);
}
.about-text-col p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 1.4rem;
}
.about-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(74,140,92,0.3);
    color: var(--green-mid);
    padding: 0.45rem 0.9rem;
}

/* ── SERVICES ───────────────────────────── */
#services { background: #f0ebe0; }

.services-intro-block {
    padding: 6rem 6rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
}
#services .section-label { color: var(--green-light); }
#services .section-title { color: var(--green-deep); margin-bottom: 0; }
.services-intro-text p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-mid);
    max-width: 44ch;
}

.services-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(74,140,92,0.15);
    align-items: stretch;
}
.service-featured-img { position: relative; overflow: hidden; min-height: 520px; }
.service-featured-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.75) brightness(0.85);
    transition: transform 0.6s, filter 0.4s;
}
.service-featured-img:hover img { transform: scale(1.04); filter: saturate(0.9) brightness(0.92); }
.service-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(20,35,25,var(--ov-services,0.45)) 0%, transparent 70%);
}
.service-featured-content { position: absolute; bottom: 3rem; left: 3rem; right: 2rem; }
.service-featured-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    color: #fff;
    line-height: 1;
}
.service-featured-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #dce8e7;
    margin-bottom: 0.8rem;
}
.service-featured-desc {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.8;
    color: #2a3d30;
    max-width: 38ch;
}

.services-intro-image {
    margin-top: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}
.services-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.service-stack {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-item {
    position: relative;
    overflow: hidden;
    flex: 1;
    border-bottom: 1px solid rgba(74,140,92,0.12);
    background: #f0ebe0;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-item:last-child { border-bottom: none; }
.service-item:hover { background: #e8e2d4; }
.service-item-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s;
    filter: saturate(0.65) brightness(0.75);
}
.service-item:hover .service-item-bg { opacity: 1; }
.service-item-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    padding: 2.8rem 3.5rem;
    align-items: start;
    transition: color 0.3s;
}
.service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: rgb(48 105 68);
    padding-top: 0.2rem;
    transition: color 0.3s;
}
.service-item:hover .service-num {
    /* color: rgba(245,240,232,0.5); */
	color: #000000 !important;
}
.service-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--green-deep);
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}
.service-item:hover .service-body h3 {
    /* color: #f5f0e8;*/
	color: #000000;
}
.service-body p,
.service-body div {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.8;
    /* color: var(--text-light);*/
	color: #000000;
    transition: color 0.3s;
}
.service-item:hover .service-body p,
.service-item:hover .service-body div,
.service-item:hover .service-body li {
    /*color: rgba(245,240,232,0.8);*/
	color: #000000;
}

/* Icône + numéro dans service-featured-num et service-num */
.svc-icon {
    width: 1.4rem;
    height: 1.4rem;
    margin-right: 0.4rem;
    vertical-align: middle;
    stroke: rgba(26,51,35,0.55);
    flex-shrink: 0;
}
.service-featured-num { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }

/* Mode grille : méta numéro + icône */
.service-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.service-card-num {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light, #4a8c5c);
    font-weight: 400;
}
.service-card-icon {
    width: 1.4rem;
    height: 1.4rem;
    stroke: var(--green-pale);
}

/* ── SERVICES GRID MODE (5–6 axes) ─────── */
.services-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(74,140,92,0.15);
}
.services-grid--5 { grid-template-columns: repeat(5, 1fr); }
.services-grid--6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, auto); }

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--cream, #f5f0e8);
    border-right: 1px solid rgba(74,140,92,0.1);
    border-bottom: 1px solid rgba(74,140,92,0.1);
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
}
.service-card:hover { background: #e8e2d4; }

.service-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.service-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.72) brightness(0.88);
    transition: transform 0.5s, filter 0.4s;
}
.service-card:hover .service-card-img img {
    transform: scale(1.05);
    filter: saturate(0.88) brightness(0.95);
}
.service-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,35,25,var(--ov-services,0.30)) 0%, transparent 60%);
}

.service-card-body {
    padding: 1.6rem 1.8rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-card-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: block;
    margin-bottom: 0.3rem;
    stroke: var(--green-pale);
}
.service-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--green-deep);
    margin: 0;
    line-height: 1.25;
    transition: color 0.3s;
}
.service-card:hover .service-card-title { color: var(--green-mid, #2d5a3d); }
.service-card-desc {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-light, #666);
    margin: 0;
    flex: 1;
}

/* Mode icône dans service-featured-num quand emoji */
.service-featured-num:not(:empty) {
    font-size: 3.5rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .services-grid--5,
    .services-grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .services-grid--5,
    .services-grid--6 { grid-template-columns: 1fr; }
}

/* ── MOSAIC ─────────────────────────────── */
#mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 320px 280px;
    gap: 4px;
}
.mosaic-cell { position: relative; overflow: hidden; }
.mosaic-cell img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.82);
    transition: transform 0.6s, filter 0.4s;
}
.mosaic-cell:hover img { transform: scale(1.06); filter: saturate(0.9); }
.mosaic-cell.tall { grid-row: span 2; }
.mosaic-overlay {
    position: absolute; inset: 0;
    background: rgba(26,51,35,0);
    transition: background 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.mosaic-cell:hover .mosaic-overlay { background: rgba(26,51,35,var(--ov-mosaic,0.3)); }
.mosaic-label {
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.85);
    opacity: 0;
    transition: opacity 0.3s;
	font-weight : bold;
}
.mosaic-cell:hover .mosaic-label { opacity: 1; }

/* ── WHY ────────────────────────────────── */
#why { padding: 8rem 6rem; background: var(--cream-dark); }
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 4rem;
}
.why-list { list-style: none; display: flex; flex-direction: column; }
.why-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.5rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid rgba(74,140,92,0.18);
    align-items: start;
}
.why-item:first-child { border-top: 1px solid rgba(74,140,92,0.18); }
.why-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--green-light);
    padding-top: 0.1rem;
}
.why-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--green-deep);
    margin-bottom: 0.4rem;
}
.why-item p { font-size: 0.88rem; font-weight: 300; line-height: 1.8; color: var(--text-light); }

.why-visual { display: flex; flex-direction: column; gap: 1.5rem; }
.why-img-large {
    width: 100%; height: 340px;
    object-fit: cover;
    filter: saturate(0.85);
    transition: filter 0.4s, transform 0.5s;
}
.why-img-large:hover { filter: saturate(1); transform: scale(1.02); }
.why-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.why-img-small {
    width: 100%; height: 180px;
    object-fit: cover;
    filter: saturate(0.82);
    transition: filter 0.4s;
}
.why-img-small:hover { filter: saturate(0.95); }
.why-stat-pill {
    background: var(--green-deep);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}
.why-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: #f5f0e8;
    line-height: 1;
}
.why-stat-label { font-size: 0.88rem; font-weight: 300; color: rgba(245,240,232,0.5); line-height: 1.6; }

/* ── RESEARCH ───────────────────────────── */
.research-header-block {
    padding: 7rem 6rem 5rem;
    background: var(--cream);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: end;
}
.research-header-block > p,
.research-header-text > p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-mid);
}

.research-image-strip {
    display: grid;
    gap: 4px;
}
/* Variantes selon nb d'images */
.research-image-strip--1 { grid-template-columns: 1fr; }
.research-image-strip--2 { grid-template-columns: repeat(2,1fr); }
.research-image-strip--3 { grid-template-columns: repeat(3,1fr); }
.research-image-strip--4 { grid-template-columns: repeat(4,1fr); }
.research-image-strip--5 { grid-template-columns: repeat(5,1fr); }
.research-image-strip--6 { grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2, auto); }

/* Fallback sans modificateur (ancienne valeur 4) */
.research-image-strip:not([class*="--"]) { grid-template-columns: repeat(4,1fr); }

.research-img-cell { position: relative; overflow: hidden; height: 280px; }
.research-img-cell img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.7) brightness(0.85);
    transition: filter 0.4s, transform 0.5s;
}
.research-img-cell:hover img { filter: saturate(0.92) brightness(0.98); transform: scale(1.05); }
.research-img-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem 1.5rem 1.2rem;
}
.research-img-icon {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
    margin-bottom: 0.3rem;
    stroke: #2d5a3d;
}
.research-img-label span:not(.research-img-icon) {
    font-family: 'DM Mono', monospace;
    font-size: 0.57rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1a3323;
    display: block;
}
.research-img-label h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0.3rem;
}

.research-header-text { display: flex; flex-direction: column; gap: 0; }
.research-intro-image {
    margin-top: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}
.research-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.research-areas-grid {
    background: rgba(168,200,160,0.12);
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3px;
    padding: 3px;
}
.research-area {
    background: var(--cream);
    padding: 3rem;
    transition: background 0.25s;
}
.research-area:hover { background: var(--cream-dark); }
.research-area-icon { display:block; width:2rem; height:2rem; margin-bottom:1.2rem; stroke:var(--green-light); }
.research-area h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--green-deep);
    margin-bottom: 0.6rem;
}
.research-area p { font-size: 0.85rem; font-weight: 300; line-height: 1.8; color: var(--text-light); }

/* ── CONTACT ────────────────────────────── */
#contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}
.contact-image { position: relative; overflow: hidden; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.78); }
.contact-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,51,35,var(--ov-contact,0.5)) 0%, rgba(26,51,35,calc(var(--ov-contact,0.5)*0.2)) 100%);
}
.contact-image-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
	/* justify-content: flex-end;*/
	justify-content: center;
    padding: 3.5rem;
}
.contact-image-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 200;
    font-style: italic;
    /*color: #1a3323;*/
	color: #fff;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.contact-white-box {
    background: rgba(255, 255, 255, var(--contact-box-opacity, 0.79));
    border-radius: 4px;
    padding: 1.5rem 1.8rem;
}
.contact-box-image {
    width: 100%;
    margin-bottom: 1.2rem;
    border-radius: 3px;
    overflow: hidden;
}
.contact-box-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.contact-white-box > p {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.8;
    color: #2a3d30;
    max-width: 36ch;
    margin-bottom: 0;
}
.contact-white-box .contact-info-pills { margin-top: 1.2rem; }
.contact-white-box .contact-pill-label { color: #2a3d30; opacity: 0.55; }
.contact-white-box .contact-pill-value { color: #2a3d30; }
.contact-white-box .contact-pill-value a { color: #2a3d30; }

.contact-info-pills { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; }
.contact-pill { display: flex; gap: 1rem; align-items: flex-start; }
.contact-pill-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    font-weight:  700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-pale);
    /*opacity: 0.6;*/
    min-width: 4.5rem;
    padding-top: 0.1rem;
}
.contact-pill-value { font-size: 0.88rem; font-weight: 300; color: rgba(245,240,232,0.75); }
.contact-pill-value a { color: inherit; text-decoration: none; }
.contact-pill-value a:hover { color: var(--green-pale); }

.contact-form-col {
    background: #2a5337;
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-form-col .section-label { color: var(--green-pale); }
.contact-form-col .section-title { color: #f5f0e8; margin-bottom: 2.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.65;
}
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(168,200,160,0.28);
    padding: 0.85rem 1rem;
    color: #f5f0e8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245,240,232,0.2); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: rgba(168,200,160,0.5); }
.form-group textarea { resize: none; height: 110px; }
.form-group select option { background: var(--green-deep); color: #f5f0e8; }

.form-submit {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-deep);
    background: var(--cream);
    padding: 1.05rem 2.4rem;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.25s, opacity 0.25s;
    margin-top: 0.4rem;
}
.form-submit:hover { background: var(--green-pale); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }

#agrene-form-messages {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
    font-weight: 300;
    display: none;
}
#agrene-form-messages.success {
    display: block;
    background: rgba(168,200,160,0.15);
    border: 1px solid rgba(168,200,160,0.4);
    color: var(--green-pale);
}
#agrene-form-messages.error {
    display: block;
    background: rgba(200,100,100,0.1);
    border: 1px solid rgba(200,100,100,0.3);
    color: #e8a0a0;
}

/* ── FOOTER ─────────────────────────────── */
.site-footer {
    background: #1e2b22;
    padding: 2.5rem 6rem;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(245,240,232,0.75);
}
.footer-tagline {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.45);
    margin-top: 0.3rem;
}
.footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.55);
}
.footer-copy p { margin: 0; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-pale); }

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-band {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
    #navbar { padding: 1.2rem 3rem; }
    .hero-content { padding: 6rem 3rem 5rem; }
    #why { padding: 6rem 3rem; }
    .services-intro-block { padding: 5rem 3rem 3rem; }
    .about-text-col { padding: 5rem 3rem; }
    .research-header-block { padding: 5rem 3rem 4rem; }
    .contact-form-col { padding: 5rem 3rem; }
    .site-footer { padding: 2rem 3rem; }
}

@media (max-width: 960px) {
    #navbar { padding: 1.2rem 2rem; }
    .nav-links,
    #primary-menu { display: none; flex-direction: column; gap: 1rem; }
    .nav-links.open,
    #primary-menu.open {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--green-deep);
        padding: 6rem 3rem 3rem;
        z-index: 100;
        justify-content: center;
        align-items: center;
    }
    .nav-links.open a,
    #primary-menu.open a { color: #f5f0e8; font-size: 0.9rem; }
    .nav-mobile-toggle { display: flex; z-index: 300; position: relative; }
    .nav-cta { display: none; }

    #hero .hero-content { grid-template-columns: 1fr; padding: 7rem 2rem 4rem; }
    .hero-right { display: none; }

    #about { grid-template-columns: 1fr; }
    .about-image-col { min-height: 320px; }
    .about-text-col { padding: 4rem 2rem; }

    .services-intro-block { padding: 4rem 2rem 2rem; flex-direction: column; }
    .services-featured { grid-template-columns: 1fr; }
    .service-featured-img { min-height: 320px; }

    #mosaic { grid-template-columns: 1fr 1fr; }
    .mosaic-cell.tall { grid-row: span 1; }

    #why { padding: 5rem 2rem; }
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .why-img-large { height: 240px; }

    .research-header-block { padding: 5rem 2rem 3rem; grid-template-columns: 1fr; gap: 2rem; }
    .research-image-strip,
    .research-image-strip--3,
    .research-image-strip--4,
    .research-image-strip--5,
    .research-image-strip--6 { grid-template-columns: 1fr 1fr; }
    .research-areas-grid { grid-template-columns: 1fr; }

    #contact { grid-template-columns: 1fr; }
    .contact-image { min-height: 360px; }
    .contact-form-col { padding: 4rem 2rem; }
    .form-row { grid-template-columns: 1fr; }

    .site-footer { padding: 2rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    #mosaic { grid-template-columns: 1fr; }
    .research-image-strip,
    .research-image-strip--2,
    .research-image-strip--3,
    .research-image-strip--4,
    .research-image-strip--5,
    .research-image-strip--6 { grid-template-columns: 1fr; }
    .research-img-cell { height: 220px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ── ACCESSIBILITY ──────────────────────── */
:focus-visible {
    outline: 2px solid var(--green-pale);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    clip: rect(0,0,0,0);
    overflow: hidden;
    white-space: nowrap;
}

/* ── WP ADMIN BAR ───────────────────────── */
.admin-bar #navbar { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #navbar { top: 46px; }
}

/* Admin bar offset handled via .admin-bar #navbar rule above */

/* ── DESCRIPTIONS RICHES (listes, formatage) ─── */
.research-area-desc,
.service-card-desc,
.service-featured-desc,
.service-body p,
.service-body div {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    /* color: var(--text-light, #555);*/
	color: #000000;
}

/* Grande carte featured : fond sombre → texte clair */
.service-featured-desc,
.service-featured-desc p,
.service-featured-desc li,
.service-featured-desc ol,
.service-featured-desc ul {
    color: rgba(245, 240, 232, 0.75);
}

/* Listes à puces dans les descriptions */
.research-area-desc ul,
.research-area-desc ol,
.service-card-desc ul,
.service-card-desc ol,
.service-featured-desc ul,
.service-featured-desc ol,
.service-body ul,
.service-body ol,
.service-body div ul,
.service-body div ol {
    margin: 0.5rem 0 0.5rem 1.4rem;
    padding: 0;
    list-style-position: outside;
}
.service-featured-desc ol,
.service-body div ol { list-style-type: decimal; }
.service-featured-desc ul,
.service-body div ul { list-style-type: disc; }

.research-area-desc li,
.service-card-desc li,
.service-featured-desc li,
.service-body li {
    margin: 0.3rem 0;
    line-height: 1.7;
    display: list-item;
}

.research-area-desc strong,
.service-card-desc strong,
.service-featured-desc strong,
.service-body strong { font-weight: 600; }

.research-area-desc em,
.service-card-desc em,
.service-featured-desc em,
.service-body em { font-style: italic; }

/* Supprimer les marges des paragraphes wrapper vides */
.service-featured-desc > p:empty,
.service-card-desc > p:empty,
.service-body > div > p:empty { display: none; }

.research-area-desc > p:first-child,
.service-card-desc > p:first-child,
.service-featured-desc > p:first-child,
.service-body div > p:first-child { margin-top: 0; }

/* ══════════════════════════════════════════
   SECTEURS D'INTERVENTION
══════════════════════════════════════════ */

#sectors {
    background: var(--green-deep);
    /* overlay allégé via les cartes semi-transparentes */
}

/* En-tête */
.sectors-header-block {
    padding: 7rem 6rem 5rem;
    background: #4c735a;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: end;
}
.sectors-header-block .section-label { color: var(--green-pale); }
.sectors-header-block .section-title { color: var(--cream); }
.sectors-intro {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(245, 240, 232, 0.6);
}

/* Grille — toujours une seule rangée horizontale */
.sectors-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
    padding: 3px;
    background: rgba(168, 200, 160, 0.15);
}

/* Variantes (gardées pour compatibilité) */
.sectors-grid--1 { grid-auto-columns: 1fr; }
.sectors-grid--2 { grid-auto-columns: 1fr; }
.sectors-grid--3 { grid-auto-columns: 1fr; }
.sectors-grid--4 { grid-auto-columns: 1fr; }
.sectors-grid--5 { grid-auto-columns: 1fr; }
.sectors-grid--6 { grid-auto-columns: 1fr; }

/* Carte individuelle — compacte, centrée */
.sector-card {
    background: rgba(45, 90, 61, 0.55);
    padding: 1.6rem 1.4rem;
    transition: background 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sector-card:hover { background: rgba(58, 112, 80, 0.70); }

.sector-icon {
    display: block;
    width: 2.2rem;
    height: 2.2rem;
    margin: 0 auto 1rem;
    stroke: rgba(245,240,232,0.7);
}

.sector-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sector-desc {
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.55);
}

/* Listes et formatage dans les descriptions */
.sector-desc ul,
.sector-desc ol {
    margin: 0.4rem 0 0.4rem 1rem;
    padding: 0;
}
.sector-desc li {
    margin: 0.2rem 0;
    line-height: 1.6;
    display: list-item;
}
.sector-desc strong { font-weight: 600; color: rgba(245, 240, 232, 0.9); }
.sector-desc em { font-style: italic; }
.sector-desc > p:first-child { margin-top: 0; }

/* ── Responsive — 2 colonnes sur tablette, 1 sur mobile ── */
@media (max-width: 1024px) {
    .sectors-header-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 5rem 3rem 4rem;
    }
    .sectors-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-columns: unset;
    }
}

@media (max-width: 640px) {
    .sectors-header-block { padding: 4rem 1.5rem 3rem; }
    .sectors-grid {
        grid-template-columns: 1fr;
    }
    .sector-card { padding: 1.4rem 1.2rem; }
}
