/* Reset et base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: #000; text-decoration: none; transition: color 0.3s; }
a:hover { color: #E74C3C; }

/* Header */
#main-header { background: #000; padding: 15px 5%; position: sticky; top: 0; z-index: 1000; }
.header-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo-link { display: block; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 10px rgba(255,0,0,0); transition: all 0.3s; }
.logo-link:hover { box-shadow: 0 0 30px rgba(255,0,0,0.8), inset 0 0 20px rgba(255,0,0,0.5); transform: scale(0.95); }
.logo { width: 100%; height: auto; }
.header-right { display: flex; align-items: center; gap: 15px; }
.btn { padding: 10px 20px; border: none; border-radius: 30px; font-weight: bold; transition: all 0.3s; cursor: pointer; }
.btn-login, .btn-account, .btn-logout { background: #E74C3C; color: #fff; }
.btn-login:hover, .btn-account:hover, .btn-logout:hover { box-shadow: 0 0 15px #E74C3C, inset 0 0 10px #fff; transform: scale(0.95); }
.burger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.burger span { width: 30px; height: 4px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* Navigation desktop */
.nav-desktop ul { display: flex; justify-content: center; list-style: none; margin: 15px 0 0; gap: 30px; }
.nav-desktop ul li a { color: #fff; font-weight: bold; padding: 8px 15px; border-radius: 20px; transition: 0.3s; }
.nav-desktop ul li a:hover { background: #E74C3C; color: #fff; box-shadow: 0 0 15px #E74C3C; }

/* Mobile menu */
.nav-mobile { display: none; background: #000; padding: 20px; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li { margin: 10px 0; }
.nav-mobile ul li a { color: #fff; font-weight: bold; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Main */
main {
    flex: 1;
    padding: 40px 5%;
    /* min-height: 70vh; supprimé car remplacé par flex:1 */
}

/* Hero, services, etc. */
.hero { text-align: center; padding: 60px 0; background: #f9f9f9; border-radius: 20px; margin-bottom: 40px; }
.hero h1 { font-size: 2.5rem; color: #000; }
.hero p { font-size: 1.2rem; margin: 20px 0; }

/* Boutons primaires */
.btn-primary { background: #E74C3C; color: #fff; padding: 15px 30px; border-radius: 30px; font-weight: bold; transition: all 0.3s; display: inline-block; }
.btn-primary:hover { box-shadow: 0 0 20px #E74C3C, inset 0 0 10px #fff; transform: scale(0.95); }

/* ===== ACTUALITÉS - LISTE ===== */
.news-list-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #E74C3C;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    align-items: stretch;
    border: 2px solid #E74C3C;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.news-card-image {
    flex: 0 0 30%;
    max-width: 30%;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.news-card-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.news-card-title a {
    color: #000;
    transition: color 0.3s;
}

.news-card-title a:hover {
    color: #E74C3C;
}

.news-card-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-card-footer {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
}

.news-card-footer .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== ACTUALITÉS - ARTICLE COMPLET ===== */
.news-article-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.article-image-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.article-full-img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #E74C3C;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.25);
}

.article-full-title {
    text-align: center;
    font-size: 2rem;
    color: #000;
    margin-bottom: 10px;
}

.article-full-meta {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.article-full-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #222;
    margin-bottom: 30px;
}

.article-full-content p {
    margin-bottom: 1.2rem;
}

.btn-back {
    display: inline-block;
    background: #E74C3C;
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-back:hover {
    box-shadow: 0 0 20px #E74C3C;
    transform: scale(0.95);
    color: #fff;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 30px 5%;
    text-align: center;
    flex-shrink: 0; /* Empêche le footer de rétrécir */
}

footer a { color: #E74C3C; margin: 0 10px; }
footer a:hover { color: #fff; }

/* Scroll top */
.scroll-top { position: fixed; bottom: 30px; right: 30px; background: #E74C3C; color: #fff; width: 50px; height: 50px; border-radius: 50%; border: none; font-size: 24px; box-shadow: 0 0 10px rgba(0,0,0,0.3); transition: all 0.3s; opacity: 0; pointer-events: none; cursor: pointer; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: scale(1.1); box-shadow: 0 0 20px #E74C3C; }

/* Formulaires */
.form-group { margin: 15px 0; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 2px solid #E74C3C; border-radius: 10px; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { box-shadow: 0 0 10px #E74C3C; outline: none; }

/* Tables admin */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th { background: #000; color: #fff; padding: 10px; }
td { border: 1px solid #ccc; padding: 10px; }
tr:nth-child(even) { background: #f9f9f9; }

/* Messages */
.success { color: green; background: #d4edda; padding: 10px; border-radius: 10px; }
.error { color: red; background: #f8d7da; padding: 10px; border-radius: 10px; }

/* ===== SERVICES ===== */
.services {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.services-title {
    text-align: center;
    font-size: 2.2rem;
    color: #E74C3C;
    margin-bottom: 40px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-card {
    border: 2px solid #E74C3C;
    border-radius: 15px;
    padding: 35px 30px;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-title {
    font-size: 2rem;
    color: #000;
    margin-bottom: 15px;
}

.service-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 25px auto;
    max-width: 600px;
    text-align: left;
    display: inline-block;
}

.service-features li {
    padding: 6px 0;
    font-size: 1rem;
    color: #222;
    border-bottom: 1px dashed #eee;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li strong {
    color: #E74C3C;
}

.service-actions {
    margin-top: 10px;
}

.service-actions .btn-primary {
    padding: 14px 35px;
    font-size: 1.05rem;
}
/* ===== PAGES LÉGALES ===== */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.legal-title {
    text-align: center;
    font-size: 2.2rem;
    color: #E74C3C;
    margin-bottom: 10px;
}

.legal-update {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-content h2 {
    color: #E74C3C;
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 2px solid #E74C3C;
    padding-bottom: 8px;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #222;
}

.legal-content ul, .legal-content ol {
    margin: 10px 0 20px 25px;
    line-height: 1.8;
}

.legal-content ul li, .legal-content ol li {
    margin-bottom: 5px;
}

.legal-content .highlight {
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #856404;
}

.retractation-form {
    background: #f9f9f9;
    border: 2px solid #E74C3C;
    border-radius: 15px;
    padding: 25px 30px;
    margin: 20px 0;
}

.retractation-form p {
    margin-bottom: 10px;
}

.legal-contact {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
/* ===== COMMANDE ===== */
.order-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.order-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-left: 4px solid #E74C3C;
    border-radius: 8px;
}

.order-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 5px;
}

.radio-group label {
    font-weight: normal;
    cursor: pointer;
}

.help-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #E74C3C;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
    vertical-align: middle;
}

.help-icon:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 130%;
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: normal;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.help-icon:hover {
    background: #C0392B;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.order-summary {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px 25px;
    margin: 30px 0;
    border: 1px solid #ddd;
}

.order-summary h3 {
    margin-top: 0;
    color: #E74C3C;
}

.order-summary p {
    margin: 8px 0;
}

.order-summary .total {
    font-size: 1.3rem;
    color: #E74C3C;
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.payment-info {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* ===== ADMIN - TABLEAU DE BORD ===== */
.admin-nav .btn.active {
    background: #E74C3C;
    color: #fff;
}

.admin-nav .btn {
    background: #eee;
    color: #000;
    margin: 0 5px;
}
/* ===== ACTIVATION ===== */
.activate {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.activate h1 {
    font-size: 2rem;
    color: #E74C3C;
    margin-bottom: 20px;
}

.activation-message {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.activation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.activation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.activation-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
/* ===== VISUALISATION ===== */
.visualisation {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.visualisation h1 {
    font-size: 2rem;
    color: #E74C3C;
    margin-bottom: 20px;
}

.visu-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #E74C3C;
    text-align: left;
}

.visu-form .form-group {
    margin-bottom: 20px;
}

.visu-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.visu-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.3s;
}

.visu-form input:focus {
    border-color: #E74C3C;
    outline: none;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.visu-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.visu-success {
    background: #d4edda;
    color: #155724;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #c3e6cb;
}

.visu-success p {
    margin: 10px 0;
}

.visu-help {
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .visualisation h1 {
        font-size: 1.5rem;
    }
    .visu-form {
        padding: 20px;
    }
}