

/* ===== Global ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    padding-bottom: 160px; /* Espace pour le footer */
}

/* ===== Header ===== */
header {
    background: linear-gradient(135deg, #2B3E4F 0%, #1a2836 100%);
    color: #fff;
    padding: 0.8rem 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.shrink {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== Main Sections ===== */
main {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section h2 {
    position: sticky;
    top: 50px;
    background-color: #fff;
    padding: 0.8rem 1rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: 8px 8px 0 0;
    z-index: 10;
    font-size: 1.3rem;
    color: #2B3E4F;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

section h2.sticky {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section p, section ul {
    margin-bottom: 1rem;
}

section ul {
    padding-left: 1.5rem;
}

section li {
    margin-bottom: 0.5rem;
    position: relative;
}

section li:before {
    content: "•";
    color: #4CB050;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

a {
    color: #4CB050;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3a9a3d;
    text-decoration: underline;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #2B3E4F 0%, #1a2836 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

footer.show {
    transform: translateY(0);
}

footer .accept-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

footer input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
    flex-shrink: 0;
}

footer label {
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.4;
}

footer button {
    background: linear-gradient(to right, #4CB050, #3a9a3d);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 250px;
}

footer button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

footer button:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

footer p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body {
        padding-bottom: 180px;
    }
    
    section {
        padding: 1.2rem;
    }
    
    header {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    header.shrink {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    section h2 {
        top: 45px;
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
        margin: -1.2rem -1.2rem 1.2rem -1.2rem;
    }
    
    footer .accept-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    footer label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 200px;
    }
    
    main {
        padding: 1rem;
    }
    
    section {
        padding: 1rem;
    }
    
    section h2 {
        top: 40px;
        font-size: 1rem;
        padding: 0.5rem 1rem;
        margin: -1rem -1rem 1rem -1rem;
    }
    
    footer {
        padding: 1rem;
    }
    
    footer button {
        width: 90%;
        padding: 0.6rem;
    }
    
    footer label {
        font-size: 0.85rem;
    }
}