:root {
    --primary-color: #2c3e50;
    --secondary-color: hsl(204, 70%, 53%);
    --background-color: #414848;
    --text-color: #ffffff;
    --accent-color: #e74c3c;
    --card-background: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ajouter au début de votre fichier competences.css ou dans un fichier global */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh; /* viewport height */
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

main {
    flex: 1 0 auto; /* Cette propriété est cruciale - elle permet au contenu de s'étendre */
}

footer {
    flex-shrink: 0; /* Empêche le footer de rétrécir */
}

.veille-container {
    padding: 120px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.veille-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

/* Introduction et méthode */
.veille-intro {
    margin-bottom: 4rem;
}

.veille-methode {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.methode-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.methode-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.methode-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.methode-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.methode-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.methode-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Sujets de veille */
.veille-sujets {
    margin-bottom: 4rem;
}

.veille-sujets h2 {
    margin-bottom: 2rem;
}

.sujet-card {
    background-color: var(--card-background);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.sujet-header {
    background-color: var(--primary-color);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sujet-header h3 {
    color: var(--text-color);
    margin: 0;
}

.date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.sujet-content {
    padding: 2rem;
}

.sujet-content > div {
    margin-bottom: 1.5rem;
}

.sujet-content h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.sujet-content ul {
    list-style: none;
    padding-left: 1rem;
}

.sujet-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.sujet-content li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: -1rem;
}

.sujet-sources a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sujet-sources a:hover {
    color: var(--text-color);
}

/* Zone d'ajout de sujet */
.add-sujet-placeholder {
    background-color: rgba(52, 152, 219, 0.1);
    border: 2px dashed var(--secondary-color);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-sujet-placeholder:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

.add-sujet-placeholder i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Newsletter */
.veille-newsletter {
    background-color: var(--card-background);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}

.veille-newsletter h2 {
    margin-bottom: 1rem;
}

.veille-newsletter p {
    margin-bottom: 2rem;
    color: #cccccc;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #2980b9;
}

/* MODALS VEILLE - Amélioration lisibilité et adhérence */
.modal-content {
    background: linear-gradient(120deg,#23272b 80%,#26343a 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.27);
    border: none;
    padding: 0.5rem 0;
}
.modal-header {
    border-bottom: 1px solid #3b3f45;
    background: #1a1d20;
    border-radius: 18px 18px 0 0;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}
.modal-title {
    color: #36b37e;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 3.2rem;
}
.modal-header .btn-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none !important;
    border: none;
    font-size: 1.25rem;
    opacity: 0.85;
    transition: opacity 0.2s;
    color: #fff !important;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer !important;
}
.modal-header .btn-close::after {
    cursor: pointer !important;
}

.modal-header .btn-close::after {
    content: "\00d7";
    font-size: 2.1rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
    background: none;
    border: none;
    box-shadow: none;
    display: block;
}
.modal-header .btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px #51e3a7;
}
.modal-header .btn-close:hover {
    opacity: 1;
    color: #51e3a7 !important;
}

.modal-header .btn-close.close-left {
    left: 1.5rem;
    right: auto;
}
.modal-header .btn-close.close-right {
    right: 1.5rem;
    left: auto;
}
#modalVeilleJS .modal-header .btn-close.close-left {
    left: 0.5rem;
}
#modalVeilleJS .modal-header .btn-close.close-right {
    right: 0.5rem;
}

.modal-title::before {
    content: "\f05a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #51e3a7;
    font-size: 1.2rem;
    margin-right: 0.3rem;
}
.modal-body {
    padding: 2.2rem 2rem 1.5rem 2rem;
}

.veille-article {
    background: rgba(44,62,80,0.92);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(39,174,96,0.07);
    margin-bottom: 2.1rem;
    padding: 1.4rem 1.5rem 1.1rem 1.5rem;
    border: 1px solid #2c3e50;
    position: relative;
}
.veille-article:not(:last-child)::after {
    content: "";
    display: block;
    height: 1.5px;
    width: 80%;
    background: linear-gradient(90deg,#51e3a7 0%,#23272b 100%);
    opacity: 0.18;
    position: absolute;
    left: 10%;
    bottom: -1.1rem;
    border-radius: 2px;
}
.veille-article h6 {
    margin: 0 0 0.6rem 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: #51e3a7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.veille-article h6::before {
    content: "\f0f6";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #51e3a7;
    font-size: 1.1rem;
    margin-right: 0.2rem;
}
.veille-article a {
    color: #51e3a7;
    text-decoration: underline dotted 1.5px #51e3a7;
    font-weight: 600;
    transition: color 0.2s, text-decoration 0.2s;
    word-break: break-word;
}
.veille-article a:hover {
    color: #fff;
    text-decoration: underline solid 2px #fff;
}
.veille-article p {
    font-size: 1.08rem;
    color: #e5e5e5;
    margin-bottom: 0.7rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
}
.veille-article ul, .veille-article ol {
    margin: 0.4rem 0 0.8rem 1.2rem;
    padding: 0 0 0 1.1rem;
}
.veille-article li {
    color: #b6f0d6;
    margin-bottom: 0.25rem;
    font-size: 1.04rem;
    position: relative;
}
.veille-article li::marker, .veille-article ul li::before {
    color: #51e3a7;
    font-size: 1.15em;
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal-body {
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    .modal-content {
        border-radius: 10px;
    }
    .modal-header {
        padding: 0.8rem 1rem 0.8rem 1rem;
    }
    .veille-article {
        padding: 1rem 0.6rem 0.7rem 0.7rem;
    }
}

.btn-veille-modal, button.btn-veille-modal, .btn.btn-veille-modal {
    background: linear-gradient(90deg, #36b37e 0%, #2980b9 100%) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.05rem;
    border: none !important;
    border-radius: 2.2rem !important;
    padding: 0.7rem 2.1rem !important;
    margin: 1.2rem 0.6rem 0.7rem 0 !important;
    box-shadow: 0 2px 12px #36b37e25 !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 0.04em;
    outline: none !important;
    display: inline-block;
    position: relative;
    z-index: 1;
}
.btn-veille-modal:hover, button.btn-veille-modal:hover, .btn.btn-veille-modal:hover, .btn-veille-modal:focus, button.btn-veille-modal:focus, .btn.btn-veille-modal:focus {
    background: linear-gradient(90deg, #51e3a7 0%, #6dd5fa 100%) !important;
    color: #23272b !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 18px #51e3a755 !important;
    text-decoration: none !important;
}

.btn-veille-modal:hover, .btn-veille-modal:focus {
    background: linear-gradient(90deg, #51e3a7 0%, #6dd5fa 100%);
    color: #23272b;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 18px #51e3a755;
    text-decoration: none;
}

.modal-header .btn-close:hover {
    opacity: 1;
    color: #e74c3c !important;
    transform: scale(1.18) rotate(-10deg);
    background: none;
    box-shadow: 0 0 8px #e74c3c33;
    transition: all 0.18s cubic-bezier(.4,1.3,.5,1.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .veille-container {
        padding: 100px 1rem 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .sujet-header {
        flex-direction: column;
        gap: 1rem;
    }
}

main {
    position: relative;
    z-index: 1;
}