/* Tarifs et réservation */
nav ul { align-items: center; }
nav a.booking-nav { display: inline-block; padding: .7rem 1rem; border-radius: 30px; background: #003366; color: white; }
nav a.booking-nav::after { display: none; }
nav a.booking-nav:hover { background: #004b8f; }
a:focus-visible { outline: 3px solid #a45c00; outline-offset: 5px; }
.booking-page h2, .booking-cta h2 { color: #003366; font-size: 1.75rem; margin-bottom: .75rem; }
.booking-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.booking-offer { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; border: 1px solid #cddbea; border-top: 5px solid #003366; border-radius: 15px; }
.booking-offer-accent { background: #f0f6fc; }
.booking-offer h3 { color: #003366; font-size: 1.4rem; }
.booking-offer ul { padding-left: 1.2rem; }
.booking-offer li { margin-bottom: .5rem; }
.booking-price { color: #003366; font-size: 1.4rem; font-weight: 700; }
.booking-price span { display: block; font-size: 1rem; font-weight: 400; }
.booking-link { color: #003366; font-weight: 600; text-underline-offset: 4px; }
.booking-offer .booking-link { margin-top: auto; }
.booking-panel { display: flex; gap: 1.25rem; margin-top: 2rem; padding: 2rem; background: #f8f9fa; border: 1px solid #dce4ed; border-radius: 15px; }
.booking-step { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #003366; color: white; font-weight: 700; }
.booking-actions { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
.booking-actions .cta-button { margin: 0; width: auto; max-width: 100%; }
.booking-home-actions { justify-content: center; }
.booking-note { margin-top: 1rem; color: #555; font-size: .95rem; }
.booking-help { margin-top: 2.5rem; padding: 1rem 0; }
.booking-help .booking-link { display: inline-block; margin-top: .75rem; }
.booking-cta { max-width: 1160px; margin: 0 auto; padding: 2rem; text-align: center; border-radius: 15px; background: #f0f6fc; }
@media (max-width: 1100px) { header .header-content { justify-content: center; gap: 1rem; } nav ul { justify-content: center; } }
@media (max-width: 800px) { .booking-offers { grid-template-columns: 1fr; } .booking-panel { padding: 1.25rem; } }
@media (max-width: 480px) { body header { position: static; padding: 1rem 0; } header .logo { max-width: 100%; } nav a { font-size: 1rem; } .booking-panel { flex-direction: column; } .booking-actions { align-items: stretch; flex-direction: column; } .booking-actions .booking-link { text-align: center; } }

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables de couleurs */
:root {
    /* Nouvelle Charte "Pro Formation" */
    --color-primary: #003366;
    /* Bleu Profond - Confiance & Sérieux */
    --color-secondary: #4A90E2;
    /* Bleu Clair - Action & Accent */
    --color-tertiary: #FFC107;
    /* Jaune/Or - Éveil & Apprentissage (Accent) */
    --color-dark: #222222;
    /* Noir quasi absolu - Lisibilité */
    --color-light-bg: #f8f9fa;
    /* Blanc cassé très léger pour confort visuel */
    --color-gray: #555555;
    --color-light-gray: #f0f2f5;
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: white;
}

/* Header */
header {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    max-width: 300px;
    height: auto;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transition: width 0.3s ease-out;
}

nav a:hover {
    color: var(--color-primary);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    /* Gradient Bleu */
    color: white;
    /* Ecriture blanche */
    text-align: center;
    padding: 2rem 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px;
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section h2::before {
    content: '';
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    background-image: url('compass_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Texte d'introduction */
.intro-text {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-gray);
}

/* Cards/Cartes */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.phases-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.special-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1100px) {
    .phases-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cols on medium screens */
    }
}

@media (max-width: 768px) {

    .phases-grid,
    .special-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        /* Stack on mobile */
    }
}

.card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
}

/* Section À propos */
.about-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    font-size: 8rem;
}

/* Valeurs */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item h4 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Citation Box */
.quote-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 5px 30px rgba(255, 107, 157, 0.3);
}

.quote-box p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-box cite {
    font-size: 1.1rem;
    font-style: normal;
}

/* Section Tarifs/Pricing */
.pricing-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
}

.pricing-section h3 {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.pricing-item {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #e9ecef;
}

.pricing-item:last-child {
    border-bottom: none;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 3rem 0;
    text-align: center;
}

/* Stats Box */
.stats-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.stat-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.1rem;
}

.stat-item:last-child {
    border-bottom: none;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item span:first-child {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-box {
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
}

.contact-info-box h3 {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.1rem;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Video Container */
.video-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-container h3 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

/* Content Box (Mentions légales) */
.content-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.content-box h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.content-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
    width: 250px;
    text-align: center;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray) 100%);
    color: white;
    text-align: center;
    padding: 2rem 20px;
    margin-top: 4rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .quote-box p {
        font-size: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }
}

/* FLIP CARD STYLES */
.flip-card-container {
    perspective: 1000px;
    cursor: pointer;
    background-color: transparent;
    height: 400px;
    /* Adjust as needed */
}

/* 
   We remove specific card styling from the container 
   (so background etc is on the faces) 
*/
.flip-card-container .card {
    border-radius: 15px;
    /* ensure inheritance */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-container.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    overflow-y: auto;
    /* Allow scrolling if content is too long */
}

/* Front inherits card style directly by class usage in HTML */

/* Back style */
.flip-card-back {
    transform: rotateY(180deg);
}
/* Calendrier de demande de rendez-vous */
#calendrier { scroll-margin-top: 180px; }
#calendrier > div:last-child { min-width: 0; width: 100%; }
#booking-form, #booking-result { max-width: 680px; margin-top: 1.5rem; }
#booking-form > label, #booking-result > label { display: block; margin: 1rem 0 .4rem; font-weight: 600; }
#booking-form select, #booking-form > input, #request-summary { width: 100%; padding: .75rem; border: 1px solid #8699ae; border-radius: 8px; font: inherit; background: white; }
.calendar-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 1.5rem 0 1rem; }
.calendar-heading button, .calendar-days button, #copy-request { padding: .65rem; border: 1px solid #94aac1; border-radius: 8px; background: white; color: #003366; font: inherit; cursor: pointer; min-height: 44px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; text-align: center; }
.calendar-week { margin-bottom: .5rem; font-size: .9rem; }
.calendar-days button:disabled, .calendar-heading button:disabled { background: #eceff2; color: #747b83; border-color: transparent; cursor: default; }
.calendar-days button[aria-pressed="true"] { background: #003366; color: white; }
.calendar-days button:not(:disabled):hover { border-color: #003366; box-shadow: inset 0 0 0 1px #003366; }
#chosen-date { margin: 1rem 0; font-weight: 600; }
#time-options { border: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
#time-options legend { margin-bottom: .75rem; }
#time-options label { border: 1px solid #94aac1; border-radius: 8px; padding: .75rem; cursor: pointer; background: white; }
#time-options input { margin-right: .5rem; accent-color: #003366; }
#booking-form button.cta-button { border: 0; cursor: pointer; width: auto; }
#booking-error { color: #9b2424; margin-top: .75rem; }
#booking-result { border-top: 2px solid #003366; padding-top: 1.5rem; }
#request-summary { resize: vertical; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a45c00; outline-offset: 3px; }
@media (max-width: 480px) { #calendrier { scroll-margin-top: 1rem; } .calendar-days button { padding: .35rem; } }
