/* ============================
   RAÏS - Style Principal
   Réseau d'Accompagnement des
   Investisseurs vers le SUD
   ============================ */

:root {
    --primary: #0e7c47;
    --primary-dark: #065f33;
    --primary-light: #10a85e;
    --accent: #d4a017;
    --accent-light: #f0c040;
    --secondary: #1a2744;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-warm: #f5faf7;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #0e7c47 0%, #10a85e 100%);
    --gradient-accent: linear-gradient(135deg, #d4a017 0%, #f0c040 100%);
    --gradient-dark: linear-gradient(135deg, #1a2744 0%, #0f172a 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ============================
   Navigation
   ============================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-rais {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================
   Hero Section
   ============================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 70%, rgba(14, 124, 71, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(212, 160, 23, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    bottom: -200px;
    left: -100px;
    animation: float-shape 6s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: -100px;
    right: -50px;
    animation: float-shape 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 40%;
    right: 20%;
    animation: float-shape 10s ease-in-out infinite;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-flags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
}

.flag {
    font-size: 2.5rem;
}

.flag-bridge {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(14, 124, 71, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(14, 124, 71, 0.35);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.25);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: rgba(14, 124, 71, 0.08);
}

.btn-outline-dark {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 1s ease 1s both;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: scroll-down 1.5s ease infinite;
}

@keyframes scroll-down {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ============================
   Sections Generales
   ============================ */

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--dark);
}

.section-desc {
    max-width: 650px;
    margin: 16px auto 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================
   Vision Section
   ============================ */

.vision {
    background: var(--bg-warm);
}

.vision-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.vision-lead {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.9;
    margin-bottom: 28px;
}

.vision-missions {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.vision-missions-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.mission-list {
    list-style: none;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text);
}

.mission-list li:last-child {
    margin-bottom: 0;
}

.mission-list li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.vision-values {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.vision-values h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-values h3 i {
    color: var(--primary);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.value-item:last-child {
    border-bottom: none;
}

.value-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 124, 71, 0.08);
    border-radius: 10px;
    flex-shrink: 0;
}

.value-item span {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

/* ============================
   Actions Section
   ============================ */

.actions {
    background: var(--white);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.action-card {
    background: var(--bg-light);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(14, 124, 71, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0 auto 16px;
}

.action-card h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.action-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================
   Poles Section
   ============================ */

.poles {
    background: var(--gradient-dark);
    color: var(--white);
}

.poles .section-tag {
    color: var(--primary-light);
}

.poles .section-header h2 {
    color: var(--white);
}

.poles .section-desc {
    color: rgba(255,255,255,0.6);
}

.poles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.pole-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 28px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.pole-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.pole-flag {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.pole-card h4 {
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.pole-card p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

/* ============================
   Publics Section
   ============================ */

.publics {
    background: var(--bg-light);
}

.publics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.public-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.public-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(14, 124, 71, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 16px;
}

.public-card h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.public-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================
   Info Banner
   ============================ */

.info-banner {
    background: var(--bg-warm);
    padding: 60px 0;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 2px dashed var(--primary);
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.info-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================
   Contact Section
   ============================ */

.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(14, 124, 71, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 28px;
}

.contact-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(14, 124, 71, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-socials a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.cta-box {
    background: var(--bg-warm);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cta-box h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506-.001z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 124, 71, 0.08);
}

.form-group textarea {
    resize: vertical;
}

/* ============================
   Footer
   ============================ */

.footer {
    background: var(--dark);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo p {
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
}

/* ============================
   Language Switcher
   ============================ */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 24px;
}

.lang-sep {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--white);
    border-color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================
   Positionnement Section
   ============================ */

.positionnement {
    background: var(--dark);
}

.pos-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.pos-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.9;
}

.pos-text--centered {
    font-size: 1.25rem;
    font-weight: 400;
}

/* ============================
   Pole card coordination highlight
   ============================ */

.pole-card--coord {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb, 16, 185, 129), 0.1);
    position: relative;
}

.pole-card--coord::after {
    content: 'Siège';
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.poles-note {
    text-align: center;
    margin-top: 32px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-style: italic;
}

@media (max-width: 900px) {
    .lang-switcher {
        margin-left: 12px;
    }
}



@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .vision-content {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

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

    .publics-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .info-content {
        flex-direction: column;
        text-align: center;
    }
}
