/* =========================================
   BASE & TYPOGRAPHIE PREMIUM
========================================= */
:root {
    --navy-dark: #00152b;
    --navy-light: #002244;
    --gold: #C5A880;
    --gold-hover: #b09169;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #FAFAFA;
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .detail-title, .company-name, .ship-name, .faq-question {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--navy-dark);
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.premium-header {
    background-color: var(--navy-dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.premium-header .logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover, .nav-link-accent:hover {
    color: var(--gold);
}

.nav-link-accent {
    color: var(--gold);
}

.btn-premium-outline {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 2px;
    transition: all 0.3s;
}

.btn-premium-outline:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: white !important;
}

/* =========================================
   HERO SECTION (ACCUEIL)
========================================= */
.hero-premium {
    position: relative;
    background: url('/background_cabinecruise.svg') center/cover no-repeat;
    height: 75vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 21, 43, 0.6); /* Calque bleu nuit */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.hero-subtitle {
    display: block;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Barre de recherche Luxe */
.premium-search-bar {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 2px;
    overflow: hidden;
}

.premium-search-bar input {
    flex: 1;
    padding: 20px 25px;
    border: none;
    font-size: 1rem;
    color: var(--navy-dark);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.premium-search-bar button {
    padding: 0 40px;
    border: none;
    background: var(--gold);
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
}

.premium-search-bar button:hover {
    background: var(--gold-hover);
}

/* =========================================
   SECTION EDITORIALE (COMMENT CA MARCHE)
========================================= */
.editorial-features {
    padding: 100px 5%;
    background: #FFFFFF;
}

.editorial-header {
    text-align: center;
    margin-bottom: 60px;
}

.editorial-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider-gold {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 25px auto;
}

.editorial-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 50px;
}

.feature-item {
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.feature-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   PAGES PUBLIQUES (COMPAGNIES / NAVIRES)
========================================= */
.public-page { 
    padding: 80px 5%; 
    min-height: calc(100vh - 150px); 
    background-color: var(--bg-light); 
}

.public-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
}

.public-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.public-header h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
}

.public-header p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    max-width: 700px; 
    margin: 0 auto; 
}

/* Grilles et Cartes Premium */
.companies-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 40px; 
}

.company-card { 
    background: #ffffff; 
    padding: 40px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
}

.company-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05); 
    border-color: var(--gold);
}

.company-logo-wrapper { 
    height: 90px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 30px; 
}

.company-logo-wrapper img { 
    max-height: 100%; 
    max-width: 100%; 
    object-fit: contain; 
}

.company-card h2, .ship-name { 
    font-size: 1.6rem; 
    margin-bottom: 15px; 
}

