/* ==========================================================
   ATELIER KADJA
   Luxury Fashion Theme
   Partie 1 : Reset, Loader, Header, Hero
========================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #111;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Images */
img {
    max-width: 100%;
    display: block;
}

/* Links */
a {
    text-decoration: none;
}

/* Lists */
ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
    background: #b58d54;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8f6f43;
}

/* ==========================================================
   LOADER
========================================================== */

.loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: hideLoader .8s ease forwards;
    animation-delay: 2s;
}

.loader img {
    width: 120px;
    border-radius: 50%;
    animation: logoPulse 2s infinite;
}

.loader h2 {
    margin-top: 25px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    letter-spacing: 8px;
    color: #111;
}

@keyframes logoPulse {
    0% {
        transform: scale(.95);
        opacity: .8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(.95);
        opacity: .8;
    }
}

@keyframes hideLoader {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ==========================================================
   HEADER
========================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    z-index: 999;
    background: transparent;
    transition: .4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    padding: 16px 8%;
}

.logo img {
    width: 80px;
    border-radius: 50%;
    transition: .4s;
}

.logo img:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: .3s;
}

header.scrolled nav a {
    color: #111;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: #b58d54;
    transition: .3s;
}

nav a:hover::after {
    width: 100%;
}

/* ==========================================================
   HERO VIDEO
========================================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Ajuste le cadrage vers le haut (la tête) */
    z-index: -2;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, .15),
        rgba(0, 0, 0, .45)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: #fff;
    animation: heroAppear 1.5s ease forwards;
}

.subtitle {
    display: block;
    margin-bottom: 25px;
    font-size: 12px;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(60px, 10vw, 150px);
    font-weight: 600;
    line-height: .95;
    letter-spacing: 10px;
    margin-bottom: 25px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 45px;
    font-size: 20px;
    line-height: 1.8;
}

/* ==========================================================
   BUTTON
========================================================== */

.btn {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: .4s;
}

.btn:hover {
    background: #fff;
    color: #111;
    transform: translateY(-4px);
}

/* ==========================================================
   SCROLL INDICATOR
========================================================== */

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 45px;
    background: #fff;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ==========================================================
   SECTIONS
========================================================== */

section {
    padding: 120px 8%;
}

.title {
    text-align: center;
    margin-bottom: 80px;
}

.title span {
    display: block;
    margin-bottom: 15px;
    color: #b58d54;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 20px;
}

.title p {
    max-width: 700px;
    margin: auto;
    color: #666;
    line-height: 1.8;
}

/* ==========================================================
   ATELIER KADJA
   Luxury Fashion Theme
   Partie 2 : Intro, Collection, Cards, Lookbook
========================================================== */

/* ==========================================================
   INTRO
========================================================== */

.intro {
    background: #faf8f5;
}

.intro-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.intro h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    margin-bottom: 30px;
    color: #111;
}

.intro p {
    font-size: 18px;
    color: #555;
    line-height: 2;
    max-width: 760px;
    margin: auto;
}

/* ==========================================================
   COLLECTION
========================================================== */

.collection {
    background: #fff;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 70px;
}

/* ==========================================================
   PREMIUM CARD
========================================================== */

.card {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: .5s;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .06);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform .9s ease;
    display: block;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .18)
    );
    opacity: 0;
    transition: .5s;
}

.card:hover .card-image::after {
    opacity: 1;
}

.card-content {
    padding: 35px;
    text-align: center;
}

.card-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    margin-bottom: 15px;
}

.card-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.card-content a {
    text-decoration: none;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    position: relative;
}

.card-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: #b58d54;
    transition: .4s;
}

.card-content a:hover::after {
    width: 100%;
}

/* ==========================================================
   LOOKBOOK
========================================================== */

.lookbook {
    background: #111;
    color: #fff;
    padding: 140px 0;
}

.lookbook .title h2,
.lookbook .title p {
    color: #fff;
}

/* ==========================================================
   CAROUSEL INFINI (LOOKBOOK)
========================================================== */

.carousel-container {
    width: 100%;
    overflow: hidden; /* Cache ce qui dépasse de l'écran */
    margin-top: 80px;
    position: relative;
}

.carousel-track {
    display: flex;
    width: max-content; /* S'adapte à la largeur totale des 8 images */
    /* 25s est la vitesse. Plus le chiffre est grand, plus c'est lent */
    animation: scrollInfinite 25s linear infinite; 
}

