/* ==========================================
   HOME.CSS - Page d'accueil
   ========================================== */

/* ==========================================
   GLOBAL - FOND BLANC + SCROLL SMOOTH
   ========================================== */

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
}

/* ==========================================
   HEADER AVEC SCROLL EFFET
   ========================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   HERO BANNER SOUS LE HEADER
   ========================================== */

.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 40px;
}

/* Image Katagami centrale avec animation */
.hero-banner__product-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-banner__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-banner__btn {
    display: inline-block;
    padding: 18px 50px;
    background: #fff;
    color: #000;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

.hero-banner__btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Badges sous le bouton */
.hero-banner__badges {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

.hero-banner__badge {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
}

/* ==========================================
   SECTIONS AVEC CARDS GLASSMORPHISM
   ========================================== */

.products-section {
    padding: 80px 0;
    background: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   CARDS GLASSMORPHISM
   ========================================== */

.product-card-glass {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-card-glass__image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-glass__image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card-glass:hover .product-card-glass__image-wrapper {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(200, 200, 200, 0.5);
}

.product-card-glass:hover .product-card-glass__image-wrapper::before {
    opacity: 1;
}

.product-card-glass__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-glass:hover .product-card-glass__image {
    transform: scale(1.1);
}

.product-card-glass__info {
    text-align: center;
    width: 100%;
}

.product-card-glass__title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.product-card-glass:hover .product-card-glass__title {
    color: #000;
    transform: translateY(-2px);
}

.product-card-glass__price {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

/* ==========================================
   SECTION INFO KATAGAMI (80vh)
   ========================================== */

.katagami-info {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.katagami-info__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.katagami-info__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
}

.katagami-info__content {
    color: #fff;
    max-width: 700px;
    padding: 0 80px;
}

.katagami-info__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.katagami-info__text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
}

.katagami-info__btn {
    display: inline-block;
    padding: 18px 50px;
    background: #fff;
    color: #000;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.katagami-info__btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   SECTION ACCESSOIRES
   ========================================== */

.accessories-section {
    padding: 80px 0;
    background: #ffffff;
}

.accessories-section__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 60px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   SECTION LE CHOIX DU BIENFAIT
   ========================================== */

.bienfait-section {
    padding: 80px 0;
    background: #ffffff;
}

.bienfait-section .container {
    max-width: 700px;
}

.bienfait-section__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.bienfait-section__text {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 400;
    font-style: italic;
}

/* ==========================================
   MODAL KATAGAMI - OVERLAY
   ========================================== */

.modal-overlay-katagami {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay-katagami.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-katagami {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    padding: 40px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modal-content-katagami::-webkit-scrollbar {
    display: none;
}

.modal-content-katagami {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-close-katagami {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #1a1a1a;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
}

.modal-close-katagami:hover {
    opacity: 0.6;
}

.modal-title-katagami {
    font-size: 2.3125rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #1a1a1a;
    text-align: left;
}

.modal-title-katagami strong {
    font-weight: 700;
}

/* ==========================================
   MODAL - SECTION 1 - 3 PHOTOS VERTICALES
   ========================================== */

.modal-section-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.modal-benefit-card {
    display: flex;
    flex-direction: column;
}

.modal-benefit-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 500px;
    margin-bottom: 16px;
}

.modal-benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-benefit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-benefit-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.modal-benefit-overlay p {
    font-size: 30px;
    line-height: 1.2;
    margin: 0;
    font-weight: 500;
}

.modal-benefit-text {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* ==========================================
   MODAL - SECTION 2 - PHOTO HORIZONTALE
   ========================================== */

.modal-section-horizontal {
    margin-bottom: 40px;
}

.modal-horizontal-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 500px;
}

.modal-horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-horizontal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.modal-horizontal-overlay p {
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0 40px;
}

.modal-horizontal-overlay strong {
    font-weight: 700;
    color: #000;
}

/* ==========================================
   MODAL - SECTION 3 - TITRE + 5 FORMATS
   ========================================== */

.modal-section-formats {
    margin-bottom: 40px;
}

.modal-section-title {
    font-size: 2.0625rem;
    font-weight: 400;
    margin-bottom: 32px;
    color: #1a1a1a;
    text-align: left;
}

.modal-section-title strong {
    font-weight: 700;
}

.modal-formats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.modal-format-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.modal-format-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 16px;
}

.modal-format-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-format-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.modal-format-overlay h4 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-format-overlay p {
    font-size: 30px;
    line-height: 1.2;
    margin: 0;
    font-weight: 500;
}

.modal-format-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.modal-format-specs {
    font-size: 15px;
    line-height: 1.6;
    color: #888;
}

/* ==========================================
   MODAL - SECTION 4 - COMMENT ÇA MARCHE
   ========================================== */

.modal-section-howto {
    margin-bottom: 40px;
}

.modal-howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.modal-howto-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 500px;
}

.modal-howto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-howto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: none;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-howto-overlay h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-howto-overlay p {
    font-size: 30px;
    line-height: 1.2;
    margin: 0;
    font-weight: 500;
}

/* ==========================================
   MODAL - SECTION 5 - PHOTO FINALE
   ========================================== */

.modal-section-final {
    margin-bottom: 0;
}

.modal-section-final .modal-horizontal-image {
    height: 500px;
}

/* ==========================================
   RESPONSIVE - TABLETTE
   ========================================== */

@media (max-width: 1024px) {
    .hero-banner__product-image {
        max-width: 400px;
    }
    
    .hero-banner__title {
        font-size: 2.5rem;
    }
    
    .katagami-info__content {
        padding: 0 50px;
    }
    
    .katagami-info__text {
        font-size: 1.5rem;
    }
    
    .modal-formats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
    /* Hero Banner */
    .hero-banner {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-banner__product-image {
        max-width: 200px;
        margin-bottom: 20px;
    }
    
    .hero-banner__title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .hero-banner__btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
    
    .hero-banner__badges {
        flex-direction: row;
        gap: 15px;
        margin-top: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-banner__badge {
        font-size: 0.875rem;
    }
    
    /* Section produits */
    .products-section {
        padding: 50px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 20px;
    }
    
    .product-card-glass__title {
        font-size: 1rem;
    }
    
    .product-card-glass__price {
        font-size: 0.875rem;
    }
    
    /* Section Katagami Info */
    .katagami-info {
        height: 60vh;
        min-height: 450px;
    }
    
    .katagami-info__content {
        padding: 0 30px;
    }
    
    .katagami-info__title {
        font-size: 1.25rem;
    }
    
    .katagami-info__text {
        font-size: 1rem;
    }
    
    .katagami-info__btn {
        font-size: 1rem;
        padding: 12px 30px;
    }
    
    /* Section Accessoires */
    .accessories-section {
        padding: 50px 0;
    }
    
    .accessories-section__title {
        font-size: 1.25rem;
        margin-bottom: 40px;
    }
    
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    
    /* Section Bienfait */
    .bienfait-section {
        padding: 50px 0;
    }
    
    .bienfait-section__title {
        font-size: 1.25rem;
    }
    
    .bienfait-section__text {
        font-size: 1rem;
    }
    
    /* Modal */
    .modal-content-katagami {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .modal-title-katagami {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .modal-section-benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-benefit-image {
        height: 350px;
    }
    
    .modal-benefit-overlay p {
        font-size: 20px;
    }
    
    .modal-horizontal-image {
        height: 300px;
    }
    
    .modal-horizontal-overlay p {
        font-size: 20px;
    }
    
    .modal-section-title {
        font-size: 1.25rem;
    }
    
    .modal-formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-format-overlay p {
        font-size: 18px;
    }
    
    .modal-howto-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-howto-card {
        height: 350px;
    }
    
    .modal-howto-overlay p {
        font-size: 18px;
    }
    
    .modal-section-final .modal-horizontal-image {
        height: 300px;
    }
}