.company-description { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    line-height: 1.7; 
    margin-bottom: 30px; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Lignes de statistiques épurées */
.info-stats { 
    margin-bottom: 30px; 
    display: flex; 
    justify-content: center; 
    gap: 30px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.info-stats .info-card { 
    text-align: center;
}

.info-stats .info-label { 
    display: block;
    color: var(--text-muted); 
    font-size: 0.7rem; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    margin-bottom: 5px;
}

.info-stats .info-value { 
    color: var(--navy-dark); 
    font-size: 1.1rem; 
    font-family: 'Playfair Display', serif;
}

/* Bouton Carte Editorial */
.btn-full { 
    display: inline-block; 
    text-decoration: none; 
    padding: 12px 25px; 
    margin-top: auto; 
    background: transparent; 
    color: var(--navy-dark); 
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border: 1px solid var(--navy-dark);
    border-radius: 2px; 
    transition: all 0.3s ease; 
}

.company-card:hover .btn-full { 
    background: var(--navy-dark); 
    color: white; 
    border-color: var(--navy-dark);
}

/* Recherche Rapide */
.quick-search-input { 
    width: 100%; 
    padding: 15px 0; 
    border: none;
    border-bottom: 1px solid var(--border-color); 
    background: transparent; 
    font-size: 1.1rem; 
    color: var(--navy-dark); 
    outline: none; 
    transition: border-color 0.3s ease; 
}

.quick-search-input:focus { 
    border-bottom-color: var(--gold); 
}

/* FAQ Premium */
.seo-faq-section { 
    margin-top: 100px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}

.faq-item { 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 0; 
}

.faq-question { 
    padding: 25px 0; 
    font-size: 1.3rem; 
    cursor: pointer; 
    list-style: none; 
    position: relative; 
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after { 
    content: '+'; 
    position: absolute; 
    right: 0; 
    color: var(--gold); 
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem; 
    transition: transform 0.3s; 
}

details[open] .faq-question::after { content: '−'; }

.faq-answer { 
    padding: 0 0 25px 0; 
    color: var(--text-muted); 
}

/* Bannière CTA Luxe */
.cta-banner { 
    margin-top: 100px; 
    background: var(--navy-dark); 
    padding: 80px 40px; 
    text-align: center; 
    color: white; 
    border-radius: 2px;
}

.cta-content h2 { 
    color: white;
    font-size: 2.2rem; 
    margin-bottom: 20px; 
}

.cta-content p { 
    color: #A0AEC0; 
    font-size: 1.1rem; 
    margin-bottom: 35px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}

.cta-btn { 
    display: inline-block; 
    padding: 15px 40px; 
    background: var(--gold); 
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem; 
    border-radius: 2px;
    transition: background 0.3s; 
}

.cta-btn:hover { 
    background: var(--gold-hover); 
}

/* Pages Détails (Compagnies / Navires) */
.detail-header-box { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 60px; 
    align-items: center; 
    padding: 60px; 
    background: white;
    border: 1px solid var(--border-color);
}

.detail-logo-block { 
    flex: 1; 
    min-width: 250px; 
    text-align: center; 
}

.detail-logo-img { 
    max-width: 100%; 
    max-height: 120px; 
    object-fit: contain; 
}

.detail-info-block { 
    flex: 2; 
    min-width: 300px; 
}

.detail-title { 
    font-size: 3rem; 
    margin-bottom: 30px; 
}

.detail-seo-desc { 
    color: var(--text-muted); 
    font-size: 1rem; 
    margin-top: 30px;
    padding-left: 20px;
    border-left: 2px solid var(--gold);
}

/* =========================================
   PAGES AUTHENTIFICATION & UTILISATEUR
========================================= */
.auth-page {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.auth-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    max-width: 950px;
    width: 100%;
    flex-wrap: wrap;
}

.auth-box {
    flex: 1;
    padding: 60px 50px;
    min-width: 320px;
}

.register-box {
    background: var(--bg-light);
    border-left: 1px solid var(--border-color);
}

.auth-box h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--navy-dark);
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 25px;
}

.auth-form input:focus {
    border-bottom-color: var(--gold);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--navy-dark);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

.btn-submit:hover {
    background: var(--gold);
}

/* =========================================
   FOOTER PREMIUM
========================================= */
.premium-footer {
    background-color: var(--navy-dark);
    color: #A0AEC0;
    padding: 60px 5% 20px 5%;
    font-family: 'Inter', sans-serif;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #A0AEC0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--gold);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
}
/* Formatage du texte riche généré depuis le BO (CKEditor) */
.rich-text-content {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: left;
}

.rich-text-content h2, 
.rich-text-content h3, 
.rich-text-content h4 {
    color: var(--navy-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.rich-text-content h2 { font-size: 2rem; }
.rich-text-content h3 { font-size: 1.5rem; }

.rich-text-content p {
    margin-bottom: 20px;
}

.rich-text-content ul, 
.rich-text-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.rich-text-content li {
    margin-bottom: 10px;
}

.rich-text-content strong {
    color: var(--navy-dark);
    font-weight: 600;
}

.rich-text-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.rich-text-content a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* Ajustement pour l'éditeur dans le Back-Office */
.ck-editor__editable_inline {
    min-height: 200px;
    font-family: 'Inter', sans-serif !important;
}
/* =========================================
   MARQUEURS DE PLANS (PINS) - FRONT-OFFICE
========================================= */
.deck-pin {
    position: absolute;
    width: 30px; /* Un peu plus large pour bien encadrer le numéro */
    height: 14px;
    background-color: none; /* Rend le centre transparent */
    border: 2px solid var(--gold); /* Garde le liseré doré */
    border-radius: 0%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.deck-pin.vertical {
    width: 14px;
    height: 30px;
}

.deck-pin:hover {
    background-color: rgba(0, 34, 68, 0.1); /* Léger voile bleu nuit au survol */
    border-color: var(--navy-dark);
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 20;
}

.pin-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--navy-dark);
    color: white;
    text-align: center;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: opacity 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--navy-dark) transparent transparent transparent;
}

.deck-pin:hover .pin-tooltip {
    visibility: visible;
    opacity: 1;
}
/* =========================================
   ONGLETS DE PONTS - FRONT-OFFICE (PREMIUM)
========================================= */
.deck-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color); /* Ligne de base discrète */
    padding-bottom: 5px;
}

