/* =========================
   RESET & VARIABLES
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #f3f4f6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--red);
}

h2:not(.article-header__title, .modal__title) {
    color: var(--surface);
    background: var(--red);
    padding: 0.2rem 0.5rem;
    width: fit-content;
    transform: rotate(-2deg);
    box-shadow: 4px 4px 0px #364954;
    margin: 3rem 0;
}

hr {
    border-top: 1px solid white;
    width: 50%;
    margin: 1rem;
}

.product-card__icon svg, .product-card__icon img {
    height: 40px;
}

button {
    font: inherit;
}

:root {
    /* Couleurs */
    --bg: #e3f4fe;
    --surface: #ffffff;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --red: #ff478f;
    --text: #111827;
    --text-muted: #6b7280;

    /* Layout */
    --max-width: 1120px;

    /* Effets */
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
    --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.12);
    --transition: 150ms ease-out;
}

/* =========================
   LAYOUT
   ========================= */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   NAVIGATION
   ========================= */

.sticky-nav {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 50px;
    background-color: #2f4858;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 50px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo img:hover {
    filter: drop-shadow(0 0 5px #9ca3af);
}

.nav-search {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #6b7280;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s;
    cursor: default;
}

.search-input:focus {
    outline: none;
}

.search-input[readonly] {
    cursor: default;
    user-select: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-icon,
.cart-icon {
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text);
    position: relative;
}

.profile-icon:hover, .cart-icon:hover {
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.cart-icon--active {
    cursor: pointer;
}

.cart-icon--inactive {
    opacity: 0.5;
    cursor: default;
}

.cart-icon--inactive:hover {
    background: transparent;
    color: var(--text);
}

/* Barre de progression */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--red);
    transition: width 0.2s ease-out;
}

/* =========================
   HERO (ZONE PRINCIPALE)
   ========================= */

.hero {
    min-height: 100vh;
    padding: 3.5rem 0 0;
    display: flex;
    align-items: center;
    background: var(--bg);
}

.hero__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.hero__container h4 {
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.hero-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.promo-badge {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff478f 0%, #ff1f6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 71, 143, 0.4);
    animation: promoBounce 2s ease-in-out infinite;
    transform: rotate(-15deg);
}

.promo-badge__text {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes promoBounce {
    0%, 100% {
        transform: rotate(-15deg) scale(1);
    }
    50% {
        transform: rotate(-15deg) scale(1.05);
    }
}

/* Contenu texte à droite du macaron */
.hero-content {
    flex: 1;
}

.hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.hero__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* =========================
   GRILLE ARTICLES
   ========================= */

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* =========================
   ÉCRAN DE FIN
   ========================= */

.section--end {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 5rem 0;
}

.catalog-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: auto;
}

#end-section {
    padding: 0;
    background: #364954;
    color: white;
    font-size: 1.2rem;
}

/* =========================
   CARTE ARTICLE
   ========================= */

.product-card {
    flex: 1 1 calc(33% - 1rem);
    max-width: 300px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 200px; /* Assure une hauteur minimale */
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* États de la carte */
.product-card--read {
    opacity: 0.4;
    filter: grayscale(0.9);
}

.product-card--read:hover {
    border-color: #acb0b6;
    box-shadow: none;
}

.product-card--locked:not(.product-card__badge-locked) {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
    border: 1px solid #fd1d1d;
}

.product-card--locked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.product-card--locked::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.02) 10px,
        rgba(0, 0, 0, 0.02) 20px
    );
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

.product-card--locked:hover {
    border-color: #fd1d1d;
}

