/* ============================================
   LA CAPITANE - Location Vacances La Baule
   Style: Chaleureux Bord de Mer
   ============================================ */

/* === VARIABLES CSS === */
:root {
    /* Couleurs principales */
    --bleu-marine: #1e3a5f;
    --bleu-logo: #2b7cb3;
    --bleu-clair: #5ba3d0;
    --blanc-casse: #faf9f7;
    --sable: #e8dcc8;
    --sable-clair: #f5f0e8;
    --dore: #c9a959;
    --dore-clair: #d4b86a;
    --gris-texte: #4a4a4a;
    --gris-clair: #8a8a8a;
    
    /* Typographie */
    --font-titre: 'Playfair Display', Georgia, serif;
    --font-corps: 'Lato', 'Segoe UI', sans-serif;
    
    /* Espacements */
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Ombres */
    --shadow-light: 0 2px 15px rgba(30, 58, 95, 0.08);
    --shadow-medium: 0 5px 30px rgba(30, 58, 95, 0.12);
    --shadow-hover: 0 8px 40px rgba(30, 58, 95, 0.18);
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-corps);
    color: var(--gris-texte);
    background-color: var(--blanc-casse);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-titre);
    color: var(--bleu-marine);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

/* === CONTAINER === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-corps);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bleu-logo), var(--bleu-marine));
    color: white;
    box-shadow: 0 4px 15px rgba(43, 124, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(43, 124, 179, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--bleu-marine);
    border: 2px solid var(--bleu-marine);
}

.btn-secondary:hover {
    background: var(--bleu-marine);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--dore), var(--dore-clair));
    color: var(--bleu-marine);
    box-shadow: 0 4px 15px rgba(201, 169, 89, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 169, 89, 0.4);
}

/* === HEADER / NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-medium);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

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

.logo img {
    height: 55px;
    width: auto;
}

.logo-text {
    font-family: var(--font-titre);
    font-size: 1.1rem;
    color: var(--bleu-marine);
    font-weight: 600;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    color: var(--bleu-logo);
    font-size: 0.85rem;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--bleu-marine);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dore);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
    margin-left: 15px;
}

.nav-links .btn.btn-primary {
    color: white !important;
}

/* Menu burger mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--bleu-marine);
    transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(30, 58, 95, 0.7), rgba(30, 58, 95, 0.8)), url('../images/hero/plage-labaule.jpg') center/cover no-repeat;
    overflow: hidden;
    padding: 100px 0 140px 0;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23faf9f7' d='M0,60 C360,120 1080,0 1440,60 L1440,120 L0,120 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
    margin-top: 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

.hero h1 {
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: var(--dore);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-features {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-feature svg {
    width: 20px;
    height: 20px;
    color: var(--dore);
}

/* === SECTION COMMUNE === */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header p {
    color: var(--gris-clair);
    font-size: 1.1rem;
}

.section-label {
    display: inline-block;
    color: var(--dore);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* === AWARDS SECTION === */
.awards {
    background: var(--sable-clair);
    padding: 40px 0;
}

.awards-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.award-item img {
    height: 60px;
    width: auto;
}

.award-text {
    font-size: 0.9rem;
    color: var(--gris-texte);
}

.award-text strong {
    display: block;
    color: var(--bleu-marine);
    font-size: 1.1rem;
}

/* === LOGEMENTS SECTION === */
.logements {
    background: white;
}

.logements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.logement-card {
    background: var(--blanc-casse);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.logement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.logement-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.logement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.logement-card:hover .logement-image img {
    transform: scale(1.08);
}

.logement-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--dore);
    color: var(--bleu-marine);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.logement-content {
    padding: 30px;
}

.logement-content h3 {
    color: var(--bleu-marine);
    margin-bottom: 10px;
}

.logement-content p {
    color: var(--gris-clair);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.logement-features {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.logement-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--gris-texte);
}

.logement-features svg {
    width: 18px;
    height: 18px;
    color: var(--bleu-logo);
}

.logement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--sable);
}

.logement-price {
    font-family: var(--font-titre);
    font-size: 1.4rem;
    color: var(--bleu-marine);
}

.logement-price span {
    font-size: 0.85rem;
    color: var(--gris-clair);
    font-family: var(--font-corps);
}

/* === ATOUTS SECTION === */
.atouts {
    background: linear-gradient(180deg, var(--blanc-casse) 0%, var(--sable-clair) 100%);
}

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

.atout-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.atout-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.atout-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bleu-logo), var(--bleu-marine));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.atout-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.atout-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.atout-card p {
    color: var(--gris-clair);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === LOCALISATION SECTION === */
.localisation {
    background: var(--bleu-marine);
    color: white;
    position: relative;
    overflow: hidden;
}

.localisation::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon fill='%232b7cb3' opacity='0.1' points='100,0 100,100 0,100'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

.localisation .container {
    position: relative;
    z-index: 2;
}

.localisation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.localisation h2 {
    color: white;
}

.localisation .section-label {
    color: var(--dore);
}

.localisation p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.localisation-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

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

.loc-feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loc-feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--dore);
}

.loc-feature-text h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
    font-family: var(--font-corps);
    font-weight: 600;
}

.loc-feature-text p {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 0;
}

.localisation-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.localisation-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* === AVIS SECTION === */
.avis {
    background: white;
}

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

.avis-card {
    background: var(--blanc-casse);
    padding: 35px;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-light);
}

.avis-card::before {
    content: '"';
    font-family: var(--font-titre);
    font-size: 5rem;
    color: var(--bleu-logo);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 25px;
    line-height: 1;
}

.avis-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.avis-stars svg {
    width: 18px;
    height: 18px;
    color: var(--dore);
    fill: var(--dore);
}

.avis-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.avis-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avis-author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bleu-logo), var(--bleu-marine));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.avis-author-info strong {
    display: block;
    color: var(--bleu-marine);
}

.avis-author-info span {
    font-size: 0.85rem;
    color: var(--gris-clair);
}

/* === CTA SECTION === */
.cta {
    background: linear-gradient(135deg, var(--sable) 0%, var(--sable-clair) 100%);
    text-align: center;
}

.cta h2 {
    margin-bottom: 15px;
}

.cta p {
    color: var(--gris-clair);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === FOOTER === */
footer {
    background: var(--bleu-marine);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-text span {
    color: var(--bleu-clair);
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-corps);
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.75;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--dore);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--dore);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    opacity: 0.7;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    opacity: 1;
}

/* === RESPONSIVE === */
/* =======================================
   BOOKING AWARDS
   ======================================= */
.booking-awards {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #003580 0%, #00224f 100%);
}

.awards-images {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.award-badge {
    height: 60px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* =======================================
   RESPONSIVE
   ======================================= */

@media (max-width: 992px) {
    .localisation-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    /* Navigation mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 25px;
        align-items: flex-start;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Hero mobile */
    .hero {
        min-height: 100svh;
        padding-top: 80px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* Grids */
    .logements-grid {
        grid-template-columns: 1fr;
    }
    
    .atouts-grid {
        grid-template-columns: 1fr;
    }
    
    .avis-grid {
        grid-template-columns: 1fr;
    }
    
    .localisation-features {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .awards-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* === UTILITAIRES === */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer Navigation Simple */
.footer-nav-simple {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-simple li a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-nav-simple li a:hover {
    color: #c9a959;
    transform: translateX(5px);
}

/* FIX MOBILE - Empêcher la marge blanche à droite */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
}

main {
    overflow-x: hidden;
    width: 100%;
}

section {
    width: 100%;
    max-width: 100%;
}

.hero {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.hero::before {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .hero {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-content {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    section {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}
