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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 800px;
    text-align: center;
}


/* Logo container */
.logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* <-- Ajout pour le centrage vertical */
    gap: 20px; /* <-- optionnel : pour aérer horizontalement */
    padding: 20px 0;
}

.logo img, .secondary-logo {
    max-width: 100%;
}
.logo img {
    width: 90%;
}
.logo {
    position: relative; 
}

.secondary-logo {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.secondary-logo:hover {
    transform: scale(1.05);
    filter: brightness(0.85) sepia(1) hue-rotate(-20deg) saturate(2);
    cursor: pointer;
}


.title {
    font-size: 20px;
    color: #000000;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 10px 0;
}

.footer {
    font-size: 11px;
    color: #cccccc;
    text-align: center;
    line-height: 1.5;
}
.footer a.mention-orga {
    text-decoration: none;
}
.footer a.mention-orga strong {
    color: #0070c0;
}
.footer a.mention-orga:hover strong {
    text-decoration: underline;
}

.contact-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 15px 0 10px 0;
    position: relative;
}
.contact-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #ed631c;
    margin: 8px auto 0;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.1);
    background-color: #fff;
    border-radius: 10px;
}
form label {
    margin: 10px 0 5px 0;
    display: block;
}
.hidden-label {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
form input, form textarea {
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #000; 
    background-color: #fff;
    color: #000;
    transition: background-color 0.3s ease-in-out;
}
form input:focus, form textarea:focus {
    background-color: #f9f9f9;
    border-color: #ed631c;  /* Change border on focus */
}
form textarea {
    resize: vertical;
}
form input[type="submit"] {
    margin-top: 10px;
    background-color: #000; 
    color: #ed631c;
    cursor: pointer;
    font-size: 15px;
    padding: 10px;
    border: none;
    border-radius: 5px;
}
form input[type="submit"]:hover {
    background-color: #ed631c;
    color: #000;
    transition: background-color 0.3s ease-in-out;
}

.coeur-numerique {
    margin-top: 15px;
    margin-bottom: 5px;
}

.coeur-numerique p {
    font-size: 11px;
    color: #999;
    margin: 10px 0;
    text-align: center;
    line-height: 1.4;
}


/* Media Queries for responsive design */
@media (max-width: 1000px) {
    body {
        font-size: 18px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: auto;
    }

    .title {
        font-size: 18px;
    }

    .logo-container {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .logo {
        margin-top: 20px;
    }

    .secondary-logo {
        width: 100px; /* plus petit pour empiler joliment */
    }


    .footer {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .logo-container {
        padding: 10px 0;
    }
    .logo img {
        max-width: 90%;
    }

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