/* Variables de couleurs - Charte A6TECH'IMMO */
:root {
    --primary-blue: #0E1D3E; /* Bleu marine foncé du logo */
    --accent-green: #2B6B2F; /* Vert du logo */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* HEADER & NAVIGATION */
header {
    background-color: var(--white);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-green);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
    line-height: 1;
}

.logo span {
    color: var(--accent-green);
}

.logo-sub {
    font-size: 13px;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 5px;
}

/* Logo image sizing */
.logo-img, .footer-logo {
    max-height: 64px;
    width: auto;
    display: block;
}

/* Smooth scrolling for anchor navigation */
html {
    scroll-behavior: smooth;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-green);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a3673 100%);
    color: var(--white);
    padding: 120px 50px;
    text-align: center;
}

.hero h1 {
    font-size: 46px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #d1d9e6;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0 10px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--white);
    border: 2px solid var(--accent-green);
}

.btn-primary:hover {
    background-color: #1e4e21;
    border-color: #1e4e21;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* SECTIONS COMMUNES */
section {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-green);
    margin: 15px auto 0;
}

/* A PROPOS & BENEFICES */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
}

.about-card h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 24px;
}

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

.benefits-list li {
    margin-bottom: 18px;
    padding-left: 35px;
    position: relative;
    font-weight: 500;
    font-size: 16px;
}

.benefits-list li::before {
    content: '✔';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
}

/* MISSIONS */
.missions {
    background-color: var(--white);
    max-width: 100%;
}

.missions-container {
    max-width: 1200px;
    margin: 0 auto;
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.mission-item {
    background: var(--bg-light);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eaeaea;
}

.mission-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(14, 29, 62, 0.1);
    border-bottom: 4px solid var(--accent-green);
}

.mission-item h4 {
    color: var(--primary-blue);
    font-size: 19px;
    margin-bottom: 15px;
}

/* FOUNDER SECTION */
.founder-section {
    background-color: var(--bg-light);
    padding: 80px 50px;
}

.founder-grid-top {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.founder-edito {
    padding-right: 30px;
}

.edito-title {
    font-size: 36px;
    color: var(--primary-blue);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-decoration: underline;
    text-decoration-color: var(--accent-green);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.founder-edito p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.founder-image {
    display: flex;
    justify-content: center;
}

.founder-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.founder-text-full {
    max-width: 1200px;
    margin: 0 auto;
}

.founder-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.founder-column-right {
    padding-left: 30px;
    border-left: 3px solid var(--accent-green);
}

.founder-column h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 12px;
    font-weight: 600;
}

.founder-column p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.founder-text-bottom {
    margin-top: 40px;
    text-align: center;
}

.founder-text-bottom p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.founder-text-bottom a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.founder-text-bottom a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.founder-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 18px;
}

.founder-list li {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 16px;
}

/* CONTACT & EXPERT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.expert-card {
    background: var(--primary-blue);
    color: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.expert-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.expert-card h3 {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--white);
}

.expert-card .role {
    color: var(--accent-green);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent-green);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    background-color: var(--bg-light);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.form-status {
    margin-bottom: 16px;
    font-size: 15px;
    min-height: 22px;
}

/* FOOTER */
footer {
    background-color: #081124; /* Bleu très foncé */
    color: var(--white);
    text-align: center;
    padding: 40px 50px 20px;
}

footer .logo {
    color: white;
    margin-bottom: 15px;
    font-size: 30px;
}

footer p {
    margin-bottom: 10px;
    color: #9ba4b5;
}

footer a {
    color: var(--accent-green);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .founder-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .founder-column-right {
        border-left: none;
        padding-left: 0;
    }

    .founder-section {
        padding: 50px 20px;
    }

    .edito-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .founder-edito p,
    .founder-column p,
    .founder-text-bottom p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .founder-photo {
        max-width: 280px;
    }
    /* Mobile nav: hide by default, shown when .open is added */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        margin-left: 10px;
    }

    .nav-toggle .hamburger,
    .nav-toggle .hamburger::before,
    .nav-toggle .hamburger::after {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--primary-blue);
        position: relative;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-toggle .hamburger::before,
    .nav-toggle .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .nav-toggle .hamburger::before { top: -8px; }
    .nav-toggle .hamburger::after { top: 8px; }

    header {
        padding: 12px 20px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid #e6e6e6;
        z-index: 999;
    }

    nav.open {
        display: block;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 20px;
    }

    nav ul li { padding: 12px 0; }

    .logo-container { display: flex; align-items: center; gap: 12px; }

    /* Stack hero buttons on mobile and add spacing */
    .hero > div {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin-top: 10px;
    }

    .hero .btn {
        width: 100%;
        max-width: 340px;
        box-sizing: border-box;
    }
    .hero h1 {
        font-size: 32px;
    }
    header, section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .founder-columns {
        grid-template-columns: 1fr;
    }
}

/* Tablet-specific adjustments (only between 769px and 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding: 80px 40px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
        max-width: 700px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .about-card, .contact-form, .mission-item {
        padding: 30px;
    }

    .logo-img, .footer-logo {
        max-height: 56px;
    }

    .missions-grid {
        gap: 24px;
    }

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

    .founder-grid-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .founder-photo {
        max-width: 280px;
    }

    .edito-title {
        font-size: 30px;
    }

    footer {
        padding: 30px 40px;
    }
}

/* Extra small phones tweaks */
@media (max-width: 480px) {
    .hero {
        padding: 50px 18px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .founder-section {
        padding: 40px 16px;
    }

    .founder-grid-top {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .edito-title {
        font-size: 24px;
    }

    .founder-edito p {
        font-size: 14px;
    }

    .founder-text-full h3 {
        font-size: 16px;
        margin-top: 18px;
    }

    .founder-text-full p {
        font-size: 14px;
    }

    .founder-photo {
        max-width: 200px;
    }

    .logo-img, .footer-logo {
        max-height: 44px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .expert-card {
        padding: 30px 20px;
    }

    footer p { font-size: 13px; }
}
