/* =========================================================
   RAPHAELISME — POCKET LED
   Header et footer gérés par css/index.css
   ========================================================= */


/* ================= BASE ================= */

.product-page {
    --bg: #080909;
    --panel: #111313;
    --text: #f3f3ef;
    --muted: #999e9a;
    --accent: #25e0d5;
    --line: rgba(37,224,213,0.24);

    min-height: 100vh;
    padding-top: 110px;

    background: var(--bg);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
}

.product-page,
.product-page * {
    box-sizing: border-box;
}


/* =========================================================
   RETOUR
   ========================================================= */

.product-back {
    max-width: 1500px;
    margin: 0 auto;
    padding: 25px 5vw 20px;
}

.product-back a {
    color: #777d79;

    font-size: 9px;
    letter-spacing: 2px;

    text-transform: uppercase;
    text-decoration: none;

    transition: color .25s ease;
}

.product-back a:hover {
    color: var(--accent);
}


/* =========================================================
   ZONE PRODUIT

   Photo et configurateur forment un seul bloc visuel,
   mais tout défile normalement avec la page.
   ========================================================= */

.product-main {
    max-width: 1500px;
    margin: 0 auto;

    padding: 0 5vw 20px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(370px, .75fr);

    gap: 55px;
    align-items: start;

    /* Aucun sticky */
    position: relative;
}


/* =========================================================
   GALERIE GAUCHE
   ========================================================= */

.product-gallery {
    width: 100%;
    min-width: 0;
}


/* ================= GRANDE IMAGE ================= */

/*
   Photo volontairement compacte afin que la hauteur
   de la colonne gauche reste proche de celle du
   configurateur situé à droite.
*/

.product-main-image {
    position: relative;

    width: 100%;
    height: clamp(400px, 53vh, 570px);

    overflow: hidden;

    background: #151817;

    border: 1px solid var(--line);
    border-radius: 7px;
}

.product-main-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ================= BADGE ================= */

.product-available {
    position: absolute;

    top: 18px;
    left: 18px;

    padding: 8px 11px;

    background: var(--accent);
    color: #07100f;

    font-size: 8px;
    font-weight: bold;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* ================= MINIATURES ================= */

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
    margin-top: 12px;
}

.product-thumb {
    aspect-ratio: 16 / 10;

    overflow: hidden;
    padding: 0;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;

    background: #111;

    cursor: pointer;

    transition:
        border-color .25s ease,
        opacity .25s ease;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--accent);
}

.product-thumb:hover {
    opacity: .85;
}

.product-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   PANNEAU DROIT
   ========================================================= */

.product-info {
    min-width: 0;

    /* Défile normalement avec la galerie */
    position: relative;
}


/* ================= META ================= */

.product-meta {
    display: flex;
    justify-content: space-between;

    padding-bottom: 13px;

    border-bottom: 1px solid var(--line);

    color: #777d79;

    font-size: 8px;
    letter-spacing: 1.8px;

    text-transform: uppercase;
}

.product-meta span:first-child {
    color: var(--accent);
}


/* ================= TITRE ================= */

.product-info h1 {
    margin: 25px 0 16px;

    color: white;

    font-size: clamp(45px, 5vw, 70px);

    line-height: .88;
    letter-spacing: -.055em;

    text-transform: uppercase;
}


/* ================= INTRO ================= */

.product-lead {
    margin: 0 0 25px;

    color: #afb4b0;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   FORMULAIRE / DEMANDE DE PRIX
   ========================================================= */

.price-form {
    padding-top: 22px;

    border-top: 1px solid rgba(255,255,255,.15);
}

.form-label {
    display: block;

    margin-bottom: 10px;

    color: #8f9591;

    font-size: 8px;
    letter-spacing: 1.8px;

    text-transform: uppercase;
}


/* =========================================================
   TEMPERATURE
   ========================================================= */

.temperature-options {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;
    margin-bottom: 22px;
}

.temperature-option input {
    display: none;
}

.temperature-option span {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 46px;

    border: 1px solid rgba(255,255,255,.17);
    border-radius: 4px;

    color: #aeb3af;

    font-size: 10px;
    letter-spacing: 1.5px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.temperature-option span:hover {
    border-color: var(--accent);
}

.temperature-option input:checked + span {
    background: var(--accent);

    border-color: var(--accent);

    color: #07100f;
}


/* =========================================================
   QUANTITE
   ========================================================= */

.quantity-selector {
    display: grid;
    grid-template-columns: 48px 1fr 48px;

    height: 46px;

    margin-bottom: 22px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.17);
    border-radius: 4px;
}

.quantity-selector button {
    border: 0;

    background: transparent;
    color: var(--accent);

    font-size: 19px;

    cursor: pointer;

    transition: background .2s ease;
}

.quantity-selector button:hover {
    background: rgba(37,224,213,.08);
}

.quantity-selector input {
    width: 100%;

    border: 0;

    border-left: 1px solid rgba(255,255,255,.12);
    border-right: 1px solid rgba(255,255,255,.12);

    outline: none;

    background: transparent;
    color: white;

    text-align: center;

    font-size: 13px;

    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}


/* =========================================================
   NOM / EMAIL
   ========================================================= */

.customer-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-bottom: 10px;
}