.deck-tab {
    padding: 10px 5px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Playfair Display', sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    margin-bottom: -6px; /* Aligne la bordure de l'onglet avec la ligne de base */
}

.deck-tab:hover {
    color: var(--navy-dark);
}

.deck-tab.active {
    color: var(--navy-dark);
    border-bottom: 2px solid var(--gold); /* Le liseré doré signature */
    font-weight: 600;
}
.rich-text-content img {
    max-width: 50%;
    height: auto;
}
/* =========================================
   BANDEAU COOKIES (RGPD)
========================================= */
.cc-cookie-banner {
    position: fixed; 
    bottom: 0; left: 0; right: 0;
    background: #ffffff;
    border-top: 3px solid var(--gold);
    box-shadow: 0 -10px 40px rgba(0,21,43,0.1);
    padding: 20px; 
    z-index: 999999;
    display: none; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px;
    font-family: 'Inter', sans-serif;
}
.cc-cookie-text p {
    margin: 0; color: var(--text-main); font-size: 0.9rem; line-height: 1.5;
}
.cc-cookie-buttons {
    display: flex; gap: 15px; width: 100%; justify-content: center;
}
.cc-btn-accept {
    background: var(--gold); color: white; border: none; padding: 12px 25px; font-weight: 600; cursor: pointer; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: 0.3s; width: 100%;
}
.cc-btn-accept:hover { background: var(--gold-hover); }

.cc-btn-refuse {
    background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); padding: 12px 25px; font-weight: 600; cursor: pointer; font-size: 0.85rem; transition: 0.3s; width: 100%;
}
.cc-btn-refuse:hover { background: var(--bg-light); color: var(--navy-dark); }

@media(min-width: 768px) { 
    .cc-cookie-banner { flex-direction: row; justify-content: space-between; padding: 25px 5%; } 
    .cc-cookie-text p { max-width: 700px; }
    .cc-cookie-buttons { width: auto; }
    .cc-btn-accept, .cc-btn-refuse { width: auto; }
}

/* =========================================
   MENU RESPONSIVE (MOBILE)
========================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
}

/* Règles appliquées uniquement sur les écrans de moins de 768px de large */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .premium-header {
        position: relative;
        padding: 1.2rem 20px;
    }

    #main-nav {
        display: none; /* Caché par défaut sur mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--navy-dark);
        padding: 20px 0 30px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    /* Classe ajoutée par le Javascript lors du clic */
    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    /* Animation du bouton qui se transforme en croix élégante */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* =========================================
   WIDGET CONCIERGE IA (PREMIUM)
========================================= */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.ai-chat-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0; /* Retire les marges internes */
    overflow: hidden; /* Coupe la photo pour qu'elle reste bien ronde */
}
.ai-chat-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cercle sans déformer l'image */
    display: block;
}

.ai-chat-toggle:hover {
    transform: scale(1.05);
    border-color: var(--navy-dark); /* Petit effet de survol sur la bordure */
}

