/* ============================================
   OCEAN MARINE SERVICES - CSS GLOBAL
   ============================================ */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --deep-blue: #1E4B9C;
    --brand-orange: #F09A4F;
    --text-grey: #666666;
    --white: #FFFFFF;
    --light-grey: #F5F5F5;
    --dark-grey: #333333;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

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

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--deep-blue);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.main-header .logo img {
    height: 60px;
    width: auto;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.time-zones {
    display: flex;
    gap: 20px;
    color: var(--white);
    font-size: 0.85rem;
}

.time-zones > div {
    text-align: center;
}

.time-zones strong {
    display: block;
    font-size: 1.1rem;
    color: var(--brand-orange);
    font-family: 'Oswald', monospace;
}

.time-zones span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-controls i {
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-controls i:hover {
    color: var(--brand-orange);
    transform: scale(1.1);
}

/* ============================================
   MENU MOBILE OFF-CANVAS
   ============================================ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100%;
    background: var(--deep-blue);
    z-index: 1999;
    padding: 30px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav .close-btn:hover {
    color: var(--brand-orange);
    transform: rotate(90deg);
}

.mobile-logo {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo img {
    max-width: 180px;
    margin: 0 auto;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 5px;
}

.mobile-nav ul li a {
    display: block;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mobile-nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--brand-orange);
    transition: width 0.3s ease;
    z-index: -1;
}

.mobile-nav ul li a:hover::before,
.mobile-nav ul li a.active::before {
    width: 100%;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: var(--white);
    transform: translateX(10px);
}

.mobile-nav ul li a.active {
    font-weight: 700;
}

/* ============================================
   SECTIONS
   ============================================ */
.depth-hero-section {
    position: relative;
    background: linear-gradient(180deg, 
        rgba(30, 75, 156, 0.95) 0%, 
        rgba(30, 75, 156, 0.85) 50%, 
        rgba(30, 75, 156, 0.95) 100%
    ), url('img/ocean-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 120px 0 60px 0;
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title.dark {
    color: var(--deep-blue);
}

.divider-orange {
    width: 100px;
    height: 4px;
    background: var(--brand-orange);
    margin: 0 auto 50px auto;
    border-radius: 2px;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.text-content {
    padding: 20px;
}

.text-content h2 {
    margin-bottom: 20px;
}

.text-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white); font-weight: 500;
}

.text-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--white);
    text-align: justify;
}

.text-content ul {
    list-style: none;
    margin: 20px 0;
}

.text-content ul li {
    padding: 8px 0;
    color: var(--white);
    position: relative;
    padding-left: 25px;
}

.text-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--brand-orange);
    font-size: 1.2rem;
}

.image-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.image-content:hover img {
    transform: scale(1.05);
}

.orange-title {
    color: var(--brand-orange);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid var(--brand-orange);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--brand-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--brand-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 154, 79, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--brand-orange);
}

.btn-outline:hover {
    background: var(--brand-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 154, 79, 0.3);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, 
        var(--brand-orange) 0%, 
        #e08a3f 100%
    );
    padding: 80px 0;
    color: var(--white);
}

