/* ============================================
   CK Invest — Feuille de styles principale
   ============================================
   Ce fichier regroupe tout le CSS du site. En web, le CSS définit l’apparence
   (couleurs, tailles, mise en page) des éléments HTML. Les variables dans :root
   permettent de changer la charte en un seul endroit.

   Charte : couleur principale #2A4A6F (bleu), secondaire #4CAF50 (vert).
   Toutes les anciennes teintes or/doré ont été remplacées par le vert.
   ============================================ */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary: #2A4A6F;
    --secondary: #4CAF50;
    --blue-dark: #1a3550;
    --blue-main: #2A4A6F;
    --blue-light: #e8f0f7;
    --navy: #050b20;
    --sand: #f5efe6;
    --gray-light: #f5f7fa;
    --gray-medium: #8a9ba8;
    --text-dark: #333;
    --white: #fff;
    --green: #4CAF50;
    --error: #d32f2f;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, #f9fbff 0, #f5f7fa 40%, #ffffff 100%);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

/* Lien d'évitement (skip link) : visible au focus clavier */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid var(--secondary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: radial-gradient(circle at top left, #111733 0, #050b20 55%, #02040a 100%);
    color: var(--white);
    padding: 14px 0 54px 0;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 10;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #4CAF50;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--white);
}

.brand-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.76);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--blue-main));
    border-radius: 999px;
    transition: width 0.22s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link--primary {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(76, 175, 80, 0.9);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.nav-link--primary::after {
    display: none;
}

.nav-link--primary:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(42, 74, 111, 0.9));
    color: #050b20;
    border-color: transparent;
}

.nav-link:focus-visible,
.nav-link--primary:focus-visible,
.brand:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