.product-card__badge-locked {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    border-radius: 8px;
    border: 2px solid #fd1d1d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Animation de déverrouillage - Style jeu vidéo */
@keyframes unlockShake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    10% {
        transform: translateX(-10px) rotate(-2deg);
    }
    20% {
        transform: translateX(10px) rotate(2deg);
    }
    30% {
        transform: translateX(-10px) rotate(-2deg);
    }
    40% {
        transform: translateX(10px) rotate(2deg);
    }
    50% {
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes unlockGlow {
    0% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        filter: brightness(1);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 8px 40px rgba(37, 99, 235, 0.6),
            inset 0 0 20px rgba(255, 215, 0, 0.3);
        filter: brightness(1.15);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        filter: brightness(1);
    }
}

.product-card--unlocking {
    animation: unlockShake 0.6s ease-in-out, unlockGlow 1.2s ease-in-out;
}

/* Éléments de la carte */
.product-card__stock {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    margin: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    z-index: 5;
}

/* Style pour "Déjà lu" dans une carte lue */
.product-card--read .product-card__stock {
    background: #f3f4f6;
    color: #6b7280;
}

.product-card__stock--low {
    background: #fee2e2;
    color: #991b1b;
}

.product-card__icon {
    width: 60px;
    height: 60px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
}

.product-card__icon svg {
    width: 100%;
    height: 100%;
}

.product-card__meta {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--text-muted);
}

.product-card__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.product-card__cta {
    margin-top: auto;
    width: 100%;
}

/* =========================
   BOUTONS
   ========================= */

.btn {
    padding: 0.4rem 1.2rem;
    font-weight: 400;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.03rem;
}

.btn--primary {
    background: var(--primary);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn--secondary:hover {
    background: #e5e7eb;
}

/* =========================
   ZONE LECTURE ARTICLE
   ========================= */

.section {
    padding: 4rem 0 3rem;
    background: var(--bg);
    position: relative;
}

.section:nth-of-type(even) {
    background: white;
}

/* Motifs en arrière-plan pour chaque article */
.section[data-article-id]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-repeat: repeat;
    background-size: 80px 80px;
    filter: grayscale(1) contrast(0.5);
}

/* Article A1 - Clic & regret (emoji triste) */
.section[data-article-id="a1"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg height="200" width="200" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path d="M36 18c0 9.941-8.059 18-18 18c-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18" fill="%23FFCC4D"/><path d="M23.485 27.879C23.474 27.835 22.34 23.5 18 23.5s-5.474 4.335-5.485 4.379a.496.496 0 0 0 .232.544a.51.51 0 0 0 .596-.06c.009-.007 1.013-.863 4.657-.863c3.59 0 4.617.83 4.656.863a.496.496 0 0 0 .59.073a.5.5 0 0 0 .239-.557z" fill="%23664500"/><path d="M10 30c0 2.762-2.238 5-5 5s-5-2.238-5-5s4-10 5-10s5 7.238 5 10z" fill="%235DADEC"/><path d="M30 13c-5.554 0-7.802-4.367-7.895-4.553a1 1 0 0 1 1.787-.899C23.967 7.694 25.713 11 30 11a1 1 0 1 1 0 2zM6 13a1 1 0 0 1 0-2c5.083 0 5.996-3.12 6.033-3.253c.145-.528.69-.848 1.219-.709c.53.139.851.673.718 1.205C13.921 8.437 12.704 13 6 13z" fill="%23664500"/><ellipse cx="11.5" cy="16.5" fill="%23664500" rx="2.5" ry="3.5"/><ellipse cx="24.5" cy="16.5" fill="%23664500" rx="2.5" ry="3.5"/></svg>');
}

/* Article A7 - Achats sur smartphone */
.section[data-article-id="a7"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg height="200" width="200" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="%23000000" fill-rule="evenodd"><path d="M6 2.5A1.5 1.5 0 0 1 7.5 1h8A1.5 1.5 0 0 1 17 2.5v16a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 6 18.5v-16Z" opacity=".8"/><path d="M4 2A1.5 1.5 0 0 1 5.5.5h9A1.5 1.5 0 0 1 16 2v16a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 4 18V2Zm1.5-.5A.5.5 0 0 0 5 2v16a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5h-9Z"/><path d="M7.5 3a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1Z"/></g></svg>');
}

/* Article A5 - Unboxing (boîte) */
.section[data-article-id="a5"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg height="200" width="200" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M7 22L50 0l43 22l-43 21.001L7 22z" fill="%23FBF063" fill-rule="evenodd"/><path d="M50.003 42.997L7 22v54.28l43.006 21.714l-.003-54.997z" fill="%23F29C1F" fill-rule="evenodd"/><path d="M50 97.994L93.006 76.28V22L50.003 42.997L50 97.994z" fill="%23F0C419" fill-rule="evenodd"/><path d="m27.036 11.705l42.995 21.498l2.263-1.105l-43.047-21.524z" fill="%23F29C1F" fill-rule="evenodd" opacity=".5"/><path d="M21.318 14.674L63.3 36.505l15.99-7.809L35.788 7.271z" fill="%23FFFFFF" fill-rule="evenodd" opacity=".5"/><path d="m63.312 36.505l15.978-7.818v11l-15.978 8.817V36.505z" fill="%23FFFFFF" fill-rule="evenodd" opacity=".5"/></svg>');
}

