/* ---- Styles de base ---- */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #111;
    color: #fff;
    transition: background 0.3s ease;
}

header {
    background: #000;
    color: #ff6600;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    nav a {
        color: #ff6600;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        nav a:hover {
            color: #fff;
        }

main {
    padding: 2rem 1.5rem;
}

/* ---- Pied de page ---- */
footer {
    background: #000;
    color: #999;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}
/* ---- Produit ---- */
.product-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background-color: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(255, 165, 0, 0.1);
    box-sizing: border-box;
}


.product-image {
    flex: 1 1 300px;
    text-align: center;
}

    .product-image img {
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(255, 165, 0, 0.3);
        transition: transform 0.3s ease;
    }

        .product-image img:hover {
            transform: scale(1.02);
        }

.product-info {
    flex: 1 1 350px;
    max-width: 500px;
    background: #fff;
    color: #222;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(255, 165, 0, 0.2);
}

    .product-info h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: #ff6600;
    }

    .product-info .price {
        font-size: 1.3rem;
        font-weight: bold;
        color: #ff6600;
        margin-bottom: 1rem;
    }

/* ---- Formulaire produit ---- */
.product-form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #333;
}

.product-form input,
.product-form select {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .product-form input:focus,
    .product-form select:focus {
        border-color: #ff6600;
        outline: none;
    }

/* ---- Encadrés ---- */
.product-form fieldset {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
    background: #fefefe;
}

.product-form legend {
    font-weight: bold;
    color: #ff6600;
    font-size: 1.1rem;
}

/* ✅ Alignement propre des checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
}

    .checkbox-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #ff6600;
        cursor: pointer;
    }

    .checkbox-row label {
        cursor: pointer;
        font-weight: 500;
        color: #333;
        user-select: none;
    }

/* Champs désactivés */
.product-form input[disabled] {
    background: #f8f8f8;
    color: #999;
    cursor: not-allowed;
}

/* ---- Bouton principal ---- */
button {
    margin-top: 2rem;
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6600, #ff8800);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

    button:hover {
        background: linear-gradient(135deg, #e65c00, #ff6600);
        transform: translateY(-2px);
    }


/* ---- Responsive & Animations ---- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }

    .image-box,
    .form-box {
        width: 100%;
    }

    .form-box {
        padding: 1.5rem;
    }
}

/* ---- Animations sur les champs ---- */
.form-box input,
.form-box select,
.form-box button {
    transition: all 0.3s ease;
}

    .form-box input:focus,
    .form-box select:focus {
        border-color: #ff6600;
        box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
    }

    .form-box button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
    }

/* ---- Gobelet personnalisé ---- */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    box-sizing: border-box;
}


.image-box {
    flex: 1 1 300px;
    text-align: center;
}

    .image-box img {
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
        transition: transform 0.3s ease;
    }

        .image-box img:hover {
            transform: scale(1.02);
        }

.form-box {
    flex: 1 1 350px;
    background: #fff;
    color: #222;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2);
}

    .form-box h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        color: #ff6600;
    }

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 1rem;
}

.form-box label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
    color: #333;
}

.form-box input,
.form-box select {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 1rem;
}

    .form-box input:focus,
    .form-box select:focus {
        border-color: #ff6600;
        outline: none;
    }

fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    background: #fefefe;
}

legend {
    font-weight: bold;
    color: #ff6600;
    font-size: 1.1rem;
}