.customer-fields input {
    width: 100%;

    padding: 14px 13px;

    border: 1px solid rgba(255,255,255,.17);
    border-radius: 4px;

    outline: none;

    background: transparent;
    color: white;

    font-family: inherit;
    font-size: 11px;

    transition: border-color .2s ease;
}

.customer-fields input::placeholder {
    color: #656a67;
}

.customer-fields input:focus {
    border-color: var(--accent);
}


/* =========================================================
   BOUTON DEMANDE DE PRIX
   ========================================================= */

.price-button {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px;

    border: 0;
    border-radius: 4px;

    background: var(--accent);
    color: #06100f;

    font-family: inherit;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1.7px;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.price-button:hover {
    transform: translateY(-2px);

    background: #39f1e6;
}

.price-button b {
    font-size: 18px;
    font-weight: normal;
}


/* ================= PETITE NOTE ================= */

.price-note {
    margin: 10px 0 0;

    color: #686d69;

    font-size: 9px;
    line-height: 1.5;
}


/* =========================================================
   PRESENTATION
   ========================================================= */

.product-story {
    border-top: 1px solid rgba(255,255,255,.10);

    background: #0b0d0c;
}

.story-inner {
    max-width: 1500px;
    margin: 0 auto;

    padding: 30px 5vw 55px;
}


/* ================= TITRE PRESENTATION ================= */

.story-heading {
    max-width: 950px;

    margin-bottom: 50px;
}

.story-heading span {
    color: var(--accent);

    font-size: 9px;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.story-heading h2 {
    margin: 18px 0 0;

    font-size: clamp(50px, 8vw, 110px);

    line-height: .85;
    letter-spacing: -.06em;

    text-transform: uppercase;
}


/* ================= TEXTE PRESENTATION ================= */

.story-text {
    display: grid;

    grid-template-columns: 180px minmax(0, 650px);

    gap: 70px;

    margin-bottom: 45px;

    padding-top: 20px;

    border-top: 1px solid var(--line);
}

.story-number {
    color: var(--accent);

    font-size: 9px;
    letter-spacing: 2px;
}

.story-copy h3 {
    margin: 0 0 25px;

    font-size: 32px;
    line-height: 1;

    text-transform: uppercase;
}

.story-copy p {
    margin: 0 0 18px;

    color: #a1a6a2;

    font-size: 14px;
    line-height: 1.7;
}


/* ================= GRANDE IMAGE PRESENTATION ================= */

.story-image {
    width: 100%;

    aspect-ratio: 16 / 6;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 7px;

    background: #111;
}

.story-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   CARACTERISTIQUES
   ========================================================= */

.product-specs {
    background: var(--bg);
}

.specs-inner {
    max-width: 1500px;
    margin: 0 auto;

    /*
       Peu d'espace entre la présentation
       et les caractéristiques.
    */

    padding: 45px 5vw 100px;
}


/* ================= TITRE CARACTERISTIQUES ================= */

.specs-head {
    margin-bottom: 38px;
}

.specs-head > span {
    display: block;

    margin-bottom: 14px;

    color: var(--accent);

    font-size: 9px;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.specs-head h2 {
    margin: 0;

    color: white;

    font-size: clamp(38px, 5vw, 68px);

    line-height: .95;
    letter-spacing: -.045em;

    text-transform: uppercase;
}


/* ================= GRILLE CARACTERISTIQUES ================= */

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--line);
}

.spec {
    min-height: 135px;

    padding: 23px 20px 28px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec:nth-child(4n) {
    border-right: 0;
}

.spec span {
    display: block;

    min-height: 28px;

    margin-bottom: 17px;

    color: #777d79;

    font-size: 8px;
    line-height: 1.4;

    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.spec strong {
    color: white;

    font-size: clamp(18px, 1.7vw, 25px);

    font-weight: normal;
    line-height: 1.15;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 950px) {

    .product-main {
        grid-template-columns: 1fr;

        gap: 35px;

        position: relative;
    }

    .product-main-image {
        height: auto;

        aspect-ratio: 4 / 3;
    }

    .story-text {
        grid-template-columns: 100px 1fr;

        gap: 30px;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .spec:nth-child(4n) {
        border-right: 1px solid var(--line);
    }

    .spec:nth-child(2n) {
        border-right: 0;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .product-page {
        padding-top: 90px;
    }


    /* RETOUR */

    .product-back {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* PRODUIT */

    .product-main {
        padding: 0 20px 45px;

        gap: 35px;
    }


    /* GALERIE */

    .product-thumbs {
        gap: 7px;
    }


    /* TITRE */

    .product-info h1 {
        font-size: 52px;
    }


    /* FORMULAIRE */

    .customer-fields {
        grid-template-columns: 1fr;
    }


    /* PRESENTATION */

    .story-inner {
        padding: 55px 20px 40px;
    }

    .story-heading {
        margin-bottom: 45px;
    }

    .story-text {
        grid-template-columns: 1fr;

        gap: 20px;

        margin-bottom: 40px;
    }

    .story-image {
        aspect-ratio: 4 / 3;
    }


    /* CARACTERISTIQUES */

    .specs-inner {
        padding: 40px 20px 75px;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .spec {
        min-height: 120px;

        padding: 20px 13px 23px;
    }

    .spec strong {
        font-size: 18px;
    }

}