/* Article A6 - Oiseau de nuit (chouette) */
.section[data-article-id="a6"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg height="200" width="200" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><path d="M100.8 49.5c4.2-10.2.9-16-1-21.2c-1.7-4.6 3-6.9 3-6.9c-1.8 0-3.8-.8-3.8-.8c3.6-2.5 5.8-9.1 5.8-9.1c-2.5 2.3-5.9 2.4-5.9 2.4c5.6-5.4 3.9-12.9 3.9-12.9S97 8.8 86.2 13.5c-8.8 3.8-18.5 4.7-22.1 4.7c-3.6 0-13.3-.9-22.1-4.7C31.1 8.9 25.3 1 25.3 1s-1.8 7.5 3.9 12.9c0 0-3.4-.1-5.9-2.4c0 0 2.1 6.6 5.8 9.1c0 0-2 .8-3.8.8c0 0 4.7 2.3 3 6.9c-1.9 5.2-5.2 10.9-1 21.2c0 0-28.7 47.9 33.6 76.3c1 .5 2.1.7 3.2.7s2.2-.3 3.2-.7c62.2-28.4 33.5-76.3 33.5-76.3z" fill="%23885c52"/><path d="M38.4 81.7c0-13.6 7-21.7 25.6-21.7v55.8s-8.5-.5-14.9-7.6c-5-5.6-10.7-15.7-10.7-26.5z" fill="%23fef6e0"/><path d="M89.6 81.7c0-13.6-7-21.7-25.6-21.7v55.8s8.5-.5 14.9-7.6c5-5.6 10.7-15.7 10.7-26.5z" fill="%23fef6e0"/><circle cx="82.4" cy="41.6" fill="%23bb917a" r="14.7"/><circle cx="82.4" cy="41.6" fill="%23FFFFFF" r="11.3"/><circle cx="82.4" cy="41.6" fill="%232f2f2f" r="6.5"/><circle cx="45.7" cy="41.6" fill="%23bb917a" r="14.7"/><circle cx="45.7" cy="41.6" fill="%23FFFFFF" r="11.3"/><circle cx="45.7" cy="41.6" fill="%232f2f2f" r="6.5"/></svg>');
}

/* Article A4 - Avis vérifiés (étoile) */
.section[data-article-id="a4"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg height="200" width="200" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><path d="m68.05 7.23l13.46 30.7a7.047 7.047 0 0 0 5.82 4.19l32.79 2.94c3.71.54 5.19 5.09 2.5 7.71l-24.7 20.75c-2 1.68-2.91 4.32-2.36 6.87l7.18 33.61c.63 3.69-3.24 6.51-6.56 4.76L67.56 102a7.033 7.033 0 0 0-7.12 0l-28.62 16.75c-3.31 1.74-7.19-1.07-6.56-4.76l7.18-33.61c.54-2.55-.36-5.19-2.36-6.87L5.37 52.78c-2.68-2.61-1.2-7.17 2.5-7.71l32.79-2.94a7.047 7.047 0 0 0 5.82-4.19l13.46-30.7c1.67-3.36 6.45-3.36 8.11-.01z" fill="%23FDD835"/><path d="m67.07 39.77l-2.28-22.62c-.09-1.26-.35-3.42 1.67-3.42c1.6 0 2.47 3.33 2.47 3.33l6.84 18.16c2.58 6.91 1.52 9.28-.97 10.68c-2.86 1.6-7.08.35-7.73-6.13z" fill="%23FFFF8D"/><path d="M95.28 71.51L114.9 56.2c.97-.81 2.72-2.1 1.32-3.57c-1.11-1.16-4.11.51-4.11.51l-17.17 6.71c-5.12 1.77-8.52 4.39-8.82 7.69c-.39 4.4 3.56 7.79 9.16 3.97z" fill="%23F4B400"/></svg>');
}

