/* ==========================================================================
   HOISTED EXTERNAL FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');

/* ==========================================================================
   VARIABLES DE DESIGN (Couleurs du Logo & Typographies Demandées)
   ========================================================================== */
:root {
    /* Palette de couleurs */
    --primary-navy: #0A3460;
    --primary-teal: #21A0A0;
    --accent-gold: #D6A869;
    --bg-light: #F9FBFC;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    
    /* Typographies strictes */
    --font-title: 'Poetsen One', sans-serif; /* Typo principale pour titres */
    --font-body: 'Josefin Sans', sans-serif;             /* Typo secondaire pour le corps */
    
    --transition-speed: 0.3s ease;
}

/* ==========================================================================
   RESET GENERAL & STRUCTURAL (Mobile-First)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    margin-top: 80px; /* Évite la superposition sous le header fixe */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* TYPOGRAPHIES & TITRES (Application de la Typo Principale SAGITTE) */
h1, h2, h3, .hero-title, .section-title {
    font-family: var(--font-title);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   HEADER & LOGO / HAMBURGER DESIGN
   ========================================================================== */
header {
    background-color: var(--text-light);
    box-shadow: 0 2px 12px rgba(10, 52, 96, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
}

.logo-container img {
    height: 60px;
    width: auto;
    display: block;
}

/* Bouton Hamburger Mobile-First */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

/* Menu de Navigation Volant (Mobile) */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--primary-navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-speed);
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
}

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

.main-nav ul {
    list-style: none;
    text-align: center;
    width: 100%;
}

.main-nav ul li {
    margin: 24px 0;
}

.main-nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    padding: 10px;
    transition: color var(--transition-speed);
}

.main-nav ul li a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   SECTION ACCUEIL / HERO SECTION ACTIVE WITH BACKGROUND
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(10, 52, 96, 0.88), rgba(10, 52, 96, 0.65)), 
                url('../images/hero-bg.webp') no-repeat center center/cover;
    background-color: var(--primary-navy);
    color: var(--text-light);
    text-align: center;
    padding: 120px 20px;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 12px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 24px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.promo-badge {
    display: inline-block;
    background-color: var(--primary-teal);
    color: var(--text-light);
    padding: 6px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(33, 160, 160, 0.3);
}

.hero-text {
    max-width: 750px;
    margin: 0 auto 30px auto;
    font-size: 1.15rem;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-teal);
    color: var(--text-light);
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(33, 160, 160, 0.4);
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ==========================================================================
   DESIGN SECTIONS (CONCEPT & PRODUITS)
   ========================================================================== */
.concept-section {
    background-color: #FFFFFF;
}

.section-title {
    text-align: center;
    color: var(--primary-navy);
    font-size: 2.4rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-teal);
}

.section-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Grilles structures fluides */
.features-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 32px;
}

/* Cartes Concept */
.feature-card {
    background-color: var(--bg-light);
    padding: 36px 24px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(10, 52, 96, 0.03);
    border-bottom: 4px solid var(--primary-teal);
    transition: transform var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3.2rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    color: var(--primary-navy);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

/* Cartes Éléments Produits */
.product-item {
    background-color: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(10, 52, 96, 0.05);
    text-align: center;
    padding-bottom: 24px;
    transition: transform var(--transition-speed);
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #EAEFF2;
}

.product-item h3 {
    margin: 18px 0 10px 0;
    color: var(--primary-navy);
    font-size: 1.4rem;
}

.product-item p {
    padding: 0 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* ==========================================================================
   FOOTER STRUCTURE & LAYOUT
   ========================================================================== */
footer {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 50px 24px;
    text-align: center;
    font-size: 0.95rem;
}

.footer-contact {
    margin-bottom: 30px;
    font-weight: 300;
}

.footer-contact strong {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.footer-contact a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-legal p {
    margin-bottom: 12px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 12px;
    text-decoration: underline;
    transition: color var(--transition-speed);
}

.footer-legal a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   RESPONSIVE DESKTOP LAYER (Media Queries)
   ========================================================================== */
@media (min-width: 768px) {
    .hamburger { 
        display: none; 
    }
    
    header {
        padding: 0 40px;
    }
    
    .main-nav {
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        box-shadow: none;
    }
    
    .main-nav class {
        display: block;
    }
    
    .main-nav ul {
        display: flex;
        justify-content: flex-end;
    }
    
    .main-nav ul li {
        margin: 0 0 0 32px;
    }
    
    .main-nav ul li a {
        color: var(--primary-navy);
        font-size: 1.1rem;
        font-weight: 600;
        padding: 8px 0;
        white-space: nowrap; /* Force l'affichage strict sur une seule ligne */
        position: relative;
    }
    
    .main-nav ul li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-teal);
        transition: width var(--transition-speed);
    }
    
    .main-nav ul li a:hover::after {
        width: 100%;
    }
    
    .hero-section {
        padding: 160px 20px;
    }
    
    .hero-title {
        font-size: 4.2rem;
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        text-align: left;
    }
    
    .footer-contact {
        margin-bottom: 0;
    }
    
    .footer-legal {
        text-align: right;
        border-top: none;
        padding-top: 0;
    }
}
