/* 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: #f9f9f9;
}

/* Header et Navigation */
header {
    background: linear-gradient(135deg, #2c5f7c 0%, #1a4d6b 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    position: relative;
    z-index: 10;
}

.logo-icon {
    font-size: 2.8rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    line-height: 1;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex-grow: 1;
}

.logo .site-name {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
    padding: 0;
    line-height: 1.1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-subtitle {
    color: #ffd700 !important;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block !important;
    opacity: 0.95 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 20px 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: rgba(255,255,255,0.2);
    color: #ffd700;
}

/* Bouton hamburger (caché sur desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3b7a9e 0%, #2c5f7c 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

section {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Typographie */
h2 {
    color: #2c5f7c;
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3b7a9e;
}

h3 {
    color: #3b7a9e;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

strong {
    color: #2c5f7c;
    font-weight: 600;
}

a {
    color: #3b7a9e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a4d6b;
    text-decoration: underline;
}

/* Listes */
ul {
    margin: 20px 0;
    padding-left: 40px;
}

ul li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Pages Grid */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-card {
    background: #f5f9fc;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3b7a9e;
    transition: all 0.3s ease;
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left-color: #1a4d6b;
}

.page-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.page-card h3 a {
    color: #2c5f7c;
}

.page-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #555;
    text-align: left;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a4d6b 0%, #0d3551 100%);
    color: #fff;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    text-align: left;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ffd700;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffffff;
    text-decoration: none;
    padding-left: 5px;
}

/* Liens dans le texte du footer également en jaune */
.footer-section p a,
.footer-section a {
    color: #ffd700 !important;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.footer-section p a:hover,
.footer-section a:hover {
    color: #ffffff !important;
    opacity: 1;
}

/* Cacher la colonne mots-clés du footer */
.footer-section:last-child {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Sections spécifiques */
.intro {
    background: linear-gradient(to right, #f5f9fc, #fff);
}

.camping-grid,
.campings-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.camping-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-top: 3px solid #3b7a9e;
}

.camping-card h4 {
    color: #2c5f7c;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 10px 20px;
    }
    
    .logo {
        flex: 1;
    }
    
    /* Afficher le bouton hamburger sur mobile */
    .menu-toggle {
        display: flex;
    }
    
    /* Menu mobile caché par défaut */
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c5f7c 0%, #1a4d6b 100%);
        flex-direction: column;
        width: 100%;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    /* Menu mobile ouvert */
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        text-align: left;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 25px 20px;
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .logo .site-name {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    .pages-grid {
        grid-template-columns: 1fr;
    }
    
    p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 15px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 0 10px 40px;
    }
    
    section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
}

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

section {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    header, footer, .nav-menu {
        display: none;
    }
    
    section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Accessibilité */
a:focus,
button:focus {
    outline: 2px solid #3b7a9e;
    outline-offset: 2px;
}

/* Styles pour les citations et encarts */
blockquote {
    background: #f5f9fc;
    border-left: 4px solid #3b7a9e;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
}

/* Tables si nécessaire */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

table th {
    background: #2c5f7c;
    color: #fff;
    padding: 12px;
    text-align: left;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #f5f9fc;
}

/* Boutons si nécessaire */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3b7a9e;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background: #2c5f7c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Classes utilitaires */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.highlight {
    background: #fff9e6;
    padding: 2px 6px;
    border-radius: 3px;
}