:root {
  --apt-color-1: #1a1a1a;
  --apt-color-2: #49494975;
  --apt-color-3: #14223d;
  --apt-accent: #00ffe0;
}

/* --- CONTENEUR PRINCIPAL --- */
.apt-carte-produit {
    display: flex;
    flex-direction: row;
    gap: 20px;
    border-radius: 16px;
    padding: 20px;
    font-family: Arial, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    background-color: var(--apt-color-1);
    /* align-items: stretch est le défaut, ce qui rend les colonnes de même hauteur, 
       mais on va gérer le contenu de l'image pour qu'il ne bouge pas. */
}

/* --- COLONNE GAUCHE : IMAGE (1/3) --- */
.apt-colonne.apt-image {
    /* Force la largeur à 1/3 (33.33%) */
    flex: 0 0 33.33%;
    max-width: 33.33%;
    
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* CORRECTION ICI : On aligne tout en HAUT (flex-start) au lieu de centrer.
       Comme ça, même si la carte s'allonge, l'image reste en haut. */
    justify-content: flex-start; 
    
    position: relative;
    padding: 10px;
    /* On peut ajouter un petit padding-top pour aligner visuellement avec le titre */
    padding-top: 10px; 
}

/* L'image : Cercle blanc */
.apt-image img {
    width: 250px; 
    height: 250px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 25px;
    box-shadow: 0 5px 20px #000000;
    display: block;
    margin: 0 auto; /* Centré horizontalement seulement */
    transition: transform 0.3s ease;
    margin-top: 50px;
    
    /* On s'assure que l'image ne soit pas écrasée */
    flex-shrink: 0; 
}

/* Zoom au survol */
.apt-image img:hover {
    transform: scale(1.05);
}

/* --- COLONNE DROITE : INFOS (2/3) --- */
.apt-colonne.apt-infos {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: center; -> On retire ça pour que le texte commence aussi en haut */
    justify-content: flex-start; 
}

/* --- BANNIÈRE SUPERPOSÉE --- */
.apt-banniere { 
    position: absolute;
    /* On la fixe tout en haut de la colonne */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    
    /* Petit ajustement pour qu'elle "morde" sur le haut si tu veux, sinon mettre margin-top: 0 */
    margin-top: -12px; 
    
    background: #2f2f2ff7;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;      
    transition: all 0.2s ease-in-out;
    font-family: monospace;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.apt-banniere .material-symbols-rounded {
    font-size: 18px;
    line-height: 1;
    color: #00ffe0;
}


/* --- TITRE PRODUIT --- */
.apt-nom {
    font-size: 25px;
    margin: 0 0 20px;
    color: #fff;
    line-height: 1.2;
}

/* --- BLOC PRIX + BOUTON --- */
.apt-prix-bouton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: var(--apt-color-2);
    padding: 12px 10px;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.apt-prix-bouton:hover {
    transform: translateX(6px);
}

.apt-bloc-prix-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 10px;
    line-height: 1.1;
}

.apt-label-prix {
    font-size: 9px;
    text-transform: uppercase;
    color: #cccccc;
    font-weight: normal;
    margin-bottom: 2px;
}

.apt-prix {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

/* --- BOUTON --- */
.apt-btn {
    position: relative;
    background-color: #ff5100;
    color: white;
    padding: 10px 18px;
    font-size: 14px;
    text-decoration: none !important;
    outline: none;
    display: inline-block;
    white-space: nowrap;
    box-shadow: var(--ombre-légère, 0 2px 6px rgba(0, 0, 0, 0.1));
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    z-index: 0;
    text-transform: uppercase;
}

.apt-btn span {
    position: relative;
    z-index: 1;
}

.apt-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.4) 60%,
        transparent 100%
    );
    transform: rotate(-45deg);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.apt-btn:hover,
.apt-btn:focus,
.apt-btn:active {
    background-color: #000;
    color: #ff9900;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
    cursor: pointer;
}

.apt-btn:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(120%);
}

/* --- BLOC NOTE + AVIS --- */
.apt-note-avis {
    display: grid;
    grid-template-columns: 90px auto;
    padding: 10px 0px;
    border-radius: 12px;
    align-items: center;
    gap: 20px;
    color: #fff;
    transition: all 0.2s ease-in-out;
}
.apt-note-avis:hover {
    transform: translateX(6px);
}

.apt-note-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.apt-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2f2f2f;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    width: 100px;
    height: 90px;
    border-radius: 15px;
    padding: 4px;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.apt-note-chiffre {
    line-height: 1;
}

.apt-note-sur {
    font-size: 16px;
    color: #ffffff;
    font-weight: normal;
}

.apt-note-etoiles {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

.apt-note-etoiles .material-symbols-rounded {
    font-size: 14px;
    line-height: 1;
    color: #ffdd00;
}

.apt-note-etoiles .etoile-vide {
    color: #ccc;
}

.apt-avis {
    font-size: 15px;
    color: #ffffff;
}

/* --- LISTE DES CATÉGORIES --- */
.apt-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.apt-cat {
    background: var(--apt-color-2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    transition: background 0.2s ease;
    text-decoration: none;
}

.apt-cat:hover {
    color: #fff;
    background: #e35200;
}

.apt-cat-icon {
    font-size: 20px;
    line-height: 1; 
}

/* --- LISTE DES CARACTÉRISTIQUES --- */
.apt-caracteristiques-card {
    overflow: hidden;
}

.apt-caracteristiques {
    max-height: 7em;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: max-height 0.5s ease;
}

.apt-caracteristiques-card:hover .apt-caracteristiques {
    max-height: 1000px;
}

.apt-carac-item {
    display: flex;
    justify-content: space-between;
    background: var(--apt-color-2);
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 13px;
    color: #dddddd;
    transition: background 0.2s ease;
}

.apt-carac-item:hover {
    background-color: #e35200;
}

.apt-carac-libelle {
    font-weight: bold;
    color: #ffffff;
}

.apt-carac-item:hover .apt-carac-libelle {
    color: #fff;
} 

.apt-carac-valeur {
    color: var(--apt-accent);
}

.apt-carac-item:hover .apt-carac-valeur {
    font-weight: bold;
    color: #fff;
} 

/* --- VERSION MOBILE (RESPONSIVE) --- */
@media (max-width: 1000px) {
    .apt-carte-produit {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .apt-colonne.apt-image,
    .apt-colonne.apt-infos {
        flex: auto;
        width: 100%;
        max-width: 100%;
    }
    
    .apt-image img {
        width: 160px;
        height: 160px;
        padding: 15px;
    }
    
    .apt-banniere {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        margin-top: -12px;
    }

    .apt-nom {
        font-size: 22px;
        margin-bottom: 15px;
        text-align: center;
    }

    .apt-prix-bouton {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .apt-bloc-prix-container {
        align-items: center;
        margin-left: 0;
    }

    .apt-prix {
        font-size: 18px;
        text-align: center;
    }

    .apt-btn {
        font-size: 13px;
        padding: 8px 14px;
        width: 100%;
        text-align: center;
    }

    .apt-note-avis {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .apt-categories {
        justify-content: center;
    }

    .apt-caracteristiques {
        margin-top: 10px;
    }
    
    .apt-carac-item {
        padding: 6px 10px;
    }
}