/* Article A2 - Panier abandonné */
.section[data-article-id="a2"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg height="200" width="200" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="%23000000"><path d="M3.045 11.75c.126.714.303 1.541.51 2.507l.428 2c.487 2.273.731 3.409 1.556 4.076C6.364 21 7.526 21 9.85 21h4.3c2.324 0 3.486 0 4.31-.667c.826-.667 1.07-1.803 1.556-4.076l.429-2c.207-.966.384-1.793.51-2.507H3.045Z" opacity=".5"/><path d="M9.25 14a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z" fill-rule="evenodd"/><path d="M8.33 2.665a.75.75 0 0 1 1.341.67l-1.835 3.67C8.32 7 8.846 7 9.422 7h5.156c.576 0 1.103 0 1.586.005l-1.835-3.67a.75.75 0 0 1 1.342-.67l2.201 4.402c1.353.104 2.202.37 2.75 1.047c.436.539.576 1.209.525 2.136H21c.05 0 .099.005.146.014a13.18 13.18 0 0 1-.19 1.486H3.045a13.081 13.081 0 0 1-.192-1.486A.76.76 0 0 1 3 10.25h-.147c-.051-.927.09-1.597.525-2.136c.548-.678 1.397-.943 2.75-1.047L8.33 2.665Z"/></g></svg>');
}

/* Article A3 - Marketing de l'urgence (éclair) */
.section[data-article-id="a3"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg height="200" width="200" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m459.866 218.346l-186.7.701c-4.619.017-7.618-4.861-5.517-8.975L370.845 8.024c3.103-6.075-4.493-11.949-9.592-7.417L39.948 286.141c-4.221 3.751-1.602 10.732 4.045 10.78l170.444 1.457c4.443.038 7.391 4.619 5.583 8.679L133.317 501.73c-2.688 6.035 4.709 11.501 9.689 7.16l320.937-279.725c4.307-3.753 1.637-10.84-4.077-10.819z" fill="%23FFB636"/></svg>');
}

/* Article A8 - Le dupe (logo lewif) - Utilise une image externe */
.section[data-article-id="a8"]::before {
    background-image: url("lewif.png");
    background-size: 60px 60px;
}

