/* ===================================
   CAMPING FRANCE ÉCOLOGIE - STYLES CSS
   =================================== */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* En-tête et navigation */
header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1001;
}

/* Menu burger - caché par défaut sur desktop */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(45, 80, 22, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a7c2c" width="1200" height="600"/><path fill="%23568c35" d="M0 400 Q300 350 600 400 T1200 400 V600 H0 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white !important;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: white;
}

/* Boutons CTA */
.cta-button {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-section {
    background: white;
}

.alt-section {
    background: #f0f4ed;
}

/* Titres */
h1 {
    color: #2d5016;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h2 {
    color: #2d5016;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

h3 {
    color: #4a7c2c;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

h4 {
    color: #4a7c2c;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}

/* Paragraphes */
p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Liens */
a {
    color: #4a7c2c;
    text-decoration: underline;
}

a:hover {
    color: #2d5016;
}

/* Listes */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Cards de fonctionnalités */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    margin-left: 0;
}

.feature-card li {
    padding-left: 0;
}

/* Labels */
.labels {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    justify-content: center;
}

.label {
    background: #4a7c2c;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
}

/* Pratiques écologiques */
.eco-practices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.practice-item {
    background: white;
    padding: 1.5rem;
    border-left: 4px solid #4a7c2c;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.practice-item h4 {
    margin-top: 0;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

table th {
    background: #4a7c2c;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

table td {
    padding: 1rem;
    border: 1px solid #ddd;
}

table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Footer */
footer {
    background: #2d5016;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #a8d08d;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    color: #a8d08d;
}

/* Formulaires */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #4a7c2c;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2d5016;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2d5016;
}

button[type="submit"] {
    background: #ff9800;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo {
        text-align: center;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
        padding: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .eco-practices {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .labels {
        flex-direction: column;
        align-items: center;
    }
    
    .label {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    nav {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 0.25rem;
    }
    
    nav ul li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.practice-item {
    animation: fadeIn 0.5s ease-in-out;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.p-4 { padding: 4rem; }

/* Styles pour améliorer l'accessibilité */
:focus {
    outline: 2px solid #4a7c2c;
    outline-offset: 2px;
}

/* Optimisation pour l'impression */
@media print {
    header,
    footer,
    .cta-button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Styles additionnels pour les boîtes d'information */
.info-box {
    background: #e8f5e9;
    border-left: 4px solid #4a7c2c;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.success-box {
    background: #f0f4ed;
    border-left: 4px solid #2d5016;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

/* Styles pour les citations */
blockquote {
    border-left: 4px solid #4a7c2c;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* Styles pour les images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.img-rounded {
    border-radius: 10px;
}

.img-shadow {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Grille responsive personnalisée */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Styles pour les badges et étiquettes */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-green {
    background: #4a7c2c;
    color: white;
}

.badge-orange {
    background: #ff9800;
    color: white;
}

.badge-light {
    background: #f0f4ed;
    color: #2d5016;
}

/* Styles pour les cartes avec images */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: #2d5016;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* Styles pour les listes personnalisées */
.custom-list {
    list-style: none;
    margin-left: 0;
}

.custom-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.custom-list li::before {
    content: "🌿";
    position: absolute;
    left: 0;
}

/* Styles pour les sections en colonnes */
.two-columns {
    column-count: 2;
    column-gap: 3rem;
}

@media (max-width: 768px) {
    .two-columns {
        column-count: 1;
    }
}

/* Styles pour le breadcrumb (fil d'Ariane) */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #4a7c2c;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
}

/* Styles pour les statistiques/chiffres clés */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f0f4ed;
    border-radius: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4a7c2c;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Styles pour les accordéons/FAQ */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #2d5016;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f0f4ed;
}

.accordion-content {
    padding: 1.5rem;
    background: white;
}

/* Styles pour les tags/mots-clés */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: #f0f4ed;
    color: #2d5016;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s;
}

.tag:hover {
    background: #4a7c2c;
    color: white;
}

/* Styles pour les icônes */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.icon-large {
    width: 48px;
    height: 48px;
}

/* Styles pour les sections avec fond dégradé */
.gradient-section {
    background: linear-gradient(135deg, #f0f4ed 0%, #e8f5e9 100%);
    padding: 4rem 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

/* Styles pour les call-to-action secondaires */
.cta-secondary {
    display: inline-block;
    background: transparent;
    color: #4a7c2c;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid #4a7c2c;
    transition: all 0.3s;
}

.cta-secondary:hover {
    background: #4a7c2c;
    color: white;
    transform: translateY(-3px);
}

/* Styles pour les dividers */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #4a7c2c, transparent);
    margin: 3rem 0;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #4a7c2c;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #2d5016;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Styles pour les alertes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Styles pour les progressbar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f4ed;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a7c2c, #2d5016);
    transition: width 1s ease;
}

/* Styles pour les timeframes saisonniers */
.season-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0 0.25rem;
}

.season-spring {
    background: #c8e6c9;
    color: #2e7d32;
}

.season-summer {
    background: #fff9c4;
    color: #f57f17;
}

.season-autumn {
    background: #ffccbc;
    color: #d84315;
}

.season-winter {
    background: #b3e5fc;
    color: #01579b;
}

/* Styles pour les notation/rating */
.rating {
    display: inline-flex;
    gap: 0.25rem;
}

.rating-star {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-star.empty {
    color: #ddd;
}

/* Styles pour le loader/spinner */
.loader {
    border: 4px solid #f0f4ed;
    border-top: 4px solid #4a7c2c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour le mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    /* Pour une future implémentation du mode sombre */
    /* body {
        background: #1a1a1a;
        color: #e0e0e0;
    } */
}

/* Amélioration de la lisibilité */
strong, b {
    font-weight: 600;
    color: #2d5016;
}

em, i {
    font-style: italic;
    color: #555;
}

/* Styles pour les conteneurs de contenu */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Fin du fichier CSS */