:root {
    --bg: #0a0a0c;
    --bg-raised: #131316;
    --line: rgba(245, 244, 240, 0.1);
    --line-strong: rgba(245, 244, 240, 0.18);
    --ink: #f5f4f0;
    --ink-dim: #9a9a9f;
    --ink-faint: #5e5e63;
    --sand: #d9a15b;
    --sand-dim: rgba(217, 161, 91, 0.14);
    --max: 1120px;
    --serif-display: "Space Grotesk", sans-serif;
    --body: "Inter", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

::selection {
    background: var(--sand);
    color: #0a0a0c;
}

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

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 22px;
    }
}

/* ---------- focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--sand);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- nav ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 12, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-mark {
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.02em;
}

.nav-mark span {
    color: var(--sand);
}

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 14px;
    color: var(--ink-dim);
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--sand);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    border: 1px solid var(--line-strong);
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 13.5px;
    transition:
        border-color 0.25s ease,
        background 0.25s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    border-color: var(--sand);
    background: var(--sand-dim);
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }
}

/* =========================================================
   HERO — photo centrée, nom en bandeau, texte en bas
   ========================================================= */

.hero {
    padding-top: 48px;
    padding-bottom: 60px;
}

.hero-stage {
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line-strong);
    padding: 7px 16px 7px 12px;
    border-radius: 99px;
    font-size: 13px;
    color: var(--ink-dim);
    margin-bottom: 30px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6fcf8e;
    box-shadow: 0 0 0 3px rgba(111, 207, 142, 0.15);
}

.hero-name {
    font-family: var(--serif-display);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.02em;
    font-size: clamp(44px, 9vw, 112px);
    white-space: nowrap;
    text-align: center;
}

.hero-name .line {
    display: inline;
}

.hero-name .outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
}

@media (max-width: 560px) {
    .hero-name {
        white-space: normal;
        line-height: 0.96;
        text-align: left;
    }

    .hero-name .line {
        display: block;
    }
}

/* --- scène : photo centrée + contenu superposé --- */
.hero-scene {
    position: relative;
    margin-top: 10px;
    min-height: 600px;
    display: block;
    text-align: center;
}