/* Article A9 - Le locker (casier) */
.section[data-article-id="a9"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg height="200" width="200" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><path d="M14.45 4c-1.91 0-3.46 1.55-3.46 3.46v113.07c0 1.91 1.55 3.46 3.46 3.46h99.1c1.91 0 3.46-1.55 3.46-3.46V7.46c0-1.91-1.55-3.46-3.46-3.46h-99.1z" fill="%23607D8B"/><path d="M105.71 62.35H22.29c-2.62 0-4.74-2.12-4.74-4.74V14.93c0-2.62 2.12-4.74 4.74-4.74h83.43c2.62 0 4.74 2.12 4.74 4.74V57.6c0 2.63-2.13 4.75-4.75 4.75zm0 55.46H22.29c-2.62 0-4.74-2.12-4.74-4.74V70.39c0-2.62 2.12-4.74 4.74-4.74h83.43c2.62 0 4.74 2.12 4.74 4.74v42.67c0 2.63-2.13 4.75-4.75 4.75z" fill="%2337474F"/><path d="M51.9 76.33h24.21v13.81H51.9z" fill="%23FAFAFA"/><path d="M74.76 78.87s-1.01 2-1.04 5.1c-.03 2.81 1.47 5.86 1.47 5.86h-22.4s1.39-2.85 1.41-5.48c.02-3.03-1.07-5.48-1.07-5.48h21.63zm1.36-3.15H51.88a2.5 2.5 0 0 0-2.5 2.5v12.27a2.5 2.5 0 0 0 2.5 2.5h24.25a2.5 2.5 0 0 0 2.5-2.5V78.21a2.507 2.507 0 0 0-2.51-2.49z" fill="%23263238"/><path d="M75.47 77.43S74 79.72 74 82.53c0 2.81 1.47 5.86 1.47 5.86H52.53s1.41-2.85 1.41-5.48s-1.41-5.48-1.41-5.48h22.94zm.65-3.15H51.88a2.5 2.5 0 0 0-2.5 2.5v12.27a2.5 2.5 0 0 0 2.5 2.5h24.25a2.5 2.5 0 0 0 2.5-2.5V76.77a2.514 2.514 0 0 0-2.51-2.49z" fill="%239E9E9E"/><path d="M52.32 75.72h8.19" fill="none" stroke="%23C9E3E6" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.576"/><path d="M71.37 109.18H57.98c-4.37 0-7.92-3.54-7.92-7.92v-.72c0-1.06.84-3.5 1.9-3.5c3.6 0 26.02.1 26.27.48c3.36 5.03-1.23 11.65-6.86 11.66z" fill="%23263238"/><path d="M70.51 106.65H57.49c-4.48 0-8.11-3.63-8.11-8.11v-.48c0-1.09.88-1.97 1.97-1.97h25.31c1.09 0 1.97.88 1.97 1.97v.48c-.01 4.48-3.64 8.11-8.12 8.11z" fill="%23607D8B"/><path d="M58.59 99.93c-1.97.18-3.95.26-5.93.23c-.45-.01-2-.2-1.7-1.84c.29-1.6 4.5-1.24 6.12-1.25c5.3-.03 5.92.53 5.92 1.18c0 .68-.53 1.34-4.41 1.68z" fill="%23C9E3E6"/><path d="M51.9 20.87h24.21v13.81H51.9z" fill="%23FAFAFA"/><path d="M74.76 23.41s-1.01 2-1.04 5.1c-.03 2.81 1.47 5.86 1.47 5.86h-22.4s1.39-2.85 1.41-5.48c.02-3.03-1.07-5.48-1.07-5.48h21.63zm1.36-3.15H51.88a2.5 2.5 0 0 0-2.5 2.5v12.27a2.5 2.5 0 0 0 2.5 2.5h24.25a2.5 2.5 0 0 0 2.5-2.5V22.75a2.507 2.507 0 0 0-2.51-2.49z" fill="%23263238"/><path d="M75.47 21.97S74 24.26 74 27.07s1.47 5.86 1.47 5.86H52.53s1.41-2.85 1.41-5.48s-1.41-5.48-1.41-5.48h22.94zm.65-3.15H51.88a2.5 2.5 0 0 0-2.5 2.5v12.27a2.5 2.5 0 0 0 2.5 2.5h24.25a2.5 2.5 0 0 0 2.5-2.5V21.31a2.514 2.514 0 0 0-2.51-2.49z" fill="%239E9E9E"/><path d="M52.32 20.26h8.19" fill="none" stroke="%23C9E3E6" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.576"/><path d="M71.37 53.72H57.98c-4.37 0-7.92-3.54-7.92-7.92v-.72c0-1.06.84-3.5 1.9-3.5c3.6 0 26.02.1 26.27.48c3.36 5.03-1.23 11.65-6.86 11.66z" fill="%23263238"/><path d="M70.51 51.19H57.49c-4.48 0-8.11-3.63-8.11-8.11v-.48c0-1.09.88-1.97 1.97-1.97h25.31c1.09 0 1.97.88 1.97 1.97v.48c-.01 4.48-3.64 8.11-8.12 8.11z" fill="%23607D8B"/><path d="M58.59 44.47c-1.97.18-3.95.26-5.93.23c-.45-.01-2-.2-1.7-1.84c.29-1.6 4.5-1.24 6.12-1.25c5.3-.03 5.92.53 5.92 1.18c0 .68-.53 1.34-4.41 1.68z" fill="%23C9E3E6"/></svg>');
}

