/* ============================================================
   EMPREINTES SOLIDAIRES
   ============================================================ */

:root {
    --orange:       #E85510;
    --orange-light: #F4A261;
    --orange-pale:  #FDE8D8;
    --navy:         #4A2214;
    --navy-dark:    #3D1C0E;
    --cream:        #FBF7F2;
    --white:        #FFFFFF;
    --text:         #2C2C2C;
    --text-light:   #666;
    --radius:       10px;
    --shadow:       0 3px 16px rgba(0,0,0,0.09);
    --shadow-lg:    0 8px 36px rgba(0,0,0,0.14);
    --transition:   0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5 { font-family: 'Nunito', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Boutons */
.btn-primary {
    display: inline-block;
    background: var(--orange); color: var(--white);
    padding: 13px 34px; border-radius: 50px;
    font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem;
    border: 2px solid var(--orange);
    transition: var(--transition); cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--orange); }
.btn-secondary {
    display: inline-block;
    background: transparent; color: var(--white);
    padding: 13px 34px; border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.7);
    font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem;
    transition: var(--transition); cursor: pointer;
}
.btn-secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

section { padding: 86px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.82); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block;
    background: var(--orange-pale); color: var(--orange);
    font-family: 'Nunito', sans-serif; font-weight: 700;
    font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
    padding: 5px 16px; border-radius: 50px; margin-bottom: 14px;
}
.section-dark .section-tag { background: rgba(232,85,16,0.18); color: var(--orange-light); }
.section-header.light h2 { color: var(--white); }
.section-line {
    width: 52px; height: 3px;
    background: var(--orange); border-radius: 2px;
    margin: 18px auto 0;
}

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(61,28,14,0.96);
    backdrop-filter: blur(10px);
    transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,0.28); }

.nav-container {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
}
.nav-logo-img {
    height: 42px; width: auto; object-fit: contain;
}
.nav-logo-text {
    font-family: 'Raleway', sans-serif; font-size: 1.1rem; font-weight: 900;
    letter-spacing: 0.5px;
}
.logo-main { color: var(--white); }
.logo-accent { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 0.85rem;
    color: rgba(255,255,255,0.8); transition: color var(--transition);
}
.nav-links a:hover { color: var(--orange-light); }
.nav-cta {
    background: var(--orange) !important; color: var(--white) !important;
    padding: 9px 20px; border-radius: 50px;
}
.nav-cta:hover { background: #c9470d !important; color: var(--white) !important; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

.lang-toggle {
    background: none;
    border: 1.5px solid rgba(255,255,255,0.45);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 50px;
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--orange-light);
    color: var(--orange-light);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative; height: 100vh; min-height: 580px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center top;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.58) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding: 0 20px; }
.hero-tagline {
    font-family: 'Nunito', sans-serif; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 3px; color: var(--orange-light); margin-bottom: 18px;
}
.hero-content h1 { color: var(--white); margin-bottom: 14px; }
.hero-content h1 span { color: var(--orange-light); }
.hero-subtitle {
    font-family: 'Nunito', sans-serif; font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400; color: rgba(255,255,255,0.88); margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: var(--white); font-size: 1.4rem; animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   PRÉSENTATION
   ============================================================ */
#presentation { background: var(--cream); }

.presentation-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 60px; align-items: center; margin-bottom: 80px;
}
.presentation-text h3 { color: var(--navy); margin-bottom: 20px; }
.presentation-text p { color: var(--text-light); margin-bottom: 16px; }

