:root {
    --primary-color: #8BC34A;
    --primary-dark: #689F38;
    --primary-light: #DCEDC8;
    --text-color: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    margin: 0;
    padding: 0;
    color: #333;
}

main.container {
    background: #fff;
    margin: 80px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

main.container h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 25px;
    color: #ff5722;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.logo-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

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

nav {
    margin-left: auto;
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    height: 3px;
    width: 25px;
    background: #333;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
    }

    nav ul {
        position: absolute;
        right: 15px;
        top: 60px;
        background: #fff;
        flex-direction: column;
        width: 200px;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.nav-active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('images/hero-background.jpg') center/cover;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 10px;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
    background-image: url('images/pattern-light.png');
    background-repeat: repeat;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    font-weight: 700;
}

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

.feature-card {
    background-color: var(--primary-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* App Demo Section */
.app-demo {
    padding: 80px 0;
    background-color: var(--primary-light);
    background-image: url('images/map-pattern.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 30%;
}

.app-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.app-text {
    flex: 1;
    min-width: 300px;
}

.app-text h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.app-steps {
    margin-top: 30px;
}

.app-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    background-color: var(--primary-dark);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.app-images {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.app-screenshot {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 10px solid var(--white);
}

/* Target Audience Section */

.target-audience .section-title {
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.audience-card {
    text-align: center;
    padding: 20px;
    background-color: var(--primary-light);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.audience-icon {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.audience-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)), url('images/cta-background.jpg') center/cover;
    background-blend-mode: multiply;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-white {
    background-color: var(--white);
    color: var(--primary-dark);
}

.cta-white:hover {
    background-color: var(--primary-light);
}

footer {
    background: #222;
    color: #f0f0f0;
    padding: 60px 20px 30px;
    font-size: 15px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #ff9800;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-column p {
    line-height: 1.6;
    color: #ddd;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 8px 0;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ff9800;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/** Cartes **/
/* --- CONTENEUR PRINCIPAL --- */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background: none;
    box-shadow: none;
}

/* --- COLONNES --- */
.section-toggle {
    flex: 1 1 600px;
    background: #ff9800; /* orange background */
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.section-toggle .toggle-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
}

/* --- TITRES SECTIONS --- */
.toggle-header {
    background: linear-gradient(135deg, #ff7043, #ff9800);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
}

.toggle-header .toggle-arrow {
    font-size: 1.3rem;
    transform: rotate(180deg);
    transition: transform 0.3s;
}

.section-toggle.active .toggle-arrow {
    transform: rotate(0);
}

/* --- FORMULAIRE --- */
.toggle-content form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin: 10px;
    color: #444;
}

input[type="text"],
select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #ff7043;
}

/* --- LIEU AVEC ICÔNE --- */
.input-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-icon button {
    background: #ff7043;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 10px;
    font-size: 18px;
    transition: background 0.3s;
}

.input-with-icon button:hover {
    background: #e64a19;
}

/* --- COMPTEURS PUBLIC --- */
.counter-group {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
}

.counter {
    background: #fdf2ec;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    box-shadow: inset 0 0 4px rgba(255, 87, 34, 0.1);
}

.counter span {
    font-size: 0.95rem;
    font-weight: 500;
}

.counter input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    padding: 4px;
}

.counter button {
    background: #ff5722;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    width: 28px;
    height: 28px;
    line-height: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.counter button:hover {
    background: #e64a19;
}

/* --- BOUTON PRINCIPAL --- */
button[type="submit"] {
    background: #ff5722;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    grid-column: 1 / -1;
}

button[type="submit"]:hover {
    background: #e64a19;
    transform: scale(1.02);
}

/* --- SECTION CARTE --- */
#carte-section .toggle-content {
    padding: 25px;
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    margin-top: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
}


@media (max-width: 768px) {
    footer {
        text-align: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-wrap: wrap;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .app-text h2 {
        font-size: 1.8rem;
    }

    .logo {
        height: 45px;
    }

    .app-demo .app-container {
        flex-direction: column;
    }
}

/* --- CUSTOM 2-COLUMN FORM LAYOUT FOR BALADE FORM --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* --- MAP BELOW FORM --- */
.map-section {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.map-section #map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    border: 1px solid #ddd;
}


/* --- HEADER & NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
}

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

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

nav {
    margin-left: auto;
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    height: 3px;
    width: 25px;
    background: #333;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        right: 0;
        top: 70px;
        background: #fff;
        flex-direction: column;
        width: 200px;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    nav ul.nav-active {
        display: flex;
    }
    .burger {
        display: flex;
    }
}