/* ==========================================================================
   1. VARIABLES & ARCHITECTURE GLOBALE
   ========================================================================== */
:root {
    --primary-blue: #0089a7;
    --dark-blue: #001a2c;
    --text-white: #ffffff;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Structure en Flexbox pour bloquer le footer en bas */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto; 
    width: 100%;    
    box-sizing: border-box;
}

/* ==========================================================================
   2. BARRE DE NAVIGATION (HEADER)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.navbar .logo img {
    max-width: 120px;
    height: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
    color: var(--text-white);
    font-size: 0.85rem;
}

/* Liste des liens de navigation */
.nav-links {
    display: flex;        
    list-style: none;     
    gap: 20px;            
    margin: 0;
    padding: 0;
}

/* Style de base des liens du menu */
.nav-links a {
    color: var(--text-white);   
    text-decoration: none;      
    font-weight: 700;           
    font-size: 0.9rem;          
    letter-spacing: 1px;        
    padding: 8px 16px;          
    border-radius: 4px;         
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--primary-blue);      
    background-color: rgba(255, 255, 255, 0.1); 
}

.nav-links a.active {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue); 
    border-radius: 0; 
}

/* ==========================================================================
   3. DESIGN STRUCTUREL DES BOUTONS & ANIMATIONS
   ========================================================================== */
/* Style partagé par TOUS les boutons du site */
.btn-primary, .btn-secondary, .btn-reserve, .btn-outline, .btn-large {
    display: inline-block;     
    padding: 12px 28px;        
    font-size: 0.95rem;
    font-weight: 700;          
    text-transform: uppercase; 
    text-decoration: none;     
    border-radius: 50px;       
    border: 2px solid transparent; 
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

/* 1. Bouton Principal & Bouton Réserver */
.btn-primary, .btn-reserve {
    background-color: var(--primary-blue); 
    color: var(--text-white);              
    box-shadow: 0 4px 10px rgba(0, 137, 167, 0.2); 
}

.btn-primary:hover, .btn-reserve:hover {
    background-color: #00a8cc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 137, 167, 0.4);
}

/* Format compact adapté pour le bouton dans la Navbar */
.navbar .btn-reserve {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* 2. Bouton Secondaire (Hero) */
.btn-secondary {
    background-color: transparent;         
    color: var(--text-white);              
    border-color: var(--text-white);       
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--dark-blue);
    transform: scale(1.05);
}

/* 3. Bouton Outline (Pour les grilles de cartes) */
.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

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

/* 4. Gros Bouton d'Action (Page de Réservation) */
.btn-large {
    padding: 18px 35px;
    font-size: 1rem;
    background-color: #ff9f43;             
    color: var(--text-white);
    box-shadow: 0 6px 15px rgba(255, 159, 67, 0.3);
}

.center-button {
    text-align: center;
    margin-top: 10px;
}

/* ==========================================================================
   4. SECTION HERO & ÉLÉMENTS GRAPHIQUES
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh; 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/martinique.jpg') no-repeat center center;
    background-size: cover; 
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 80px;
}

.hero-content {
    text-align: center;
    margin: auto 0;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 15px;
}

.highlight {
    color: #40e0d0;
}

.hero-btns {
    display: flex;
    gap: 20px;             
    margin-top: 30px;      
    justify-content: center; 
    flex-wrap: wrap;       
}

/* Vague décorative en bas de Hero */
.wave-divider {
    position: absolute;
    bottom: -1px; 
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* ==========================================================================
   5. DISPOSITION DU CONTENU & GRILLES (MAIN)
   ========================================================================== */
/* Section des points forts */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    padding: 60px 50px;
    background: var(--text-white);
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-item .icon {
    font-size: 2rem;
}

/* Grille de cartes */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0 50px 80px 50px;
    gap: 20px;
}

.card {
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.02);
}

.card-overlay {
    background: rgba(0, 26, 44, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

/* ==========================================================================
   6. INTERFACE DE LA PAGE DE RÉSERVATION
   ========================================================================== */
.reservation-main-flex {
    display: flex;
    justify-content: center; 
    align-items: center;     
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: var(--text-white); 
}

.guide-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 26, 44, 0.05);
    border: 1px solid #e2e8f0;
    max-width: 750px; 
    width: 100%;      
    box-sizing: border-box;
}

.guide-card h1 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    text-align: center;
    margin-top: 0;
}

.subtitle {
    text-align: center;
    color: #4a5568;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.steps-list {
    margin: 0 auto 40px auto; 
    max-width: 600px;
    width: fit-content; 
}

.step-item {
    display: flex;
    align-items: flex-start;  /* CORRIGÉ : Alignement parfait en haut si texte long */
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;     
}

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

.step-text h3 {
    margin: 0 0 5px 0;
    color: var(--dark-blue);
    font-size: 1.1rem;
}

.step-text p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   7. PIED DE PAGE (FOOTER)
   ========================================================================== */
.site-footer {
    flex-shrink: 0; 
    background-color: var(--dark-blue);
    color: var(--text-white);
    padding: 40px 50px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-container {
    display: flex;                 
    justify-content: space-between;
    flex-wrap: wrap;               
    gap: 30px;                     
    max-width: 1200px;
    margin: 0 auto;                
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4, .footer-social-map h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

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

.footer-links a {
    color: #a0aec0; 
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 4px 0;
}

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

.social-icons-footer {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.handwritten {
    font-family: 'Brush Script MT', cursive; 
    color: #40e0d0;
    font-size: 1.4rem;
    margin: 10px 0;
}

.map-container img {
    width: 100%;
    max-width: 200px;
    border-radius: 5px;
    border: 1px solid #2d3748;
}    

/* ==========================================================================
   8. MEDIA QUERIES - DESIGN de type RESPONSIVE  (MOBILE & TABLETTE)
   ========================================================================== */

/* Écrans intermédiaires (Tablettes & petits ordinateurs) */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .features, .cards-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Écrans mobiles (Smartphones < 768px) */
@media (max-width: 768px) {

    /* 1. Navigation & Header */
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 6px;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 0.85rem;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }

    .nav-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .navbar .btn-reserve {
        width: 100%;
        max-width: 280px;
    }

    /* 2. Banner / Hero */
    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 40px 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns a {
        width: 100%;
        max-width: 280px;
    }

    /* 3. Contenu principal & Marges globales */
    .main-content {
        padding: 30px 15px !important;
    }

    h1, h2 {
        word-break: break-word;
    }

    /* 4. Grilles de fonctionnalités & cartes */
    .features {
        grid-template-columns: 1fr;
        padding: 30px 15px;
        gap: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 15px 40px 15px;
    }

    /* 5. Pied de page (Footer) */
    .site-footer {
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-brand, .footer-links, .footer-contact, .footer-social-map {
        max-width: 100%;
        width: 100%;
    }

    .social-icons-footer {
        justify-content: center;
    }
}