@font-face {
    font-family: 'Clipangle';
    src: url('../fonts/Clipangle-SemiBold.ttf') format('truetype');
    font-weight: 600; /* ou bold */
    font-style: normal;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Clipangle', sans-serif;
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
}

.logo-left img, .logo-right img {
    height: 60px;
}

.menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    color: #a0a1a5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Clipangle', sans-serif;
}

.btn-accueil {
    background-color: #956b4a;
}
.btn-accueil:hover {
    background-color: #007EB1;
    transform: scale(1.05);
}

.btn-services {
    background-color: #4a5569;
}
.btn-services:hover {
    background-color: #6c8998;
    transform: scale(1.05);
}

.btn-contact {
    background-color: #6c8998;
}
.btn-contact:hover {
    background-color: #4a5569;
    transform: scale(1.05);
}

.btn-support {
    background-color: #007EB1;
}
.btn-support:hover {
    background-color: #956b4a;
    transform: scale(1.05);
}

main {
    text-align: center;
    padding: 20px;
    flex: 1 0 auto;
    background-color: white;
    font-family: 'Clipangle', sans-serif;
}

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

label.required::after {
    content: "*";
    color: #956b4a;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: white;
    width: 100%;
    max-width: 800px; /* Ou une valeur plus grande selon vos besoins */
    margin: 0 auto;
    padding: 20px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero img {
    margin-bottom: 40px; /* Espace entre le logo et le slogan */
}

.hero h1 {
    color: #a0a1a5;
    font-size: 2em;
}

footer {
    background-color: #0d6b91;
    color: #a0a1a5;
    text-align: center;
    padding: 20px;
    font-family: 'Clipangle', sans-serif;
}
    
footer a {
    color: #a0a1a5;
    text-decoration: none;
}

.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);
}

.popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    position: relative;
}

.popup-logo {
    height: 50px;
    position: absolute;
    left: 0;
}

.popup-title {
    flex: 1;
    text-align: center;
    margin: 0 auto;
    color: #007EB1; /* Couleur par défaut, vous pouvez la changer */
}

.close {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 0;
}

.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px; /* Espace entre les deux éléments */
    margin: 20px;
}

.contact-form-container {
    flex: 0 0 400px; /* Largeur fixe de 400px pour le formulaire */
    min-width: 0;
}

.contact-map {
    flex: 1; /* La carte prend tout l'espace restant */
    width: 600px;
    min-width: 0;
}

.map-container iframe {
    width: 100%;
    min-height: 400px;
}

.contact-section h2 {
    text-align: center;
    color: #007EB1;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #a0a1a5;
}

.form-group input,.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Clipangle', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    color: #a0a1a5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Clipangle', sans-serif;
    background-color: #007EB1;
}

.submit-btn:hover {
    background-color: #956b4a;
}

#formMessage {
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
}

.consent-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.consent-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}

:root {
    --primary-color: #007EB1;
    --text-color: #a0a1a5;
    --bg-color: #f9f9f9;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --card-width: 80%; /* Largeur uniforme pour les cadres */
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

.cascade-card {
    width: var(--card-width);
    margin-left: 50px; /* Décalage initial pour la cascade */
    padding: 50px 20px; /* Padding vertical augmenté pour centrer */
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrage vertical */
    text-align: center; /* Texte centré horizontalement */
    min-height: 100px; /* Hauteur minimale pour le centrage vertical */
}

.cascade-card:nth-child(2) {
    margin-left: 200px; /* Décalage accru pour la cascade */
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ebf5 100%);
}

.cascade-card:nth-child(3) {
    margin-left: 350px; /* Décalage accru pour la cascade */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cascade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.cascade-card.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cascade-card:nth-child(1) { transition-delay: 0.5s; }
.cascade-card:nth-child(2) { transition-delay: 1.5s; }
.cascade-card:nth-child(3) { transition-delay: 2.5s; }

.cascade-card h2 {
    color: var(--primary-color);
    margin: 0 0 12px 0;
    font-size: 1.4em;
    font-weight: 600;
    font-family: 'Clipangle', sans-serif;
}

.cascade-card p {
    margin: 0;
    color: var(--text-color);
    font-size: 1.05em;
    font-family: 'Clipangle', sans-serif;
}

.cascade-card:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px) scale(1.01);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        margin: 10px 0;
    }

    .menu li {
        margin: 5px 0;
    }

    .menu-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .logo-left img, .logo-right img {
        height: 40px;
    }

    .contact-section {
        width: 95%;
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .contact-section {
        flex-direction: column;
    }
    .contact-form-container, .contact-map {
        flex: none;
        width: 100%;
    }

    .cascade-card {
        margin-left: 0 !important;
        width: 100%;
}
}