/* Optionnel : Met le carrousel en pause quand on passe la souris dessus */
.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track .look-card {
    width: 25vw; /* Affiche 4 images par écran sur PC (100vw / 4) */
    min-width: 300px; /* Taille minimale sur mobile pour bien voir les détails */
    flex-shrink: 0; /* Empêche les images de s'écraser */
}

/* L'animation magique */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* On recule de 50% de la piste totale (exactement là où commence la copie) */
        transform: translateX(-50%);
    }
}

/* ==========================================================
   LOOK CARD
========================================================== */

.look-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.look-card img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    transition: 1s;
    display: block;
}

.look-card:hover img {
    transform: scale(1.12);
}

.look-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .18);
    transition: .5s;
    z-index: 1;
}

.look-card:hover::before {
    background: rgba(0, 0, 0, .45);
}

.look-info {
    position: absolute;
    left: 40px;
    bottom: 40px;
    z-index: 5;
    color: #fff;
    transform: translateY(40px);
    opacity: 0;
    transition: .5s;
}

.look-card:hover .look-info {
    transform: translateY(0);
    opacity: 1;
}

.look-info span {
    display: block;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 10px;
    opacity: .8;
}

.look-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 500;
}

/* ==========================================================
   IMAGE HOVER EFFECT
========================================================== */

.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition: 1s;
}

.image-hover:hover img {
    transform: scale(1.08) rotate(.5deg);
}

/* ==========================================================
   REVEAL ANIMATION
========================================================== */

.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   FADE
========================================================== */

.fade-up {
    animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   LUXURY DIVIDER
========================================================== */

.divider {
    width: 120px;
    height: 1px;
    background: #b58d54;
    margin: 35px auto;
}

/* ==========================================================
   SECTION BACKGROUND
========================================================== */

.light-section {
    background: #faf8f5;
}

.dark-section {
    background: #111;
    color: #fff;
}

.dark-section h2,
.dark-section h3,
.dark-section p {
    color: #fff;
}

/* ==========================================================
   ATELIER KADJA
   Luxury Fashion Theme
   Partie 3 : Maison, Parallaxe, Citation,
   Contact & Footer
========================================================== */

/* ==========================================================
   MAISON
========================================================== */

.maison {
    background: #faf8f5;
}

.maison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.maison-image {
    overflow: hidden;
    position: relative;
}

.maison-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    transition: 1.2s;
}

.maison-image:hover img {
    transform: scale(1.08);
}

.maison-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    margin-bottom: 30px;
    color: #111;
}

.maison-content p {
    color: #666;
    line-height: 2;
    margin-bottom: 25px;
    font-size: 17px;
}

.maison-content .btn {
    color: #111;
    border: 1px solid #111;
}

.maison-content .btn:hover {
    background: #111;
    color: #fff;
}

/* ==========================================================
   PARALLAX SECTION
========================================================== */

.parallax {
    position: relative;
    height: 70vh;
    background: url("images/parallax.jpg") center center/cover fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
    padding: 20px;
}

.parallax-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    margin-bottom: 25px;
}

.parallax-content p {
    font-size: 20px;
    line-height: 1.9;
}

/* ==========================================================
   QUOTE
========================================================== */

.quote {
    background: #111;
    color: #fff;
    text-align: center;
}

.quote blockquote {
    max-width: 900px;
    margin: auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    line-height: 1.4;
    font-style: italic;
}

.quote span {
    display: block;
    margin-top: 40px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 13px;
    color: #b58d54;
}

/* ==========================================================
   CONTACT
========================================================== */

.contact {
    background: #fff;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 70px;
}

.contact-info h3,
.contact-form h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    margin-bottom: 30px;
}

.contact-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.9;
}

.contact-details {
    margin-top: 40px;
}

.contact-details div {
    margin-bottom: 20px;
    color: #444;
}

.contact-details strong {
    display: block;
    color: #111;
    margin-bottom: 5px;
}

/* ==========================================================
   FORM
========================================================== */

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 22px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: .3s;
    background: #fff;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #b58d54;
    box-shadow: 0 0 0 4px rgba(181, 141, 84, .12);
}

.contact-form button {
    width: 220px;
    padding: 18px;
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: .4s;
}

.contact-form button:hover {
    background: #b58d54;
}

/* ==========================================================
   INSTAGRAM STRIP
========================================================== */

.instagram {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.instagram img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: .6s;
}

.instagram a {
    overflow: hidden;
    display: block;
}

.instagram a:hover img {
    transform: scale(1.08);
    filter: brightness(.8);
}

/* ==========================================================
   FOOTER
========================================================== */

footer {
    background: #0b0b0b;
    color: #bbb;
    padding: 90px 8% 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
    margin-bottom: 60px;
}