.form-box button {
    margin-top: 2rem;
    width: 100%;
    padding: 0.8rem;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .form-box button:hover {
        background-color: #e65c00;
        transform: translateY(-2px);
    }

/* ---- Success ---- */
.card-light {
    background: #fff;
    color: #222;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Animation d’apparition ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.8s ease-out both;
}
/* ---- Animation de validation ---- */
@keyframes pulseSuccess {
    0% {
        transform: scale(1);
        background-color: #ff6600;
    }

    50% {
        transform: scale(1.05);
        background-color: #00cc66;
    }

    100% {
        transform: scale(1);
        background-color: #ff6600;
    }
}

button.validating {
    animation: pulseSuccess 0.6s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Page Compte ---- */
.account-card {
    background: #1a1a1a;
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
    max-width: 600px;
    margin: 2rem auto;
}

    .account-card h2 {
        color: #ff6600;
        margin-bottom: 1rem;
    }

    .account-card p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

/* ==== Hero Section simplifiée ==== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #111, #000);
    padding: 6rem 2rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/img/strava_map_bg.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: #ff6600;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 3rem;
}
/* ==== Étapes horizontales avec ligne orange animée ==== */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    margin-bottom: 3.5rem;
    padding-bottom: 3rem; /* espace sous les étapes */
}

    /* ✅ Ligne orange animée seule */
    .steps::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 8%;
        height: 3px;
        width: 0;
        background: linear-gradient(90deg, #ff7a00, #ffb347);
        border-radius: 3px;
        z-index: 1;
        transition: width 1s ease;
    }

    /* Largeur selon progression */
    .steps.progress-1::after {
        width: 33%;
    }

    .steps.progress-2::after {
        width: 66%;
    }

    .steps.progress-3::after {
        width: 84%;
    }

/* ==== Étapes ==== */
.step {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

    .step.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .step:nth-child(1) {
        transition-delay: 0.1s;
    }

    .step:nth-child(2) {
        transition-delay: 0.3s;
    }

    .step:nth-child(3) {
        transition-delay: 0.5s;
    }

    .step:hover {
        transform: translateY(-5px);
    }

/* ==== Cercles ==== */
.circle {
    background: linear-gradient(135deg, #ff7a00, #ffb347);
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

/* ==== Texte ==== */
.step-text h3 {
    margin: 0.5rem 0 0.4rem;
    font-size: 1.1rem;
    color: #fff;
}

.step-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
}

/* ==== Bouton principal ==== */
.btn-cta {
    background: linear-gradient(135deg, #ff6600, #ff8800);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

    .btn-cta:hover {
        background: linear-gradient(135deg, #e65c00, #ff6600);
        transform: translateY(-4px);
    }

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
        padding-bottom: 0;
    }

        .steps::after {
            content: none;
        }

    .step {
        width: 90%;
    }
}


/* ==== Navbar active link ==== */
nav a.active {
    border-bottom: 2px solid #ff6600;
    padding-bottom: 0.2rem;
}

/* ==== Responsive header ==== */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px; /* optionnel si tu veux limiter le contenu central sur grand écran */
    margin: 0 auto;
    box-sizing: border-box;
}

.logo a {
    text-decoration: none;
    color: #ff6600;
    font-weight: bold;
    font-size: 1.5rem;
}

.logout-btn {
    color: #ccc;
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ==== Page À propos ==== */
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 2rem;
    background: #111;
    color: #fff;
    animation: fadeInUp 0.8s ease-out both;
}

.about-text {
    flex: 1 1 400px;
    max-width: 550px;
}

    .about-text h2 {
        color: #ff6600;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .about-text p {
        color: #ddd;
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

.about-cta {
    margin-top: 2rem;
}

    .about-cta .btn-cta {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

.about-image {
    flex: 1 1 350px;
    text-align: center;
}

    .about-image img {
        max-width: 100%;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(255, 165, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .about-image img:hover {
            transform: scale(1.03);
            box-shadow: 0 10px 25px rgba(255, 165, 0, 0.35);
        }

/* Responsive */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-text, .about-image {
        max-width: 90%;
    }

        .about-text h2 {
            font-size: 1.8rem;
        }
}
/* ==== Section Concept (Accueil) ==== */
.concept-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 4rem 0;
}

.concept-text {
    flex: 1 1 400px;
}

.concept-image {
    flex: 1 1 400px;
    text-align: center;
}

    .concept-image img {
        max-width: 100%;
        border-radius: 16px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        transition: transform 0.4s ease;
    }

        .concept-image img:hover {
            transform: scale(1.03);
        }


/* ==== CTA Section ==== */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #000, #111);
    padding: 5rem 2rem;
    color: #fff;
}

    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

/* ==== Page À propos (Qui sommes-nous) ==== */
.about-us-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
}

    .about-us-section h2 {
        color: #ff6600;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .about-us-section p {
        font-size: 1.1rem;
        color: #ddd;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        text-align: justify;
    }

.about-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2);
    text-align: center;
    flex: 1 1 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .value-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
    }

    .value-card h3 {
        color: #ff6600;
        margin-bottom: 0.5rem;
    }

@media (max-width: 768px) {
    .concept-section, .about-values {
        flex-direction: column;
        text-align: center;
    }
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

    .pagination span {
        color: #ccc;
        font-size: 1rem;
    }

    .pagination a.btn-cta {
        padding: 0.6rem 1.2rem;
        background: linear-gradient(135deg, #ff6600, #ff8800);
        color: white;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: background 0.3s ease, transform 0.2s ease;
    }

        .pagination a.btn-cta:hover {
            background: linear-gradient(135deg, #e65c00, #ff6600);
            transform: translateY(-2px);
        }
/* ==== Barre de filtres ==== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(255, 165, 0, 0.1);
}

    .filters input,
    .filters select {
        padding: 0.5rem 0.8rem;
        border: 1px solid #333;
        border-radius: 6px;
        background: #111;
        color: #fff;
        font-size: 0.95rem;
    }

        .filters input::placeholder {
            color: #777;
        }

    .filters button {
        padding: 0.6rem 1rem;
        background: linear-gradient(135deg, #ff6600, #ff8800);
        border: none;
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .filters button:hover {
            background: linear-gradient(135deg, #e65c00, #ff6600);
        }

/* ==== Liste d'activités ==== */
.activities-list {
    list-style: none;
    padding: 0;
}

    .activities-list li {
        background: #1a1a1a;
        color: #fff;
        padding: 1rem;
        margin-bottom: 0.8rem;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .activities-list li b {
            color: #ff8800;
        }

    .activities-list a.import-link {
        text-decoration: none;
        color: #ff6600;
        font-weight: 600;
    }

        .activities-list a.import-link:hover {
            color: #fff;
        }

/* Pagination (déjà ajoutée avant) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
input[type="checkbox"] {
    accent-color: #ff6600;
    transform: scale(1.2);
    cursor: pointer;
}
footer {
    background: #000;
    color: #999;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

    footer a {
        color: #ff6600;
        text-decoration: none;
    }

        footer a:hover {
            color: #fff;
        }

/* ==== Cases à cocher et options ==== */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.6rem 0;
    cursor: pointer;
}

    .checkbox-row input[type="checkbox"] {
        transform: scale(1.3);
        accent-color: #ff6600;
    }

#custom-text-box {
    margin-top: 0.8rem;
    animation: fadeIn 0.4s ease forwards;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- LOGO --- */
.logo {
    margin: 0;
    padding: 0;
}

    .logo a {
        display: inline-block;
        text-decoration: none;
    }

.logo-img {
    height: 160px; /* 💥 2x plus grand qu'avant */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

    /* effet de zoom léger au survol */
    .logo-img:hover {
        transform: scale(1.05);
    }

/* --- ALIGNEMENT HEADER --- */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* --- Responsive (mobile) --- */
@media screen and (max-width: 768px) {
    .logo-img {
        height: 120px; /* taille mobile adaptée */
    }

    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav {
        text-align: center;
    }
}
/* ✅ Empêche tout débordement horizontal global */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* === 🛒 Tableau du panier cohérent sur toutes tailles === */
.cart-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    min-width: 750px; /* ✅ un peu plus large que mobile */
    border-collapse: collapse;
    color: #222;
    text-align: center;
}

    .cart-table th, .cart-table td {
        padding: 0.9rem;
        border-bottom: 1px solid #ddd;
        white-space: nowrap;
    }

    .cart-table th {
        background: #ff6600;
        color: #fff;
        font-weight: 600;
    }

    .cart-table tr:last-child td {
        border-bottom: none;
    }

/* === 🧾 Résumé du panier === */
.cart-summary {
    background: #fff;
    color: #222;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

    .cart-summary hr {
        border: 1px solid #eee;
        margin: 1rem 0;
    }

    .cart-summary .cart-total {
        font-size: 1.1rem;
        font-weight: 600;
        color: #ff6600;
    }

/* === 🧭 Header responsive sans menu mobile === */
header {
    background: #000;
    color: #ff6600;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(255,165,0,0.2);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.logo-img {
    height: 110px;
    width: auto;
}

/* Navigation toujours visible */
nav {
    display: flex;
    flex-wrap: wrap; /* ✅ les liens passent sur plusieurs lignes */
    justify-content: center;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-top: 0.5rem;
}

    nav a {
        color: #ff6600;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        transition: background 0.3s ease, color 0.3s ease;
    }

        nav a:hover,
        nav a.active {
            color: #fff;
            background: rgba(255,255,255,0.1);
        }

/* Supprime le bouton burger */
.menu-toggle {
    display: none !important;
}

/* ✅ Empêche tout débordement horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 📱 Ajustements mobile */
@media screen and (max-width: 768px) {
    .logo-img {
        height: 90px;
    }

    nav {
        gap: 0.4rem 0.6rem;
    }

        nav a {
            font-size: 0.9rem; /* ✅ liens légèrement plus petits */
            padding: 0.25rem 0.5rem;
        }
}

/* 📱 Encore plus petit (téléphones étroits < 480px) */
@media screen and (max-width: 480px) {
    nav a {
        font-size: 0.8rem; /* ✅ texte compact mais lisible */
        padding: 0.2rem 0.4rem;
    }

    .logo-img {
        height: 80px;
    }
}