.stats-header {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.stat-card .label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.certifications-section {
    padding: 80px 0;
    background: var(--light-grey);
}

.certifications-section ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.certifications-section ul li {
    padding: 15px;
    margin-bottom: 10px;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
}

.certifications-section ul li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('img/video-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--brand-orange);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(240, 154, 79, 0.4);
    animation: float 3s ease-in-out infinite;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(240, 154, 79, 0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 1200px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.video-close:hover {
    color: var(--brand-orange);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    padding: 80px 0;
    background: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    min-height: 120px;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-orange);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
}

/* ============================================
   DEPTH RULER (page d'accueil)
   ============================================ */
.depth-ruler {
    position: absolute;
    left: 20px;
    top: 120px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.depth-ruler span {
    color: var(--brand-orange);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Oswald', monospace;
    position: relative;
    padding-left: 30px;
}

.depth-ruler span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--brand-orange);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 60px 0 0 0;
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-box h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.newsletter-box form {
    display: flex;
    gap: 10px;
}

.newsletter-box input {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    flex: 1;
    min-width: 250px;
    font-size: 1rem;
}

.newsletter-box button {
    padding: 12px 30px;
    background: var(--brand-orange);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-box button:hover {
    background: #e08a3f;
    transform: translateY(-2px);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-columns .col h4 {
    color: var(--brand-orange);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-columns .col ul {
    list-style: none;
}

.footer-columns .col ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-columns .col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-columns .col ul li a:hover {
    color: var(--brand-orange);
    padding-left: 5px;
}

.logo-col img {
    max-width: 180px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--brand-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-grey);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes waterVibration {
    0%, 100% { transform: translateX(0) translateY(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-1px) translateY(-1px); }
    20%, 40%, 60%, 80% { transform: translateX(1px) translateY(1px); }
}

.vibrate-slow {
    animation: waterVibration 8s ease-in-out infinite;
}

.vibrate-medium {
    animation: waterVibration 5s ease-in-out infinite;
    animation-delay: 1s;
}

.vibrate-fast {
    animation: waterVibration 3s ease-in-out infinite;
    animation-delay: 2s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .content-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .depth-ruler {
        display: none;
    }
    
    .time-zones {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .orange-title {
        font-size: 1.5rem;
    }
    
    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-box form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-box input {
        min-width: 100%;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .stat-card .number {
        font-size: 2.5rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .main-header .logo img {
        height: 45px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .mobile-nav {
        width: 100%;
        right: -100%;
    }
    
    .content-block {
        padding: 15px;
    }
    
    .text-content {
        padding: 10px;
    }
}

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

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

/* ============================================
   OPTIMISATION PERFORMANCES
   ============================================ */
.bubble, 
.image-content img, 
.stat-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .main-header,
    .mobile-nav,
    .mobile-nav-overlay,
    .main-footer,
    .btn-primary,
    .btn-outline,
    .play-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .depth-hero-section {
        background: white;
        color: black;
        padding: 20px 0;
    }
}

/* ============================================
   AMÉLIORATIONS COULEURS TEXTES
   ============================================ */

/* Amélioration des h4 dans les sections */
.text-content h4 {
    color: var(--brand-orange);
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

/* Styles spécifiques pour la page À Propos */
.certifications-section h3 {
    color: var(--dark-grey);
    font-weight: 600;
}

.certifications-section ul li {
    color: var(--text-grey);
}

.certifications-section ul li strong {
    color: var(--deep-blue);
}

/* Page Matériels - amélioration des textes */
.equipment-section p {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Page Services - amélioration du sous-titre */
.depth-hero-section > .container > p {
    color: var(--white);
    opacity: 0.95;
}

/* Stats Section - textes plus visibles */
.stats-section h2 {
    color: var(--deep-blue);
    font-weight: 700;
}

.stats-section p {
    color: var(--text-grey);
}

/* Texte dans les content blocks sur fond bleu */
.depth-hero-section .content-block h2,
.depth-hero-section .content-block h3,
.depth-hero-section .content-block p,
.depth-hero-section .content-block li {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Amélioration des petits textes */
small {
    color: rgba(255, 255, 255, 0.7);
}

.certifications-section small {
    color: #999;
}

/* Textes sur fond clair (sections blanches) */
.stats-section .container p,
.certifications-section .container p {
    color: var(--text-grey);
    line-height: 1.8;
}

/* Liens dans les listes */
.footer-columns .col ul li,
.footer-columns .col ul li strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Amélioration du contraste pour les icônes */
.text-content ul li i {
    color: var(--brand-orange);
    margin-right: 8px;
}

/* Message d'absence de contenu */
.depth-hero-section div[style*="color: #999"] p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Textes des boutons admin */
.btn-primary span,
.btn-outline span {
    color: inherit;
}

/* Amélioration de la lisibilité sur mobile */
@media (max-width: 768px) {
    .text-content p,
    .text-content li {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .equipment-section p {
        font-size: 1rem;
    }
}