.hero-photo-center {
    position: relative;
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.hero-photo-center img {
    width: 100%;
    height: auto;
    /* Recadrage : la photo s'arrête au bas de la veste */
    aspect-ratio: 408 / 545;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: grayscale(1) contrast(1.05) brightness(0.98);
    transition:
        filter 0.6s ease,
        transform 0.6s ease;
}

.hero-photo-center:hover img {
    filter: grayscale(0) contrast(1.02) brightness(1.02) saturate(1.05);
    transform: translateY(-4px);
}

.hero-seal {
    position: absolute;
    top: 4%;
    right: -46px;
    width: 96px;
    height: 96px;
    animation: heroSealSpin 18s linear infinite;
}

.hero-seal circle.dot-bg {
    fill: var(--sand);
}

.hero-seal text {
    font-family: var(--serif-display);
    font-size: 7.6px;
    letter-spacing: 0.12em;
    fill: var(--ink-dim);
    text-transform: uppercase;
}

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

/* texte superposé en bas à gauche */
.hero-bottom-left {
    position: absolute;
    left: 0;
    bottom: 24px;
    z-index: 2;
    max-width: 380px;
    text-align: left;
}

.hero-role {
    font-size: 12.5px;
    letter-spacing: 0.08em;
    color: var(--sand);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-intro {
    font-size: 15px;
    color: var(--ink-dim);
    line-height: 1.7;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* liens sociaux en bas à droite */
.hero-bottom-right {
    position: absolute;
    right: 0;
    bottom: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

.hero-bottom-right a {
    border: 1px solid var(--line);
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(6px);
    padding: 9px 20px;
    border-radius: 99px;
    font-size: 13.5px;
    color: var(--ink-dim);
    transition:
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.hero-bottom-right a:hover {
    border-color: var(--sand);
    color: var(--ink);
    transform: translateX(-3px);
}

/* responsive hero */
@media (max-width: 900px) {
    .hero-scene {
        min-height: auto;
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .hero-photo-center {
        width: min(100%, 360px);
        order: 1;
    }

    .hero-bottom-left,
    .hero-bottom-right {
        position: static;
        max-width: 100%;
    }

    .hero-bottom-left {
        order: 2;
        text-align: left;
        align-self: flex-start;
    }

    .hero-bottom-right {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        align-self: flex-start;
    }

    .hero-seal {
        right: -12px;
        width: 76px;
        height: 76px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 99px;
    font-size: 14.5px;
    font-weight: 500;
    border: 1px solid transparent;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--ink);
    color: #0a0a0c;
}

.btn-primary:hover {
    background: var(--sand);
}

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--sand);
    color: var(--sand);
}

.hero-meta {
    margin-top: 56px;
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    color: var(--ink-faint);
    font-size: 13.5px;
}

.hero-meta strong {
    display: block;
    color: var(--ink);
    font-family: var(--serif-display);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ---------- section shell ---------- */
section {
    padding: 96px 0;
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.section-num {
    font-size: 13px;
    color: var(--ink-faint);
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.section-title {
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.01em;
}

.section-sub {
    max-width: 380px;
    color: var(--ink-dim);
    font-size: 14.5px;
}

/* ---------- projects ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

@media (max-width: 760px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--bg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background 0.3s ease;
    cursor: default;
}

a.project-card {
    cursor: pointer;
}

.project-card:hover {
    background: var(--bg-raised);
}

.project-preview {
    height: 168px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.browser-mock {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-raised);
}

.browser-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink-faint);
}

.browser-url {
    margin-left: 8px;
    font-size: 11px;
    color: var(--ink-dim);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 6px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.phone-mock {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    width: 88px;
    height: 150px;
    border: 2px solid var(--line-strong);
    border-radius: 16px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 11px;
    line-height: 1.3;
}

.chat-mock {
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.chat-bubble {
    max-width: 76%;
    font-size: 11.5px;
    line-height: 1.45;
    padding: 8px 12px;
    border-radius: 10px;
}

.chat-bubble.in {
    background: var(--bg);
    border: 1px solid var(--line);
    align-self: flex-start;
    color: var(--ink-dim);
}

.chat-bubble.out {
    background: var(--sand-dim);
    border: 1px solid var(--sand);
    align-self: flex-end;
    color: var(--ink);
}

.bg-sahelia {
    background:
        radial-gradient(circle at 25% 20%,
            rgba(217, 161, 91, 0.2),
            transparent 60%),
        var(--bg-raised);
    color: var(--ink);
}

.bg-alamal {
    background:
        radial-gradient(circle at 75% 25%,
            rgba(217, 161, 91, 0.2),
            transparent 60%),
        var(--bg-raised);
    color: var(--ink);
}

.bg-fatura {
    background:
        radial-gradient(circle at 70% 70%, rgba(217, 161, 91, 0.2), transparent 60%),
        var(--bg-raised);
    color: var(--ink);
}

.bg-group {
    background:
        radial-gradient(circle at 20% 30%, rgba(217, 161, 91, 0.22), transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(217, 161, 91, 0.12), transparent 50%),
        var(--bg-raised);
    color: var(--ink);
}

.bg-elbarosa {
    background:
        radial-gradient(circle at 80% 25%, rgba(217, 161, 91, 0.22), transparent 55%),
        radial-gradient(circle at 15% 80%, rgba(217, 161, 91, 0.1), transparent 50%),
        var(--bg-raised);
    color: var(--ink);
}

/* Carte mise en avant sur toute la largeur de la grille */
.project-card--wide {
    grid-column: 1 / -1;
}

.bg-makani,
.bg-tchadicash,
.bg-kaga,
.bg-arabic,
.bg-ansice {
    background: var(--bg-raised);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.project-title {
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 22px;
}

.project-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.project-card:hover .project-arrow {
    border-color: var(--sand);
    transform: rotate(45deg);
}

.project-desc {
    color: var(--ink-dim);
    font-size: 14.5px;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 6px;
}

.tag {
    font-size: 12px;
    color: var(--ink-dim);
    border: 1px solid var(--line);
    padding: 5px 12px;
    border-radius: 99px;
}

/* ---------- recherche ---------- */
.research-card {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

/* plusieurs projets de recherche empilés */
.research-card + .research-card {
    margin-top: 28px;
}

@media (max-width: 860px) {
    .research-card {
        grid-template-columns: 1fr;
    }
}

.research-main,
.research-side {
    background: var(--bg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.research-side {
    background: var(--bg-raised);
}

@media (max-width: 640px) {
    .research-main,
    .research-side {
        padding: 24px 20px;
    }
}

.research-kicker {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sand);
}

.research-title {
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.3;
}

.research-text {
    color: var(--ink-dim);
    font-size: 14.5px;
    line-height: 1.7;
}

.research-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .research-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.research-stat {
    background: var(--bg-raised);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.research-stat strong {
    font-family: var(--serif-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
}

.research-stat span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink-dim);
}

.research-block-title {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sand);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.research-questions {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink-dim);
    font-size: 14.5px;
    line-height: 1.65;
}

.research-questions li::marker {
    color: var(--sand);
}

.research-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.research-steps li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--ink-dim);
}

.research-steps em {
    font-style: normal;
    font-size: 11.5px;
    white-space: nowrap;
    color: var(--ink-faint);
}

.research-steps li.is-done span {
    color: var(--ink);
}

.research-steps li.is-done em,
.research-steps li.is-progress em {
    color: var(--sand);
}

.research-cta {
    font-size: 14px;
    color: var(--sand);
    border: 1px solid var(--sand);
    border-radius: 99px;
    padding: 10px 16px;
    text-align: center;
    transition: background 0.25s ease;
}

.research-cta:hover {
    background: var(--sand-dim);
}

/* ---------- skills ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
}

@media (max-width: 820px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.skill-col-title {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--sand);
    text-transform: uppercase;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-chip {
    font-size: 13.5px;
    color: var(--ink-dim);
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 8px;
    transition:
        border-color 0.25s ease,
        color 0.25s ease;
}

.skill-chip:hover {
    border-color: var(--sand);
    color: var(--ink);
}

/* ---------- experience ---------- */
.timeline {
    display: flex;
    flex-direction: column;
}

.tl-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

.tl-row:last-child {
    border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
    .tl-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.tl-date {
    font-size: 13px;
    color: var(--ink-faint);
    padding-top: 2px;
}

.tl-role {
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}

.tl-role span {
    color: var(--sand);
    font-weight: 500;
}

.tl-desc {
    color: var(--ink-dim);
    font-size: 14.5px;
    max-width: 560px;
}

.tl-desc + .tl-desc {
    margin-top: 8px;
}

/* =========================================================
   BOOKING / RENDEZ-VOUS
   ========================================================= */

#rdv {
    padding: 120px 0;
}

.booking-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 244, 240, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018));
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 56px;
}

.booking-shell::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -240px;
    right: -180px;
    background: radial-gradient(circle,
            rgba(217, 161, 91, 0.13),
            transparent 70%);
    pointer-events: none;
}

.booking-intro {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.booking-title {
    margin-top: 12px;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.booking-description {
    max-width: 560px;
    margin-top: 24px;
    color: var(--ink-dim);
    font-size: 17px;
    line-height: 1.75;
}

.booking-timezone {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(245, 244, 240, 0.06);
    color: var(--ink-dim);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.booking-types {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 55px;
}

.booking-type {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.booking-type:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
}

.booking-type.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.65);
}

.booking-type-number {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--sand);
}

.booking-type.active .booking-type-number {
    color: var(--sand);
}

.booking-type-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.booking-type-content strong {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.booking-type-content small {
    color: var(--ink-dim);
    font-size: 12px;
    line-height: 1.5;
}

.booking-type.active .booking-type-content small {
    color: rgba(10, 10, 12, .6);
}

.booking-type-arrow {
    font-size: 20px;
    opacity: .55;
    transition:
        transform .3s ease,
        opacity .3s ease;
}

.booking-type:hover .booking-type-arrow {
    transform: translate(3px, -3px);
    opacity: 1;
}

.booking-calendar {
    position: relative;
    z-index: 1;
    margin-top: 32px;
}

.booking-panel {
    display: none;
    animation: bookingFade .35s ease;
}

.booking-panel.active {
    display: block;
}

@keyframes bookingFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.booking-panel-label {
    display: block;
    margin-bottom: 7px;
    color: var(--sand);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.booking-panel-header h3 {
    font-family: var(--serif-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.025em;
}

.booking-duration {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-dim);
    font-size: 11px;
}

/* --- Embeds Cal.com ---
   Pas de hauteur ni de fond imposés : Cal.com dimensionne lui-même
   son iframe, un fond/min-height fixe créait le bloc beige qui dépasse. */
.cal-embed {
    width: 100%;
    height: 700px;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
}

/* Cal.com injecte <cal-inline> autour de l'iframe : c'est lui qui portait
   le fond clair et la hauteur en trop. On le force à épouser le conteneur. */
.cal-embed cal-inline,
.cal-embed>* {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border-radius: 18px;
    overflow: hidden !important;
}

.cal-embed iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border: 0;
    border-radius: 18px;
    display: block;
    background: transparent;
}

/* Masque le skeleton clair affiché pendant le chargement */
.cal-embed .cal-embed-loading,
.cal-embed [data-cal-loading] {
    background: transparent !important;
}

@media (max-width: 640px) {
    .cal-embed {
        height: 860px;
    }
}

@media (max-width: 900px) {
    #rdv {
        padding: 90px 0;
    }

    .booking-shell {
        padding: 40px 28px;
        border-radius: 22px;
    }

    .booking-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-timezone {
        align-self: flex-start;
    }

    .booking-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #rdv {
        padding: 70px 0;
    }

    .booking-shell {
        padding: 32px 18px;
        border-radius: 18px;
    }

    .booking-title {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .booking-description {
        font-size: 15px;
    }

    .booking-type {
        padding: 18px;
        gap: 14px;
    }

    .booking-type-content small {
        display: none;
    }

    .booking-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-panel-header h3 {
        font-size: 23px;
    }
}

/* ---------- contact ---------- */
.contact-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
}

@media (max-width: 860px) {
    .contact-inner {
        grid-template-columns: 1fr;
    }
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
}

.contact-line:last-child {
    border-bottom: 1px solid var(--line);
}

.contact-line .k {
    color: var(--ink-faint);
    width: 90px;
    flex-shrink: 0;
    font-size: 13px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

input,
textarea {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 15px 16px;
    color: var(--ink);
    font-family: var(--body);
    font-size: 14.5px;
    transition: border-color 0.25s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-faint);
}

input:focus,
textarea:focus {
    border-color: var(--sand);
}

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

form button {
    align-self: flex-start;
    margin-top: 6px;
    background: var(--ink);
    color: #0a0a0c;
    border: none;
    padding: 15px 30px;
    border-radius: 99px;
    font-family: var(--body);
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

form button:hover {
    background: var(--sand);
    transform: translateY(-2px);
}

/* ---------- footer ---------- */
footer {
    padding: 48px 0;
}

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

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    border: 1px solid var(--line);
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 13.5px;
    transition:
        border-color 0.25s ease,
        color 0.25s ease;
    color: var(--ink-dim);
}

.footer-links a:hover {
    border-color: var(--sand);
    color: var(--ink);
}

.footer-copy {
    font-size: 12.5px;
    color: var(--ink-faint);
}

/* ---------- services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

@media (max-width: 980px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background .3s ease;
}

.service-card:hover {
    background: var(--bg-raised);
}

.service-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif-display);
    font-weight: 600;
    color: var(--sand);
    font-size: 15px;
}

.service-title {
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 18px;
}

.service-desc {
    color: var(--ink-dim);
    font-size: 14px;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 8px;
}

.service-tags span {
    font-size: 11.5px;
    color: var(--ink-faint);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 99px;
}
/* ---------- external/nav-link arrow icons (SVG, replaces the ↗ unicode
   character which iOS renders as a colored emoji instead of plain text) ---------- */
.link-arrow {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    vertical-align: -0.05em;
    flex-shrink: 0;
}

.circle-arrow {
    width: 14px;
    height: 14px;
}