.hero {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 24px 8px 24px;
    text-align: left;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-cta {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-cta--primary {
    background: linear-gradient(135deg, var(--secondary), #3d8f40);
    color: var(--navy);
    border: 2px solid transparent;
}

.hero-cta--primary:hover {
    background: linear-gradient(135deg, #5cc85f, var(--secondary));
    color: var(--navy);
}

.hero-cta--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-cta--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.hero-cta:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

.hero-tagline {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    margin: 30px 0;
    max-width: 900px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .hero-tagline {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .hero-tagline {
        font-size: 1.3rem;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    margin-bottom: 80px;
}

section:last-child {
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.4rem;
    color: var(--blue-dark);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 700px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin: 20px 0 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(42, 74, 111, 0.1);
    color: var(--blue-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    font-weight: 600;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */
.values-grid,
.needs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.value-card,
.need-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 53, 80, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover,
.need-card:hover,
.need-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.need-card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.value-card h3,
.need-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--blue-dark);
    font-weight: 600;
}

.value-card p,
.need-card p {
    font-size: 0.98rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.need-card {
    background: linear-gradient(135deg, #f8fbff 0, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.need-card-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.need-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

.need-card h3 {
    margin-top: 0;
}

/* ============================================
   STEPS SECTION (4 ETAPES)
   ============================================ */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.step-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-main), var(--green));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 16px rgba(42, 74, 111, 0.3);
}

.step-card h3 {
    font-size: 1.3rem;
    color: var(--blue-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   IMAGE SECTIONS
   ============================================ */
.image-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 60px 0;
}

.image-section--reverse {
    direction: rtl;
}

.image-section--reverse > * {
    direction: ltr;
}

.image-section img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.image-section-content h2 {
    font-size: 2.2rem;
    color: var(--blue-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.image-section-content p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.why-item:hover,
.why-item:focus-within {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.why-item:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.why-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(42, 74, 111, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-weight: 600;
}

.why-item p {
    font-size: 0.98rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.regulatory-block {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--gray-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.regulatory-block-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
    align-items: center;
}

.regulatory-item {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
}

.regulatory-label {
    font-weight: 600;
    color: var(--blue-dark);
}

@media (max-width: 600px) {
    .regulatory-block-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--blue-dark);
    margin-bottom: 24px;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-info strong {
    color: var(--blue-dark);
    font-weight: 600;
}

.contact-info a {
    color: var(--blue-main);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form label {
    display: block;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1.5px solid #d0d9e0;
    font-size: 1rem;
    background: #fafbfc;
    transition: all 0.2s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue-main);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 74, 111, 0.1);
    background: var(--white);
}

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

.contact-form button {
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(42, 74, 111, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(42, 74, 111, 0.4);
}

.contact-form button:active {
    transform: translateY(0);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.form-message.success {
    color: var(--green);
    background: rgba(67, 160, 71, 0.1);
}

.form-message.error {
    color: var(--error);
    background: rgba(211, 47, 47, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #050814;
    color: rgba(255, 255, 255, 0.9);
    padding: 50px 24px 20px 24px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
    font-size: 0.95rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #4CAF50;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.footer-title {
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
}

.footer-heading {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--green);
    text-decoration: underline;
}

.footer-meta {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

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

.footer-legal-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    text-align: left;
}

.footer-legal-block h3 {
    color: var(--green);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.footer-legal-block p {
    margin: 6px 0;
}

/* ============================================
   UTILITIES
   ============================================ */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .image-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .nav-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
    }
    
    .hero {
        margin-top: 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .contact {
        grid-template-columns: 1fr;
        padding: 40px 28px;
    }
    
    .values-grid,
    .needs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    
    .footer-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    main {
        margin: 40px auto;
    }
    
    header {
        padding: 12px 0 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        margin-bottom: 60px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid,
    .needs-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact {
        padding: 30px 20px;
        gap: 30px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-meta {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   COMPOSANTS COMMUNS (injection header/footer)
   ============================================ */
/* #hero-content : réservoir de contenu déplacé dans le header par components.js ; on le cache pour éviter doublon à l’écran */
#hero-content {
    display: none;
}

/* Lien CTA « Prendre rendez-vous » en bloc pour éviter débordement */
.cta-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

/* Lien « En savoir plus » dans les blocs vision / mission */
.section-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.section-link:hover {
    text-decoration: underline;
}
.section-link:focus-visible {
    outline: 2px solid var(--secondary);
}

/* Titre « Notre promesse » sur la page d’accueil */
.hero-promise-title {
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #102542;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(16, 37, 66, 0.1);
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    text-align: center;
}
.hero-promise-line {
    font-weight: 600;
    font-style: italic;
    color: var(--blue-main);
    font-size: 1.5rem;
}
.hero-promise-highlight {
    display: inline-block;
    background: linear-gradient(90deg, #d4f1d6 0%, var(--green) 40%, #e8f5e9 100%);
    border-radius: 12px;
    padding: 0.1em 0.7em;
    color: var(--blue-main);
    font-style: italic;
    font-weight: 900;
    font-size: 0.5em;
    letter-spacing: 0.05em;
    margin-top: 8px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.16);
}

/* Grille besoins avec espacement renforcé (page services) */
.needs-grid--spaced {
    gap: 2.3rem 2rem;
    margin-top: 0.1rem;
}

/* Bloc RDV infos en haut de page (sans marge top) */
.rdv-info--top {
    margin-top: 0;
}

/* ============================================
   PAGE CONTACT — formulaire (styles factorisés)
   ============================================ */
body.contact-page {
    background: #f8f8fa;
}
body.contact-page main {
    min-height: 70vh;
}
.contact-section-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 0 3rem 0;
}
.contact-form-card {
    max-width: 800px;
    min-width: 0;
    width: 90vw;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 4px 28px 0 rgba(35,31,62,0.12), 0 1.5px 4px 0 rgba(76,175,80,0.08);
    padding: 2.6rem 3rem 2.2rem 3rem;
    margin: 0 auto;
    animation: contact-fadeinup 1s cubic-bezier(.25,.8,.36,1) both;
    transition: max-width 0.3s, padding 0.3s;
}
@keyframes contact-fadeinup {
    0% { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0); }
}
.contact-form-card h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: .5rem;
}
.contact-form-card p {
    text-align: center;
    font-size: 1.09rem;
    color: #7a7a7a;
    margin-bottom: 2.2rem;
}
.contact-form-card .contact-form label {
    display: block;
    margin-bottom: 1.2rem;
}
.contact-form-card .contact-form input,
.contact-form-card .contact-form textarea {
    width: 100%;
    border: 1.2px solid #e4e4e4;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    padding: 0.95rem 1.1rem;
    box-sizing: border-box;
    background: #f7f8fc;
    transition: border 0.2s;
}
.contact-form-card .contact-form input:focus,
.contact-form-card .contact-form textarea:focus {
    border-color: var(--secondary);
    outline: none;
}
.contact-form-card .contact-form textarea {
    min-height: 112px;
    resize: vertical;
}
.contact-form-card .contact-form button {
    width: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, #388e3c 100%);
    color: var(--white);
    font-size: 1.16rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    margin-top: .4rem;
    cursor: pointer;
    transition: box-shadow 0.17s, background 0.23s;
    box-shadow: 0 2px 12px 0 rgba(76,175,80,0.2);
}
.contact-form-card .contact-form button:hover,
.contact-form-card .contact-form button:focus {
    background: linear-gradient(90deg, #388e3c 0%, var(--secondary) 100%);
    box-shadow: 0 4px 18px 0 rgba(76,175,80,0.25);
}
.contact-form-card .form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
}
@media (max-width: 1000px) {
    .contact-form-card {
        max-width: 98vw;
        padding: 1.5rem 1rem;
    }
}
@media (max-width: 700px) {
    .contact-section-wrapper {
        padding: 1.1rem 0 2rem 0;
    }
    .contact-form-card {
        max-width: 100vw;
        width: 98vw;
        padding: 1.2rem 0.5rem 1.4rem;
    }
}

/* ============================================
   PAGE RDV — Calendly et bloc infos (styles factorisés)
   ============================================ */
.rdv-container {
    max-width: 100vw;
    width: 100%;
    margin: 60px auto;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}
.calendly-block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 44px;
    margin-bottom: 0;
}
.calendly-inline-widget {
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    height: 750px !important;
    border: none;
    box-sizing: border-box;
    margin: 0 auto;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 6px 40px rgba(13, 71, 161, 0.07);
    transition: box-shadow 0.18s;
}
.rdv-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 50%, #1565c0 100%);
    color: var(--white);
    padding: 28px 24px;
    border-radius: 18px;
    margin-bottom: 32px;
    box-shadow: 0 16px 40px rgba(13, 71, 161, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    min-height: unset;
}
.rdv-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.rdv-hero-content {
    flex: 1 1 210px;
    min-width: 150px;
    text-align: left;
}
.rdv-hero-content h1 {
    font-size: 1.22rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.15;
}
.rdv-hero-content p {
    font-size: 1.01rem;
    opacity: 0.93;
    margin-bottom: 0;
    line-height: 1.55;
}
.rdv-cta-wrap {
    flex: 0 0 auto;
    margin: 0 0 0 18px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.calendly-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--green) 0%, #388e3c 100%);
    color: var(--navy);
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    box-shadow: 0 5px 18px rgba(76, 175, 80, 0.3);
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}
.calendly-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 30px rgba(76, 175, 80, 0.35);
}
.calendly-button:active {
    transform: translateY(-1px);
}
.calendly-button svg {
    width: 19px;
    height: 19px;
}
.rdv-info {
    background: var(--white);
    padding: 44px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: 44px;
    text-align: left;
    border: 1px solid rgba(13, 71, 161, 0.06);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.rdv-info h2 {
    color: var(--blue-dark);
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rdv-info h2::before {
    content: "";
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--blue-main), var(--green));
    border-radius: 4px;
}
.rdv-info ul {
    list-style: none;
    padding: 0;
}
.rdv-info li {
    padding: 2px 0;
    padding-left: 36px;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.02rem;
}
.rdv-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 1.25rem;
}

.rdv-steps {
    background: var(--blue-light);
    padding: 32px 40px;
    border-radius: 20px;
    margin-top: 28px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.rdv-steps h2 {
    color: var(--blue-dark);
    font-size: 1.35rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.rdv-steps-list {
    list-style: none;
    padding: 0;
    counter-reset: rdv-step;
}

.rdv-steps-list li {
    position: relative;
    padding: 10px 0 10px 44px;
    counter-increment: rdv-step;
}

.rdv-steps-list li::before {
    content: counter(rdv-step);
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    line-height: 28px;
}

.rdv-steps-note {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--blue-dark);
    font-weight: 600;
}

@media (max-width: 600px) {
    .rdv-steps {
        padding: 24px 16px;
    }
}

.footer-legal-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    text-align: left;
}
.footer-legal-block h3 {
    color: var(--green);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.footer-legal-block p {
    margin: 6px 0;
}
@media (max-width: 1200px) {
    .calendly-inline-widget {
        max-width: 98vw;
    }
}
@media (max-width: 900px) {
    .rdv-info {
        max-width: 100%;
        padding: 32px 12px;
    }
}
@media (max-width: 700px) {
    .rdv-hero {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 24px 10px;
    }
    .rdv-cta-wrap {
        margin: 14px 0 0 0;
        justify-content: flex-start;
    }
    .rdv-hero-content {
        text-align: left;
    }
    .calendly-inline-widget {
        height: 620px !important;
        max-width: 100vw;
    }
}
@media (max-width: 600px) {
    .rdv-hero {
        padding: 15px 4px;
        min-width: unset;
        margin-bottom: 22px;
    }
    .rdv-hero-content h1 {
        font-size: 1.02rem;
    }
    .rdv-hero-content p {
        font-size: 0.92rem;
    }
    .calendly-button {
        padding: 10px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    .rdv-info {
        padding: 20px 4px;
    }
    .calendly-inline-widget {
        height: 530px !important;
        min-width: 0;
    }
}

/* Lien Calendly (RDV sans iframe = aucun cookie tiers sur ce site) */
.rdv-info--cta {
    text-align: center;
    margin-top: 24px;
}
.rdv-calendly-link {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 28px;
    background: var(--green, #4CAF50);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}
.rdv-calendly-link:hover {
    background: #43a047;
}

.cta-link:focus-visible,
.rdv-calendly-link:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}