.stats-row { display: flex; gap: 36px; margin-top: 34px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number {
    display: block; font-family: 'Nunito', sans-serif;
    font-size: 2.6rem; font-weight: 900; color: var(--orange); line-height: 1;
}
.stat-label { font-size: 0.78rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; }

.presentation-image { position: relative; }
.presentation-image img {
    width: 100%; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); object-fit: cover; height: 400px;
}
.image-badge {
    position: absolute; bottom: -18px; left: -18px;
    background: var(--orange); color: var(--white);
    padding: 16px 22px; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow);
}
.image-badge span { display: block; font-family: 'Nunito', sans-serif; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.image-badge small { font-size: 0.75rem; font-weight: 600; }

/* Pourquoi */
.why-section { padding-top: 50px; }
.why-section > h3 { color: var(--navy); text-align: center; margin-bottom: 36px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 20px; }
.why-card {
    background: var(--white); border-radius: var(--radius);
    padding: 26px 22px; text-align: center;
    box-shadow: var(--shadow); border-top: 3px solid var(--orange);
    transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-number {
    display: block; font-family: 'Nunito', sans-serif;
    font-size: 1.8rem; font-weight: 900; color: var(--orange-pale); margin-bottom: 6px;
}
.why-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 0.98rem; }
.why-card p { color: var(--text-light); font-size: 0.87rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-highlight {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 52px; align-items: center; margin-bottom: 70px;
}
.service-badge {
    display: inline-block; background: var(--orange); color: var(--white);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; padding: 4px 13px; border-radius: 50px; margin-bottom: 14px;
}
.service-highlight-text h3 { color: var(--white); margin-bottom: 14px; }
.check-list { margin-top: 18px; }
.check-list li {
    padding: 7px 0 7px 24px; position: relative;
    color: rgba(255,255,255,0.82); font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.check-list li::before { content: '—'; position: absolute; left: 0; color: var(--orange-light); }
.service-highlight-image img {
    width: 100%; border-radius: var(--radius); object-fit: cover; height: 370px;
    box-shadow: var(--shadow-lg);
}

/* Structure juridique */
.juridique-section { margin-bottom: 66px; }
.juridique-section > h3 { color: var(--white); text-align: center; margin-bottom: 32px; }
.juridique-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.jur-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 26px 20px; text-align: center;
    transition: background var(--transition);
}
.jur-card:hover { background: rgba(255,255,255,0.11); }
.jur-num {
    display: block; font-family: 'Nunito', sans-serif;
    font-size: 1.8rem; font-weight: 900; color: var(--orange); margin-bottom: 8px;
}
.jur-card h4 { color: var(--white); margin-bottom: 7px; font-size: 0.95rem; }
.jur-card p { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* Domaines */
.domains-title { color: var(--white); text-align: center; margin-bottom: 30px; }
.domains-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 20px; margin-bottom: 56px; }
.domain-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 30px 24px;
    border-left: 4px solid transparent;
    transition: background var(--transition), transform var(--transition);
}
.domain-card:hover { background: rgba(255,255,255,0.11); transform: translateY(-3px); }
.domain-card.edu  { border-left-color: #E85510; }
.domain-card.sante { border-left-color: #F4A261; }
.domain-card.eau  { border-left-color: #6EC6D8; }
.domain-card.agri { border-left-color: #8BC34A; }
.domain-card h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.domain-card li { color: rgba(255,255,255,0.72); font-size: 0.88rem; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.domain-card li:last-child { border-bottom: none; }

/* Impact */
.impact-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 66px; }
.impact-card {
    padding: 32px 26px; border-radius: var(--radius);
    background: rgba(255,255,255,0.06); border-top: 3px solid var(--orange);
}
.impact-card h4 { color: var(--white); margin-bottom: 10px; }
.impact-card p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

/* Étapes */
.steps-section > h3 { color: var(--white); text-align: center; margin-bottom: 30px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 16px; }
.step-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 26px 18px; text-align: center;
    transition: background var(--transition);
}
.step-card:hover { background: rgba(255,255,255,0.12); }
.step-num {
    display: block; font-family: 'Nunito', sans-serif;
    font-size: 2.8rem; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 8px;
}
.step-card h4 { color: var(--white); margin-bottom: 6px; font-size: 0.95rem; }
.step-card p { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* ============================================================
   COMPÉTENCES
   ============================================================ */
#competences { background: var(--white); }

.competences-intro {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: 60px; align-items: center; margin-bottom: 72px;
}
.competences-image img {
    width: 100%; border-radius: var(--radius); object-fit: cover; height: 430px;
    box-shadow: var(--shadow-lg);
}
.competences-text h3 { color: var(--navy); margin-bottom: 16px; }
.competences-text > p { color: var(--text-light); margin-bottom: 26px; line-height: 1.8; }

.formations { display: flex; flex-direction: column; gap: 14px; }
.formation-item {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--cream); padding: 16px 18px; border-radius: var(--radius);
}
.formation-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--orange); flex-shrink: 0; margin-top: 6px;
}
.formation-item strong { color: var(--navy); display: block; margin-bottom: 3px; font-size: 0.95rem; }
.formation-item p { color: var(--text-light); font-size: 0.85rem; margin: 0; }

/* Zones */
.geo-section { margin-bottom: 66px; }
.geo-section > h3 { color: var(--navy); text-align: center; margin-bottom: 30px; }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.geo-card {
    background: var(--navy); border-radius: var(--radius);
    padding: 30px 26px; text-align: center;
}
.geo-card h4 { color: var(--orange-light); font-size: 1.05rem; margin-bottom: 12px; }
.geo-card p { color: rgba(255,255,255,0.75); line-height: 2; font-size: 0.9rem; }

/* Collaborations */
.collab-section { margin-bottom: 66px; }
.collab-section > h3 { color: var(--navy); text-align: center; margin-bottom: 30px; }
.collab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.collab-card {
    background: var(--cream); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.collab-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.collab-photo { height: 210px; overflow: hidden; }
.collab-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.collab-card:hover .collab-photo img { transform: scale(1.05); }
.collab-info { padding: 20px 22px; }
.collab-sport {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    background: var(--orange-pale); color: var(--orange);
    padding: 3px 10px; border-radius: 50px; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 1px;
}
.collab-info h4 { color: var(--navy); margin-bottom: 6px; }
.collab-info p { color: var(--text-light); font-size: 0.87rem; }

/* Partenaires */
.partners-section { margin-bottom: 66px; text-align: center; }
.partners-section > h3 { color: var(--navy); margin-bottom: 28px; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner-item {
    background: var(--cream); border-radius: 8px;
    padding: 14px 24px;
    font-family: 'Nunito', sans-serif; font-weight: 700;
    color: var(--navy); font-size: 0.88rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), background var(--transition);
}
.partner-item:hover { transform: translateY(-3px); background: var(--orange-pale); }

/* Réalisations */
.realisations-section { text-align: center; }
.realisations-section > h3 { color: var(--navy); margin-bottom: 28px; }
.realisations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.realisation-card {
    background: var(--cream); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: left;
}
.realisation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.realisation-logo {
    height: 110px; background: var(--white);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 2px solid var(--orange-pale);
    padding: 16px;
}
.realisation-logo img {
    max-height: 78px; max-width: 100%; object-fit: contain;
}
.logo-placeholder {
    display: none;
    align-items: center; justify-content: center;
    font-family: 'Raleway', sans-serif; font-weight: 900;
    font-size: 1rem; color: var(--navy); text-align: center;
    line-height: 1.3; width: 100%;
}

.realisation-text {
    padding: 18px 22px;
}
.realisation-text strong { color: var(--navy); display: block; margin-bottom: 6px; font-size: 0.97rem; }
.realisation-text p { color: var(--text-light); font-size: 0.87rem; margin: 0; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 195px; gap: 10px;
}
.gallery-item { overflow: hidden; border-radius: 7px; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease; display: block;
}
.gallery-item:hover img { transform: scale(1.07); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--cream); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-grid-single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; text-align: center; }
.contact-grid-single .contact-items { text-align: left; }
.contact-info h3 { color: var(--navy); margin-bottom: 14px; }
.contact-info > p { color: var(--text-light); margin-bottom: 34px; line-height: 1.8; }

.contact-items { display: flex; flex-direction: column; gap: 0; }
.contact-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.contact-item:first-child { border-top: 1px solid rgba(0,0,0,0.07); }
.contact-item-label {
    font-family: 'Nunito', sans-serif; font-weight: 700;
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--orange); margin-bottom: 4px;
}
.contact-item a, .contact-item span {
    color: var(--navy); font-weight: 600; font-size: 0.95rem;
}
.contact-item a:hover { color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--navy-dark); color: rgba(255,255,255,0.7);
    padding: 56px 0 0;
}
.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 44px; padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Raleway', sans-serif; font-size: 1.2rem; font-weight: 900;
    letter-spacing: 0.5px; margin-bottom: 10px;
}
.footer-logo-img { height: 36px; width: auto; }
.footer-subtitle { font-size: 0.87rem; margin-bottom: 4px; color: rgba(255,255,255,0.55); }
.footer-tagline { font-size: 0.72rem; letter-spacing: 2px; color: var(--orange-light); font-weight: 600; }

.footer-nav h5, .footer-contact-info h5 {
    font-family: 'Nunito', sans-serif; color: var(--white);
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}
.footer-nav ul li { padding: 4px 0; }
.footer-nav a { color: rgba(255,255,255,0.62); font-size: 0.87rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--orange-light); }
.footer-contact-info p { font-size: 0.87rem; margin-bottom: 5px; }

.footer-bottom {
    text-align: center; padding: 18px 0;
    font-size: 0.78rem; color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .presentation-grid,
    .competences-intro { grid-template-columns: 1fr; gap: 36px; }
    .service-highlight { grid-template-columns: 1fr; gap: 36px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--navy-dark); padding: 18px 24px 22px;
        gap: 16px; z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
    .stats-row { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 125px; }
    .image-badge { left: 0; }
}