.section__inner {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.article-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-header__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-header__text {
    flex: 1;
}

.article-header__title {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

.signature {
    color: var(--text-muted);
    font-weight: bold;
    font-size: 1.25rem;
}

.signature::before {
    content: "par ";
    font-weight: 200;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-body p {
    margin: 0 0 1.2rem;
}

.article-body img {
    margin-bottom: 2rem;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
}

.intro {
    font-size: 1.5rem;
    line-height: 1.85rem;
    font-weight: 300;
}

blockquote {
    font-size: 2rem;
    line-height: 2.3rem;
    border-left: 6px solid var(--primary-dark);
    padding-left: 1rem;
    font-weight: 700;
    margin: 3rem 1rem;
}

.author {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: initial;
    padding-top: 0.5rem;
    font-weight: 300;
}

.emoji {
    font-size: 4rem;
    text-align: center;
}

.link-box {
    background: #fdecf3;
    padding: 1rem;
    margin: 2rem 0 2rem;
    box-shadow: 0px 0px 3px var(--primary);
}

.link-box a {
    font-weight: bolder;
    letter-spacing: 0.05rem;
}

/* Animation changement contenu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-content--loading {
    animation: fadeInUp 0.6s ease-out;
}

/* =========================
   QUESTIONS INTERACTIVES
   ========================= */

.question-block {
    margin: 0 0 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fdecf3 0%, #f9cadc 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid var(--red);
}

.question-block::before {
    content: "Quiz express";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translate(-50%);
    font-size: 0.8rem;
    background: var(--red);
    color: white;
    border-radius: 50px;
    padding: 0.1rem 0.5rem;
}

.question-block__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0c4a6e;
    text-align: center;
}

.question-block__options {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.question-option {
    padding: 0.4rem 0.7rem;
    background: white;
    border: 2px solid #e0f2fe;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #0c4a6e;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    max-width: 48%;
}

.question-option img {
    aspect-ratio: auto;
    height: 55px;
    object-fit: contain;
    margin-bottom: 0;
}

.question-option:hover:not(:disabled) {
    background: #f0f9ff;
    border-color: #0ea5e9;
}

.question-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.question-option--selected {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}

.question-block__feedback {
    text-align: center;
}

.question-block__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0f2fe;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.question-block__feedback-text {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    color: #0c4a6e;
}

.question-block__stats {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-bar {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0f2fe;
    width: calc(50% - 0.5rem);
}

.stat-bar--selected {
    border-color: #0ea5e9;
}

.stat-bar__label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0c4a6e;
}

.stat-bar__container {
    position: relative;
    height: 32px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.stat-bar__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #cacaca 0%, #82999d 100%);
    transition: width 1s ease-out;
}

.stat-bar--selected .stat-bar__fill {
    background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 100%);
}

.stat-bar__percent {
    position: relative;
    z-index: 1;
    margin-left: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* =========================
   MODALE
   ========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
}

.modal {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

#modal-content {
    padding: 1rem;
}

.modal__title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.modal__timer {
    margin: -2rem 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--red);
    border-radius: 8px;
}

.modal__card {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.modal__card .product-card {
    max-width: 320px;
    margin: 0;
    animation: celebrationPulse 2.2s;
}

@keyframes celebrationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.modal__card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-top: 1em;
}

/* =========================
   CREDITS
   ========================= */

.profile-modal__content {
    padding: 0.5rem;
    text-align: center;
}

.profile-modal__content p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.lr-line {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.5rem;
    width: 400px;
    max-width: 100%;
}

.lefty {
    width: 40%;
    text-align: right;
    font-weight: 200;
    color: var(--grey);
}

.righty {
    width: 55%;
    text-align: left;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 960px) {
    .hero-header {
        flex-direction: column-reverse;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 65px;
    }

    .hero__container {
        gap: 2rem;
    }

    .hero-header {
        gap: 1rem;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .btn {
        border-radius: 6px;
    }

    .product-grid {
        gap: 0.5rem;
    }

    .product-card {
        flex: 1 1 45%;
        padding: 0.5rem;
        gap: 0.5rem;
        max-width: 50%;
    }

    .product-card__stock {
        top: 0.5rem;
        right: 0.5rem;
    }

    .product-card__icon {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .product-card__meta {
        margin: 0 0 0.3rem;
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .article-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo img {
        width: 40px;
    }

    .container {
        padding: 0 0.5rem;
    }

    .modal {
        padding: 0.5rem;
    }

    .nav-container {
        padding: 0 0.5rem;
    }

    .nav-search {
        max-width: 230px;
    }

    .nav-right {
        gap: 0;
    }

    .promo-badge {
        width: 80px;
        height: 80px;
    }

    .promo-badge__text {
        font-size: 0.7rem;
    }

    .product-card__icon svg, .product-card__icon img {
        height: auto;
    }

    .emoji {
        font-size: 2rem;
    }

    .catalog-end {
        padding: 2rem 0;
    }

    .hero__container h4 {
        top: -60px;
        width: 100%;
        text-align: center;
    }
}
