/* Importer la police Roboto via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

/* Définir la police Play via une fonte locale */
@font-face {
    font-family: 'Play';
    src: url('/Play-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Réinitialisation des styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === VARIABLES COULEURS VIOLET & ROSE === */
:root {
    --bg-body: #fafafa;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --text: #1a1a2e;
    --primary: #442181;
    /* Violet électrique */
    --secondary: #ec4899;
    /* Rose magenta */
    --dark-bg: #4c1d95;
    /* Violet profond */
    --dark-text: #ffffff;
    --hover-light: #a78bfa;
    --hover-dark: #6d28d9;
    --card-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg-body);
    background-image: url('/img/bckg_ii.png');

    background-size: cover;
}

/* Fond spécifique pour la page Prendre RDV */
body.rdv-page {
    background: #f4f4f4;
    background-image: url('/img/bckg_ii.png');
    background-size: cover;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* === BANNER & LOGO === */
.banner {
    /*background: linear-gradient(135deg, rgba(17, 11, 38, 0.9), rgba(80, 25, 100, 0.85)), 
                url('/img/rdv_bckg_ps.png') center/cover no-repeat;*/
    border-radius: 0 0 16px 16px;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(8px);
    z-index: 0;
    border-radius: inherit;
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    max-width: 1424px;
    margin: 0 auto;
    gap: 1.5rem;
}

/* Logo */
.banner-logo {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    line-height: 1;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}
@media (max-width: 768px) {
    .logo-img {
    display: none;
}
}


.logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* Style des titres avec la police Play */
h1,
h2,
h3,
h4 {
    font-family: 'Play', sans-serif;
}

.header {
    max-width: 1424px;
    margin: 0 auto;
    padding: 1rem;
}

.header h1,
.header p,
.title-text h1,
.title-text p {
    color: #ffffff;
}

.header-btn {
    text-decoration: none;
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background-color: var(--hover-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.header-btn.rdv-btn {
    background-color: var(--secondary);
}

.header-btn.rdv-btn:hover {
    background-color: #00b894;
}

/* Style de la section principale */
.main {
    max-width: 1424px;
    margin: 0 auto;
    padding: 1rem;
}

/* Flex pour aligner titre et boutons */
.title-with-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.title-text h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #f0f1f3;
}

.title-text p {
    margin: 0.3rem 0 0;
    font-size: 1rem;
    color: #ffffff;
}

.header-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.header-btn {
    padding: 0.6rem 1.2rem;
    background-color: #110b26;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-btn:hover {
    background-color: #501964;
    transform: translateY(-2px);
}

.header-btn.rdv-btn {
    background-color: #110b26;
}

.header-btn.rdv-btn:hover {
    background-color: #501964;
}

/* Responsive : empiler sur petits écrans */
@media (max-width: 768px) {
    .title-with-buttons {
        flex-direction: column;
        text-align: center;
    }

    .header-buttons {
        justify-content: center;
    }

    .title-text h1 {
        font-size: 1.5rem;
    }
}

/* Style des cartes (en ligne au-dessus du contenu) */
.cards-column {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #e3e3e4;
    border-radius: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    flex: 1;
    min-width: 150px;
    max-width: 220px;

}

.card:hover {
    background-color: #c6d2df;
    transform: translateY(-2px);
}

.card.active {
    background-color: #1a2a44;
    color: white;
}

.card h2 {
    font-size: 1.2rem;
    margin: 0;
}

.card img.card-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Style de la section de contenu */
.content-column {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-section {
    display: none;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-section.active {
    display: flex;
    gap: 1.5rem;
    opacity: 1;
    align-items: flex-start;
}

.content-section img {
    width: 50%;
    object-fit: contain;
    flex-shrink: 0;
    max-height: 350px;
}

.content-section .content-text {
    flex: 1;
    padding: 0.5rem;
}

.content-section h3 {
    color: var(--primary);
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
}

.content-section a {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.content-section a:hover {
    background-color: var(--hover-light);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.content-section h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
}

.content-section p,
.content-section li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}


/* Style de la section partenaires */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: start;
    margin-top: 2rem;
    padding: 1rem 0;
}

.card.partenaire {
    background-color: #e3e3e4;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 230px;
    text-align: center;
    transition: background-color 0.3s;
}

.card.partenaire:hover {
    background-color: #c6d2df;
}

.card.partenaire img {
    height: 154px;
    width: 100%;
    object-fit: contain;
}

.card.partenaire .card-content {
    padding: 1rem;
}

.card.partenaire h2 {
    font-size: 1.5rem;
    color: #1a2a44;
}

.card.partenaire p {
    font-size: 1rem;
    color: #555;
}

.card.partenaire a {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.card.partenaire a:hover {
    background-color: #2e4372;
}

/* Style du formulaire de contact */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form label {
    font-weight: 500;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Roboto', Arial, sans-serif;
}

#contact-form button {
    padding: 0.5rem 1rem;
    background-color: #3a64a8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #2e4372;
}

#form-message {
    margin-top: 1rem;
}

/* === TITRES DE SECTION === */
.section-title {
    font-family: 'Play', sans-serif;
    font-size: 1.6rem;
    color: var(--text);
    margin: 2rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--primary);
    width: fit-content;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.activity-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.15);
    transform: translateY(-3px);
}

.activity-card.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.activity-card.active h2,
.activity-card.active p {
    color: white;
}

.tool-card {
    background: linear-gradient(135deg, var(--dark-bg), #0f1f40);
    color: var(--dark-text);
    border: 1px solid #1a3a70;
    box-shadow: 0 6px 20px rgba(10, 26, 56, 0.4);
    transition: all 0.4s ease;
}

.tool-card:hover {
    background: linear-gradient(135deg, #0f1f40, var(--dark-bg));
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.25);
    border-color: var(--primary);
}

.tool-card .card-logo {
    filter: brightness(0) invert(1);
    width: 32px;
    height: 32px;
}

.tool-card h2 {
    color: var(--dark-text);
    font-size: 1.35rem;
    font-weight: 500;
}

.tool-card p {
    color: #a0d0ff;
    font-size: 0.95rem;
}

.tool-btn {
    background-color: var(--secondary);
    color: white;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background-color: #00b894;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

/* === ESPACEMENT ENTRE GROUPES === */
.cards-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}
.cards-group a {
    text-decoration: none;
}

.cards-group .card {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
}

/* Responsive */
@media (max-width: 768px) {
    .cards-group {
        flex-direction: column;
        align-items: stretch;
    }

    .cards-group .card {
        max-width: 100%;
    }
}


/* Styles pour la page Prendre RDV */
.rdv-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;

    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.rdv-step {
    display: none;
}

.rdv-step.active {
    display: block;
}

.rdv-step-content {
    padding: 20px;
}

.rdv-form-group {
    margin-bottom: 20px;
}

.rdv-form-group label {
    font-weight: 500;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.rdv-form-group input[type="text"],
.rdv-form-group input[type="tel"],
.rdv-form-group input[type="email"],
.rdv-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.rdv-radio-group,
.rdv-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.rdv-radio-group label,
.rdv-checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rdv-button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.rdv-button:hover {
    background: #0056b3;
}

.rdv-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rdv-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.rdv-recap {
    background: #e9ecef;
    padding: 15px;
    border-radius: 5px;
}

.rdv-recap p {
    margin: 10px 0;
}

.rdv-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.rdv-success {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.rdv-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.rdv-calendar-day {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background: #f8f9fa;
    font-size: 14px;
}

.rdv-calendar-day:hover {
    background: #e0e0e0;
}

.rdv-calendar-day.unavailable {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.rdv-calendar-day.selected {
    background: #007bff;
    color: white;
}

.rdv-time-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.rdv-time-selector select {
    flex: 1;
    max-width: 200px;
    /* Max-width pour la selectbox */
}

.rdv-time-selector button {
    padding: 10px;
    font-size: 18px;
}

@media (max-width: 600px) {
    .rdv-container {
        margin: 20px;
        padding: 15px;
    }

    .rdv-calendar {
        grid-template-columns: repeat(4, 1fr);
    }

    .rdv-calendar-day {
        font-size: 12px;
        padding: 8px;
    }

    .rdv-time-selector select {
        max-width: 150px;
    }

    .rdv-time-selector button {
        padding: 8px;
    }
}

/* Responsive : empiler les cartes et contenu sur petits écrans */
@media (max-width: 768px) {
    .cards-column {
       /* flex-direction: column;*/
        align-items: center;
    }

    .card {
        min-width: 100%;
    }

    .content-section.active {
        flex-direction: column;
    }

    .content-section img {
        width: 100%;
        max-height: 400px;
    }
}