.footer-brand img {
    width: 90px;
    border-radius: 50%;
    margin-bottom: 25px;
}

.footer-brand h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
}

.footer-brand p {
    line-height: 1.9;
}

.footer-links h4,
.footer-social h4 {
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
}

.footer-links ul,
.footer-social ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a,
.footer-social a {
    color: #bbb;
    transition: .3s;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #b58d54;
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 30px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* ==========================================================
   NEWSLETTER
========================================================== */

.newsletter {
    margin-top: 35px;
    display: flex;
    gap: 12px;
}

.newsletter input {
    flex: 1;
    padding: 15px 18px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
}

.newsletter button {
    padding: 15px 28px;
    border: none;
    background: #b58d54;
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.newsletter button:hover {
    background: #fff;
    color: #111;
}

/* ==========================================================
   ATELIER KADJA
   Luxury Fashion Theme
   Partie 4 : WhatsApp, Animations, Responsive, Final Touches
========================================================== */

/* ==========================================================
   WHATSAPP FLOATING BUTTON
========================================================== */

.whatsapp {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
    transition: .4s;
    animation: whatsappPulse 2s infinite;
}

.whatsapp:hover {
    transform: scale(1.1);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================
   BACK TO TOP
========================================================== */

.back-top {
    position: fixed;
    right: 35px;
    bottom: 110px;
    width: 45px;
    height: 45px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .4s;
    z-index: 900;
}

.back-top.active {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    background: #b58d54;
}

/* ==========================================================
   PAGE LOAD ANIMATIONS
========================================================== */
@keyframes heroAppear {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   IMAGE REVEAL
========================================================== */

.reveal-image {
    overflow: hidden;
}

.reveal-image img {
    transform: scale(1.15);
    opacity: 0;
    transition: 1.2s ease;
}

.reveal-image.active img {
    transform: scale(1);
    opacity: 1;
}

/* ==========================================================
   GOLD HOVER EFFECT
========================================================== */

.gold-hover {
    transition: .4s;
}

.gold-hover:hover {
    color: #b58d54;
}

/* ==========================================================
   CURSOR EFFECT
========================================================== */

.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #b58d54;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

/* ==========================================================
   RESPONSIVE TABLETTE
========================================================== */

@media (max-width: 1100px) {
    header {
        padding: 20px 5%;
    }
    nav {
        gap: 20px;
    }
    .hero h1 {
        letter-spacing: 5px;
    }
    .lookbook-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .maison-container {
        grid-template-columns: 1fr;
    }
    .maison-image img {
        height: 550px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .instagram {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================
   RESPONSIVE MOBILE
========================================================== */

@media (max-width: 768px) {
    section {
        padding: 80px 6%;
    }
    header {
        padding: 18px 5%;
    }
    .logo img {
        width: 65px;
    }
    nav {
        display: none;
    }
    .hero h1 {
        font-size: 60px;
        letter-spacing: 3px;
    }
    .hero p {
        font-size: 16px;
    }
    .subtitle {
        letter-spacing: 4px;
    }
    .btn {
        padding: 15px 30px;
    }
    .title h2 {
        font-size: 45px;
    }
    .intro h2,
    .maison-content h2 {
        font-size: 45px;
    }
    .collection-grid {
        grid-template-columns: 1fr;
    }
    .card-image img {
        height: 420px;
    }
    .lookbook-grid {
        grid-template-columns: 1fr;
    }
    .look-card img {
        height: 500px;
    }
    .parallax {
        height: 60vh;
        background-attachment: scroll;
    }
    .parallax-content h2 {
        font-size: 48px;
    }
    .quote blockquote {
        font-size: 34px;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .instagram {
        grid-template-columns: repeat(2, 1fr);
    }
    .instagram img {
        height: 180px;
    }
    .newsletter {
        flex-direction: column;
    }
    .whatsapp {
        width: 55px;
        height: 55px;
        right: 20px;
        bottom: 20px;
        font-size: 25px;
    }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {
    .hero h1 {
        font-size: 48px;
    }
    .hero p {
        font-size: 15px;
    }
    .title h2 {
        font-size: 38px;
    }
    .look-info h3 {
        font-size: 30px;
    }
    .maison-image img {
        height: 400px;
    }
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: #b58d54;
    color: #fff;
}

/* ==========================================================
   FINAL LUXURY DETAILS
========================================================== */

.luxury-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #b58d54,
        transparent
    );
    margin: 60px 0;
}

.text-gold {
    color: #b58d54;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* ==========================================================
   END
   ATELIER KADJA LUXURY THEME
========================================================== */
