/* === Variables === */
:root {
    --blue: #1B2D4F;
    --blue-dark: #142240;
    --blue-light: #243a5e;
    --orange: #F27B20;
    --orange-hover: #e06a10;
    --white: #FFFFFF;
    --gray-light: #f5f7fa;
    --gray: #94a3b8;
    --text-dark: #1e293b;
    --text-light: #cbd5e1;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: 0.3s ease;
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--blue);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    transition: background var(--transition);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--orange);
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-contact {
    color: var(--orange);
    font-weight: 600;
}

.nav-contact:hover {
    background: rgba(242, 123, 32, 0.15);
    color: var(--orange);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
}

.lang-option {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
    cursor: pointer;
}

.lang-option.active {
    color: var(--white);
    font-weight: 700;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 140px 24px 80px;
    color: var(--white);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gray);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 24px;
}

.hero-contact-info {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.8;
}

.hero-contact-info a {
    color: var(--gray);
    transition: color var(--transition);
}

.hero-contact-info a:hover {
    color: var(--orange);
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

/* === Sections === */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--white);
}

.section-dark {
    background: var(--gray-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 40px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
}

.section-intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--blue);
    line-height: 1.6;
}

/* Content blocks */
.content-block {
    margin-bottom: 32px;
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 12px;
}

.content-block p {
    color: var(--text-dark);
    margin-bottom: 12px;
}

.content-block ul {
    padding-left: 0;
    margin-top: 8px;
}

.content-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.conviction {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius);
    margin: 32px 0;
}

.conviction p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 0;
}

/* === Section Subtitle (for interactive blocks) === */
.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 24px;
    text-align: center;
}

/* === Radial Diagram (Philosophie de soin) === */
.radial-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 48px;
    aspect-ratio: 2.15;
}

.radial-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.radial-svg .connector {
    stroke: #e2e8f0;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 6 4;
}

.radial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    padding: 18px;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(27, 45, 79, 0.25);
}

.radial-item {
    position: absolute;
    width: auto;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.radial-item.text-left {
    flex-direction: row-reverse;
}

.radial-item.text-left p {
    text-align: right;
}

.radial-item.visible {
    opacity: 1;
}

.radial-item:nth-child(2) { transition-delay: 0.1s; }
.radial-item:nth-child(3) { transition-delay: 0.2s; }
.radial-item:nth-child(4) { transition-delay: 0.3s; }
.radial-item:nth-child(5) { transition-delay: 0.4s; }
.radial-item:nth-child(6) { transition-delay: 0.5s; }

.radial-node {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(242, 123, 32, 0.3);
}

.radial-node svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.radial-item p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: left;
}

/* === Flow Breadcrumb (Approche thérapeutique) === */
.flow-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 0 auto 48px;
    max-width: 100%;
    padding: 10px 0 20px;
}

.flow-step {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.flow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-step:nth-child(1) { transition-delay: 0s; }
.flow-step:nth-child(2) { transition-delay: 0.1s; }
.flow-step:nth-child(3) { transition-delay: 0.2s; }
.flow-step:nth-child(4) { transition-delay: 0.3s; }
.flow-step:nth-child(5) { transition-delay: 0.4s; }

.flow-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.flow-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--blue));
    z-index: 1;
    border-radius: 2px;
}

.flow-text {
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-dark);
    padding: 0 6px;
    line-height: 1.5;
}

/* === Horizontal Row Cards (Domaines) === */
.hrow-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 48px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hrow-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius);
    padding: 10px 14px;
    border-left: 4px solid var(--orange);
    background: var(--gray-light);
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hrow-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.hrow-card:nth-child(1) { transition-delay: 0s; }
.hrow-card:nth-child(2) { transition-delay: 0.08s; }
.hrow-card:nth-child(3) { transition-delay: 0.16s; }
.hrow-card:nth-child(4) { transition-delay: 0.24s; }
.hrow-card:nth-child(5) { transition-delay: 0.32s; }

.hrow-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrow-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hrow-card p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* === Info Card (Frais à charge) === */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.info-card-header {
    background: var(--blue);
    padding: 16px 24px;
}

.info-card-header h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.info-card ul {
    padding: 20px 24px;
}

.info-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

/* CTA */
.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(242, 123, 32, 0.3);
}

/* === Tarif Cards === */
.tarif-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.tarif-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.tarif-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tarif-header {
    background: var(--blue);
    padding: 20px 24px;
    text-align: center;
}

.tarif-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.tarif-price small {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
}

.tarif-note {
    font-size: 0.9rem;
    color: var(--gray);
    padding: 16px 24px 0;
    font-style: italic;
}

.tarif-note-bottom {
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 12px 24px 20px;
    font-style: italic;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
}

.tarif-card ul {
    padding: 20px 24px;
}

.tarif-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.tarif-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

/* === Info Box === */
.info-box {
    background: var(--gray-light);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.info-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 12px;
}

.info-box ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-box ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

/* === Tools Grid === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.tool-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

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

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.tool-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.tool-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white);
    transition: all var(--transition);
}

.tool-icon-link:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.tool-download-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--orange);
    transition: color var(--transition);
}

.tool-download-link:hover {
    color: var(--orange-hover);
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition);
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    transition: color var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
}

/* === Form === */
.contact-form fieldset {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.contact-form fieldset legend {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    padding: 0 8px;
}

.form-group {
    margin-bottom: 16px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242, 123, 32, 0.1);
}

.form-row {
    display: flex;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    min-height: 50px;
    position: relative;
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form status messages */
.form-status {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
}

.form-status.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* === Footer === */
.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-contact {
    display: flex;
    gap: 24px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--orange);
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .tarif-cards {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 960px) {
    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--blue);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .logo-text {
        display: none;
    }

    .hero {
        padding: 110px 24px 60px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-photo img {
        width: 180px;
        height: 180px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

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

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal {
        padding: 28px 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }

    .radial-wrapper {
        aspect-ratio: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
    }
    .radial-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 16px;
    }
    .radial-item {
        position: relative !important;
        width: 100%;
        display: flex;
        flex-direction: row !important;
        align-items: center;
        gap: 12px;
        text-align: left;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        max-width: 100%;
    }
    .radial-item.text-left {
        flex-direction: row !important;
    }
    .radial-item.text-left p {
        text-align: left !important;
    }
    .radial-item .radial-node { margin: 0; flex-shrink: 0; }
    .radial-svg { display: none; }
    .flow-wrapper { flex-direction: column; align-items: center; }
    .flow-step:not(:last-child)::after { display: none; }
    .hrow-card { padding: 14px 16px; gap: 14px; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .conviction {
        padding: 20px 24px;
    }
}