/* assets/css/size-guide.css - Version corrigée */

:root {
    --mauve: #B79AC5;
    --mauve-dark: #9B7BAA;
    --mauve-light: #E6D9F2;
    --noir: #1A1A1A;
    --or: #D4AF8C;
    --blanc-casse: #F9F7F5;
    --gris: #3E3E3E;
    --gris-light: #F5F5F5;
    --rose-pale: #FCE4EC;
    --charcoal: #2C2C2C;
    --font-titre: 'Playfair Display', serif;
    --font-texte: 'Montserrat', sans-serif;
}

/* ----- RESET SUPPLEMENTAIRE POUR MOBILE ----- */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ----- HERO VIDEO SECTION ----- */
.size-hero {
    width: 100%;
    position: relative;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-overlay h1 {
    font-family: var(--font-titre);
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-overlay p {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20;
}

.volume-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    background: var(--mauve);
    transform: scale(1.1);
}

/* ----- FLOATING IMAGES (directly on page, no animation) ----- */
.floating-images-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 40px 0;
    pointer-events: none;
}

.floating-img-wrapper {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
}

.floating-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

/* Hover text for images */
.img-hover-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(183, 154, 197, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-texte);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

.floating-img-wrapper:hover .img-hover-text {
    opacity: 1;
}

/* Position each image */
.img-fem1 {
    width: 220px;
    top: 10%;
    left: 5%;
    z-index: 3;
}

.img-fem2 {
    width: 240px;
    top: 20%;
    right: 5%;
    z-index: 2;
}

.img-man {
    width: 250px;
    bottom: 5%;
    left: 40%;
    z-index: 1;
}

/* ----- BANNER SECTION (rectangular, full width) ----- */
.size-banner {
    width: 100%;
    margin: 40px 0;
}

.banner-full {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 21/9;
    object-fit: cover;
}

.banner-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    width: 80%;
    max-width: 800px;
    z-index: 2;
}

.banner-text-overlay h2 {
    font-family: var(--font-titre);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.banner-text-overlay p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.95;
}

/* ----- SIZE TABLES SECTION ----- */
.size-tables {
    padding: 60px 0;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.size-category {
    margin-bottom: 40px;
}

.size-category h2 {
    font-family: var(--font-titre);
    font-size: 2rem;
    color: var(--noir);
    margin-bottom: 15px;
    text-align: center;
}

.size-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--mauve);
    margin-bottom: 25px;
    font-size: 1rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.size-table th {
    background: var(--mauve);
    color: white;
    font-family: var(--font-titre);
    font-weight: 600;
    padding: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.size-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid var(--gris-light);
    font-family: var(--font-texte);
    color: var(--gris);
}

.size-table tr:last-child td {
    border-bottom: none;
}

.size-table tbody tr:hover {
    background: var(--mauve-light);
}

/* ----- HOW TO MEASURE SECTION ----- */
.how-to-measure {
    padding: 60px 0;
    background: var(--blanc-casse);
}

.how-to-measure h2 {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    color: var(--noir);
    text-align: center;
    margin-bottom: 40px;
}

.measure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.measure-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.measure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.measure-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.measure-item h3 {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    color: var(--noir);
    margin-bottom: 10px;
}

.measure-item p {
    font-family: var(--font-texte);
    color: var(--gris);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ----- TIPS SECTION ----- */
.size-tips {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tips-content {
    max-width: 800px;
    margin: 0 auto;
}

.tips-content h2 {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--font-texte);
    font-size: 1rem;
    line-height: 1.6;
}

.tips-list i {
    color: var(--or);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ----- FOOTER (IDENTIQUE À WOMEN.CSS) ----- */
.site-footer {
    background-color: var(--noir);
    color: var(--blanc-casse);
    padding: 60px 0 30px;
    font-family: var(--font-texte);
    margin-top: 60px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-titre);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
    font-family: var(--font-texte);
}

.footer-col a:hover {
    color: var(--mauve);
}

.footer-logo {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    color: white;
}

.footer-contact p {
    margin: 5px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    font-family: var(--font-texte);
}

.payment-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    font-size: 2rem;
    color: rgba(255,255,255,0.6);
}

.payment-icons i {
    transition: color 0.2s;
}

.payment-icons i:hover {
    color: var(--mauve);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-family: var(--font-texte);
}

/* =========================================== */
/* ===== RESPONSIVE MOBILE FIRST ===== */
/* =========================================== */

@media (max-width: 1024px) {
    .hero-overlay h1 {
        font-size: 2.8rem;
    }

    .measure-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-images-container {
        height: 400px;
    }

    .img-fem1 { width: 180px; left: 3%; }
    .img-fem2 { width: 200px; right: 3%; }
    .img-man { width: 210px; left: 35%; }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .hero-video-container {
        height: 60vh;
    }

    .hero-overlay h1 {
        font-size: 2.2rem;
    }

    .hero-overlay p {
        font-size: 1.1rem;
    }

    .banner-text-overlay h2 {
        font-size: 1.8rem;
    }

    .banner-text-overlay p {
        font-size: 1rem;
    }

    .floating-images-container {
        height: 350px;
    }

    .img-fem1 { width: 140px; top: 5%; }
    .img-fem2 { width: 160px; top: 15%; }
    .img-man { width: 170px; bottom: 10%; left: 30%; }

    .size-category h2 {
        font-size: 1.8rem;
    }

    .measure-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tips-content h2 {
        font-size: 1.8rem;
    }

    /* ----- FOOTER (IDENTIQUE À WOMEN.CSS 768px) ----- */
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .payment-icons {
        font-size: 1.8rem;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .footer-col ul {
        margin-bottom: 10px;
    }
    
    .footer-col h4 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .hero-overlay p {
        font-size: 0.95rem;
    }

    .volume-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }

    .banner-text-overlay h2 {
        font-size: 1.4rem;
    }

    .banner-text-overlay p {
        font-size: 0.85rem;
    }

    .floating-images-container {
        height: 300px;
    }

    .img-fem1 { width: 100px; }
    .img-fem2 { width: 110px; }
    .img-man { width: 120px; left: 30%; }

    .img-hover-text {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .size-category h2 {
        font-size: 1.5rem;
    }

    .measure-grid {
        grid-template-columns: 1fr;
    }

    .tips-list li {
        font-size: 0.9rem;
    }

    /* ----- FOOTER (IDENTIQUE À WOMEN.CSS 576px) ----- */
    .payment-icons {
        font-size: 1.6rem;
        gap: 10px;
    }
    
    .footer-contact p {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .floating-images-container {
        height: 250px;
    }

    .img-fem1 { width: 80px; }
    .img-fem2 { width: 90px; }
    .img-man { width: 100px; left: 25%; }

    .img-hover-text {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .banner-text-overlay h2 {
        font-size: 1.2rem;
    }

    /* ----- FOOTER – très petits écrans (identique à women.css) ----- */
    .payment-icons {
        font-size: 1.4rem;
    }
}