/* Charger Montserrat depuis les fichiers locaux */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.eot');
    src: url('../fonts/Montserrat-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Montserrat-Regular.woff2') format('woff2'),
         url('../fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.eot');
    src: url('../fonts/Montserrat-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Montserrat-Bold.woff2') format('woff2'),
         url('../fonts/Montserrat-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Light.eot');
    src: url('../fonts/Montserrat-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Montserrat-Light.woff2') format('woff2'),
         url('../fonts/Montserrat-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

* {
    border-radius: 0 !important;
}

a:focus,
button:focus {
    outline: none;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #000000;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.container {
    margin: auto;
    width: 100%;
    max-width: 780px;
    padding: 0px;
}

.header {
    color: #ffffff;
    height: auto;
    background-color: #cd73ae;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
    width: 100%;
}

.header-content {
    width: 100%;
    max-width: 780px;
    padding-right: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
}

.header a:hover {
    opacity: 0.8;
}

.header a.separator {
    margin: 0 5px;
    opacity: 0.7;
}

.header-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.index-title {
    text-align: center;
    color: #2b2d42;
    padding-top: 60px;
    padding-bottom: 40px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.index-bloc {
    border: solid 5px;
    border-radius: 20px !important;
    -webkit-border-radius: 20px !important;
    -moz-border-radius: 20px !important;
    border-top-color: #97d3dd;
    border-right-color: #f3ea5d;
    border-bottom-color: #f3ea5d;
    border-left-color: #97d3dd;
    width: 780px;
    max-width: 90%;
    text-align: center;
    padding: 30px;
    margin: auto;
    margin-bottom: 30px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.cgu {
    color: #59595a;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

.cgu p {
    margin-bottom: 15px;
}

.cgu a {
    color: #59595a;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    border-bottom: 1px solid #59595a;
    transition: opacity 0.2s;
}

.cgu a:hover {
    opacity: 0.7;
}

.form-group {
    text-align: center;
    margin-top: 25px;
}

.submit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
    max-width: 100%;
    height: auto;
}

.submit-btn:hover {
    opacity: 0.8;
}

.submit-btn img {
    max-width: 100%;
    height: auto;
}

.footer {
    background-color: #2b2d42;
    margin-top: auto;
    border-top: 1px solid #1a1c2e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    width: 100%;
    padding: 20px 0;
}

.footer-content {
    width: 100%;
    max-width: 780px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.footer-links {
    flex: 1 1 auto;
    text-align: center;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-links a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Modal Styles */
.modal-content {
    border: 1px solid #ddd;
    border-radius: 8px !important;
}

.modal-header {
    background-color: #2b2d42;
    color: white;
    border-bottom: 1px solid #1a1c2e;
    border-radius: 8px 8px 0 0 !important;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    color: #59595a;
    line-height: 1.6;
    font-weight: 400;
    text-align: justify;
}

.modal-body .article {
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2b2d42;
    font-size: 14px;
}

.modal-body .content {
    margin-bottom: 15px;
    font-weight: 400;
}

.modal-body .content p {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 400;
}

.modal-body .content ul {
    margin: 10px 0 10px 20px;
    font-size: 13px;
}

.modal-body .content li {
    margin-bottom: 5px;
    font-weight: 400;
}

.modal-footer {
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    border-radius: 0 0 8px 8px !important;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding-right: 10px;
        font-size: 12px;
    }

    .index-title {
        padding-top: 40px;
        padding-bottom: 25px;
        font-size: 20px;
    }

    .index-bloc {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin-bottom: 20px;
    }

    .cgu {
        font-size: 14px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo,
    .footer-links {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-links a {
        display: inline;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .index-title {
        font-size: 18px;
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .index-bloc {
        padding: 15px;
        border-width: 3px;
    }

    .cgu {
        font-size: 13px;
        text-align: center;
    }

    .footer {
        padding: 15px;
    }

    .footer-links a {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
}