.ai-chat-window {
    position: fixed; /* Fixé à l'écran, peu importe le scroll */
    top: 0;
    right: 0;
    width: 400px; /* Un peu plus large pour le confort de lecture */
    height: 100vh; /* 100% de la hauteur de la fenêtre */
    background: #ffffff;
    border: none;
    border-left: 1px solid var(--border-color);
    border-radius: 0; /* On enlève les bords arrondis */
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15); /* Ombre portée sur la gauche */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* Animation de glissement par la droite */
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: 10000;
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.ai-chat-header {
    background-color: var(--navy-dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold);
}

.ai-chat-close {
    background: transparent;
    border: none;
    color: #A0AEC0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.ai-chat-close:hover {
    color: white;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    background-color: var(--bg-light);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    max-width: 85%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message-content {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message.bot .chat-message-content {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.chat-message.user .chat-message-content {
    background: var(--navy-dark);
    color: #ffffff;
    border-bottom-right-radius: 0;
}

.ai-chat-input-area {
    display: flex;
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

.ai-chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.95rem;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.ai-chat-input-area input:focus {
    border-color: var(--gold);
}

.ai-chat-input-area button {
    background: var(--gold);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.ai-chat-input-area button:hover {
    background: var(--gold-hover);
}

/* Animation "L'IA réfléchit" */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 15px 20px !important;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Adaptation pour les téléphones */
@media (max-width: 768px) {
    .ai-chat-window {
        width: 100%; /* Sur téléphone, le panneau latéral prendra tout l'écran */
        height: 100%; /* Toujours 100% de la hauteur de la fenêtre */
    }
    .ai-chat-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================
   ADAPTATIONS MOBILES GLOBALES (CONTENU)
========================================= */
@media (max-width: 768px) {
    /* 1. Typographie et Espacements */
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 20px; }
    .hero-premium { min-height: 500px; height: auto; padding-top: 60px; padding-bottom: 60px; margin-bottom: 40px; }
    .public-page { padding: 40px 20px; }
    .public-header h1, .detail-title { font-size: 2.2rem;}
    .editorial-header h2 { font-size: 2rem; }
    
    /* 2. Grilles (Compagnies, Navires, Explorateur) */
    .companies-grid, .cabine-grid, .feature-grid { 
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
        gap: 20px;
    }
    
    /* 3. L'Explorateur (Filtres en haut, résultats en bas) */
    .explorer-layout { flex-direction: column; gap: 30px; }
    .explorer-sidebar { 
        position: static; /* Retire l'effet "collant" sur mobile */
        width: 100%; 
        padding: 25px 20px;
    }
    .explorer-main { width: 100%; min-width: auto; }
    .top-bar-explorer { flex-direction: column; align-items: flex-start; }
    
    /* 4. Page Détail Navire / Compagnie */
    .detail-header-box { 
        flex-direction: column; 
        padding: 30px 20px; 
        gap: 20px; 
        text-align: center; 
    }
    .detail-logo-block { height: 250px; width: 100%; }
    .detail-info-block { width: 100%; min-width: auto; }
    
    /* Empilement des statistiques (Inauguration, Capacité...) */
    .info-stats { 
        flex-direction: column; 
        gap: 15px; 
    }
    .info-stats .info-card { 
        padding: 10px 0 !important; 
        border-right: none !important; 
        border-bottom: 1px solid var(--border-color); 
        text-align: center !important; 
    }
    .info-stats .info-card:last-child { border-bottom: none; }
    
    /* 5. Page Mon Compte & Authentification */
    .auth-container { flex-direction: column; }
    .auth-box { 
        padding: 40px 20px; 
        min-width: auto; 
    }
    .register-box { 
        border-left: none; 
        border-top: 1px solid var(--border-color); 
    }
    
    /* 6. Formulaire d'ajout d'avis */
    .auth-form .form-group, .auth-form .form-row .form-group {
        flex: 100% !important; /* Force les champs sur 100% de large */
        min-width: 100%;
    }
    
    /* 7. Plans de ponts */
    .deck-tabs-container { 
        justify-content: center; 
        gap: 10px; 
    }
    .deck-tab { 
        font-size: 16px; 
        padding: 8px 5px; 
    }
}
.explorer-sidebar {
    flex: 1;
    min-width: 280px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 40px 30px;
    position: sticky;
    top: 20px;
    z-index: 100; /* Ligne à ajouter pour bloquer les photos en dessous */
}
/* =========================================
   ADAPTATIONS MOBILES GLOBALES (CONTENU)
========================================= */
@media (max-width: 768px) {
    /* L'Explorateur (Filtres en haut, résultats en bas) */
    .explorer-layout { 
        flex-direction: column !important; 
        gap: 30px; 
    }
    .explorer-sidebar { 
        position: static !important; /* Casse l'effet collant */
        width: 100% !important; 
        padding: 25px 20px;
    }
    .explorer-main { 
        width: 100%; 
        min-width: auto; 
    }
}

/* =========================================
   BACK-OFFICE (GÉNÉRAL & LAYOUT)
========================================= */
.admin-body { background-color: #f4f7f6; margin: 0; padding: 0; height: 100vh; overflow: hidden; }
.admin-layout { display: flex; height: 100vh; }
.admin-sidebar { width: 260px; background-color: #00152b; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 2px 0 10px rgba(0,0,0,0.1); overflow-y: auto; }
.sidebar-top { padding: 30px 20px; }
.sidebar-logo { font-size: 1.2rem; font-weight: 700; color: #00b4d8; margin-bottom: 25px; letter-spacing: 0.5px; }
.sidebar-greeting { background-color: rgba(255, 255, 255, 0.05); padding: 12px 15px; border-radius: 8px; font-size: 0.9rem; color: #e2e8f0; border-left: 3px solid #00b4d8; }
.sidebar-bottom { padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.btn-logout-sidebar { display: block; text-align: center; padding: 12px; background-color: rgba(229, 62, 62, 0.1); color: #fc8181; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; }
.btn-logout-sidebar:hover { background-color: #e53e3e; color: #fff; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.admin-header { background-color: #fff; padding: 20px 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.admin-header h1 { font-size: 1.5rem; color: #2d3748; font-family: 'Inter', sans-serif;}
.admin-content { padding: 40px; }
.admin-card { background: #fff; border-radius: 12px; padding: 3px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.sidebar-nav { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.nav-link { color: #a0aec0; text-decoration: none; padding: 10px 15px; border-radius: 8px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-link:hover, .nav-link.active { background-color: rgba(0, 180, 216, 0.1); color: #00b4d8; }
.filter-section { margin-bottom: 20px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.filter-group label { font-size: 0.8rem; color: #4a5568; margin-bottom: 5px; font-weight: 600; font-family: 'Inter', sans-serif;}
.filter-group input, .filter-group select { padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.9rem; outline: none; }
.filter-group input:focus, .filter-group select:focus { border-color: #00b4d8; }
.filter-actions { display: flex; gap: 10px; }
.btn-filter { background-color: #002244; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.3s; font-family: 'Inter', sans-serif;}
.btn-filter:hover { background-color: #00b4d8; }
.btn-reset { background-color: #edf2f7; color: #4a5568; text-decoration: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; transition: 0.3s; font-family: 'Inter', sans-serif;}
.btn-reset:hover { background-color: #cbd5e0; }
.empty-state { text-align: center; color: #718096; padding: 30px; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { background-color: #f8fafc; color: #4a5568; padding: 12px 15px; font-size: 0.85rem; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; }
.admin-table td { padding: 15px; border-bottom: 1px solid #edf2f7; color: #2d3748; font-size: 0.9rem; }
.btn-edit { background-color: #ebf8ff; color: #00b4d8; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: 0.3s; }
.btn-edit:hover { background-color: #00b4d8; color: white; }
.nav-accordion { margin-top: 5px; margin-bottom: 5px; }
.nav-section-title { font-size: 0.75rem; text-transform: uppercase; color: #a0aec0; font-weight: 700; letter-spacing: 1px; padding: 10px 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: color 0.3s ease; }
.nav-section-title:hover { color: #00b4d8; }
.nav-section-title::marker, .nav-section-title::-webkit-details-marker { display: none; }
.accordion-icon::after { content: "▼"; font-size: 0.6rem; transition: transform 0.3s ease; display: inline-block; }
details:not([open]) .accordion-icon::after { transform: rotate(-90deg); }
.accordion-content { display: flex; flex-direction: column; gap: 5px; margin-top: 5px; }
.nav-link.sub-link { padding-left: 30px; font-size: 0.85rem; }
.nav-link.sub-link::before { content: "↳"; margin-right: 8px; color: #4a5568; opacity: 0.5; }
.nav-link.sub-link:hover::before, .nav-link.sub-link.active::before { color: #00b4d8; opacity: 1; }
.message-container { width: 100%; padding: 20px 40px 0 40px; background: transparent;}
.alert { padding: 15px 20px; border-radius: 2px; font-size: 0.95rem; font-weight: 500; text-align: center; }
.alert.error { background-color: #fff5f5; color: #e53e3e; border: 1px solid #feb2b2; }
.alert.success { background-color: #f0fff4; color: #38a169; border: 1px solid #9ae6b4; }

/* =========================================
   BACK-OFFICE : COMPOSANTS UX (MODÉRATION UGC)
========================================= */
/* Hover doux sur les tableaux de modération */
.admin-table tbody tr { transition: background-color 0.2s ease; }
.admin-table tbody tr:hover { background-color: #f8fafc; }

/* Blocs de citation pour les textes UGC (Avis, Questions, Réponses) */
.ugc-quote {
    background: #f8fafc;
    border-left: 3px solid var(--gold);
    padding: 12px 15px;
    margin-top: 5px;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    font-style: italic;
}

.ugc-response-quote {
    background: #f0fdf4;
    border-left: 3px solid #38a169;
    padding: 12px 15px;
    margin-top: 10px;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    color: #276749;
    line-height: 1.5;
    font-weight: 500;
}

.ugc-review-text {
    background: #f8fafc;
    border-left: 3px solid #cbd5e0;
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Badges d'information compacts */
.badge-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Regroupement des boutons d'action */
.action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Boutons iconographiés modernes */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-approve { background: #e6ffed; color: #22863a; border: 1px solid #34d058; }
.btn-approve:hover { background: #2ea043; color: white; border-color: #2ea043; }

.btn-reject { background: #ffeef0; color: #d73a49; border: 1px solid #d73a49; }
.btn-reject:hover { background: #cb2431; color: white; border-color: #cb2431; }

.btn-edit-action { background: #ebf8ff; color: #00b4d8; border: 1px solid #90cdf4; }
.btn-edit-action:hover { background: #00b4d8; color: white; border-color: #00b4d8; }

.btn-delete { background: transparent; color: #a0aec0; padding: 6px; }
.btn-delete:hover { color: #e53e3e; text-decoration: underline; }

/* Empty States élégants */
.empty-state-modern {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    color: #718096;
    font-size: 1rem;
    margin: 20px;
}

/* Onglets de navigation UX (Ex: Page Modération Avis) */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 15px;
}
.tab-item {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.tab-item.active.attente { background: var(--gold); color: white; box-shadow: 0 4px 10px rgba(197,168,128,0.3); }
.tab-item.active.valide { background: #38a169; color: white; box-shadow: 0 4px 10px rgba(56,161,105,0.3); }
.tab-item.active.refuse { background: #e53e3e; color: white; box-shadow: 0 4px 10px rgba(229,62,62,0.3); }
.tab-item:not(.active) { background: #f8fafc; color: #718096; border: 1px solid #e2e8f0; }
.tab-item:not(.active):hover { background: #edf2f7; }

/* Modales d'édition UX (Modération Questions/Réponses) */
.modal-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
    transition: border-color 0.3s;
    outline: none;
    resize: vertical;
}
.modal-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

/* Cartes de modération (Ex: Avis) */
.admin-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}