@charset "UTF-8";
/* CSS Document */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Espacement pour éviter le chevauchement du header et footer fixes */
body {
    padding-top: 60px;  /* Hauteur du top-banner + marge */
    padding-bottom: 80px; /* Hauteur du footer + marge */
}

/* === Bandeau en haut de la page d'accueil === */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #CAC8D8;
    color: #2E2F73;
    padding: 8px 0;
    text-align: center;
    font-size: 0.9em;
    border-bottom: 1px solid #d0d8f0;
    z-index: 1000;
}

.top-banner a {
    color: #2E2F73;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: color 0.2s;
}

.top-banner a:hover {
    color: #000;
    text-decoration: underline;
}

.banner-separator {
    color: #999;
    margin: 0 8px;
}

/* Version mobile */
@media (max-width: 600px) {
    /* Augmenter le padding pour compenser les éléments fixes */
    body {
        padding-top: 80px;  /* Plus d'espace pour le top-banner sur mobile */
        padding-bottom: 100px; /* Plus d'espace pour le footer sur mobile */
    }
    .top-banner {
        padding: 6px 0;
        font-size: 0.85em;
    }
    .top-banner a {
        display: block;
        margin: 4px 0;
    }
    .banner-separator {
        display: none;
    }
    /* Réduire les marges du container sur mobile */
    .splash-container {
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 30px 20px;
    }
}

/* La suite */

.splash-container {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 200px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

p {
	padding-left: 20%;
	padding-right: 20%;
    font-size: 1.2em;
    margin-bottom: 30px;
}

ul {
	text-align: justify;
}

.NotaBene{
	padding-left: 5%;
	padding-right: 5%;
    font-size: 0.8em;
    margin-bottom: 10px;
	text-align: justify;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #2E2F73;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #CAC8D8;
}

footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}


/* Styles pour le formulaire */
form {
    text-align: left;
    margin-top: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-column {
    flex: 0 0 48%;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"] {
    width: calc(100% - 10px);
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


input[type="submit"] {
    background-color: #2E2F73;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
	align-self: center;
}

input[type="submit"]:hover {
    background-color: #CAC8D8;
}


/* Styles pour le pop-up */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;  /* Durée de la transition augmentée à 0.6s */
}

.popup.show {
    display: block;
    opacity: 1;
}

.popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    /*max-width: 600px;*/
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    transform: translateY(-50px);
    transition: transform 1s;  /* Durée de la transition augmentée à 0.6s */
}

.popup.show .popup-content {
    transform: translateY(0);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Style pour les eMails du bas */


.email-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.email-grid a {
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.email-grid a:hover {
    background-color: #e0e0e0;
}


@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 90px;
    }
    .splash-container {
        padding: 30px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .logo {
        width: 120px;
    }

    h1 {
        font-size: 2em;
    }

    p {
        padding-left: 0%;
        padding-right: 0%;
        font-size: 1em;
    }
    
    .email-grid {
        grid-template-columns: 1fr;
    }
}

/* Style pour le formulaire */

/* Styles pour le formulaire de contact */

.popup-content .contact-form { text-align: left; margin: 0 auto; }

.contact-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin: 12px 0 6px;
    color: #444;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.4);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    margin-top: 15px;
    width: 100%;
    font-size: 1.1em;
    padding: 12px;
    border-radius: 6px;
}

/* === Layout pour les pages de formulaire (sendCert.php, sendMedC.php, etc.) === */
.form-layout body,
.form-layout html {
    height: auto;
    display: block;
    background-color: #f7f7f7;
}

.form-layout .form-page {
    margin: 30px auto;
    max-width: 800px;
    width: 90%;
}


/* === Design du Footer === */
footer {
    background-color: #f8f9fa;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}


.footer-content nav a {
    color: #2E2F73;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: color 0.2s;
}

.footer-content nav a:hover {
    color: #000;
    text-decoration: underline;
}



/* Icône de validation pour champs de formulaire */
.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    font-weight: bold;
    pointer-events: none;
    transition: all 0.3s ease;
}

.validation-icon.success {
    color: #28a745;
}

.validation-icon.error {
    color: #dc3545;
}

/* Wrapper pour input avec validation */
.input-wrapper {
    position: relative;
    display: block;
    margin-bottom: 10px;
}

.input-wrapper input {
    width: 100%;
}

/* Assurer que le parent du champ TVA soit en position relative */
input[name="tva"] {
    padding-right: 35px; /* Espace pour l'icône */
}