/*
Theme Name: Portfolio Thibault
Author: Thibault Martins
Description: Thème enfant Astra personnalisé pour le portfolio de Thibault Martins.
Version: 2.0.0
Text Domain: portfolio-thibault
Template: astra
*/

/* ==========================================================
   SOMMAIRE
   1. Variables
   2. Reset WordPress / Astra
   3. Header
   4. Composants partagés (bouton, label, lien, marquee, reveal)
   5. Écran d'introduction
   6. Halo souris
   7. Accueil — Hero
   7A. Accueil — Ils me font confiance
   8. Accueil — À propos (teaser)
   9. Accueil — Expériences
   9A. Accueil — Services
   10. Accueil — Chiffres
   11. Accueil — Contact
   12. Responsive tablette (max-width: 1100px)
   13. Responsive mobile (max-width: 760px)
   14. Page À propos (/a-propos/)
   15. Page Expériences (/experiences/)
   16. Page Parcours (/parcours/)
   17. Page Contact (/contact/)
   17A. Page Espace recruteurs (/espace-recruteurs/)
   18. Pied de page (footer Astra)
   19. Page 404 (404.php)
   19A. Popup "Partager mon portfolio"
   20. Pages WordPress standards (mentions légales, etc.)
   21. Accessibilité (prefers-reduced-motion)
========================================================== */


/* ==========================================================
   1. VARIABLES
========================================================== */

:root {
    --tm-background: #ffffff;
    --tm-background-light: #f6f6f3;
    --tm-white: #ffffff;
    --tm-black: #080a0e;
    --tm-black-soft: #11141a;
    --tm-text: #172033;
    --tm-muted: #6b6f7a;
    --tm-blue: #3444ef;
    --tm-blue-light: #8b94ff;
    --tm-border: rgba(23, 32, 51, 0.1);
    --tm-border-dark: rgba(255, 255, 255, 0.18);
}


/* ==========================================================
   2. RESET WORDPRESS / ASTRA
========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--tm-text);
    background: var(--tm-background) !important;
}

body,
#page,
.site,
.site-content,
.ast-container,
.content-area,
.site-main,
.entry-content {
    background: var(--tm-background) !important;
}

.ast-container:has(.tm-portfolio),
.site-content .ast-container:has(.tm-portfolio),
.site-content .content-area:has(.tm-portfolio),
.site-main:has(.tm-portfolio),
.entry-content:has(.tm-portfolio),
.entry-content > .wp-block-html:has(.tm-portfolio),
.entry-content > .wp-block-group:has(.tm-portfolio),
.wp-block-html:has(.tm-portfolio) {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Si le bloc HTML du portfolio est encapsulé dans un conteneur
   Elementor (section/container en largeur "boxed"), on force
   ce conteneur précis en pleine largeur. Ciblé uniquement sur
   les conteneurs qui contiennent .tm-portfolio, pour ne pas
   toucher un autre usage d'Elementor ailleurs sur le site. */
.elementor-section-wrap:has(.tm-portfolio),
.elementor-top-section:has(.tm-portfolio),
.elementor-container:has(.tm-portfolio),
.elementor-widget-wrap:has(.tm-portfolio),
.elementor-element:has(.tm-portfolio),
.e-con:has(.tm-portfolio),
.e-con-inner:has(.tm-portfolio) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tm-portfolio {
    position: relative;
    width: 100%;
    max-width: none;
    overflow: hidden;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.tm-portfolio > section,
.tm-portfolio > div {
    display: block;
    width: 100%;
    flex: 0 0 100%;
}

.tm-portfolio,
.tm-portfolio * {
    box-sizing: border-box;
}

.tm-portfolio h1,
.tm-portfolio h2,
.tm-portfolio h3,
.tm-portfolio p {
    margin-top: 0;
}

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

.tm-portfolio a {
    color: inherit;
}

.tm-portfolio::after {
    position: fixed;
    inset: 0;
    z-index: 9998;
    content: "";
    opacity: 0.025;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");
}


/* ==========================================================
   3. HEADER
========================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: transparent !important;
}

.ast-primary-header-bar,
.main-header-bar {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.site-header .ast-container {
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 18px 5vw !important;
}

.site-header .main-header-menu > .menu-item > a,
.site-header .ast-builder-menu-1 .menu-item > .menu-link {
    color: #111827 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-header .main-header-menu > .menu-item > a:hover,
.site-header .ast-builder-menu-1 .menu-item > .menu-link:hover {
    color: var(--tm-blue) !important;
}

.site-header .site-logo-img img {
    max-height: 72px;
    filter: brightness(0);
}

.site-header .ast-header-social-wrap a,
.site-header .ast-header-social-wrap svg {
    color: #111827 !important;
    fill: #111827 !important;
}


/* ==========================================================
   4. COMPOSANTS PARTAGÉS
   Réutilisés sur toutes les pages du site. Ne pas dupliquer
   ces classes dans les CSS des futures pages.
========================================================== */

.tm-section-label,
.tm-kicker {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tm-section-number {
    color: var(--tm-muted);
    font-size: 13px;
    letter-spacing: 0.1em;
}

.tm-button {
    position: relative;
    z-index: 1;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    overflow: hidden;
    padding: 18px 23px;
    border: 1px solid var(--tm-blue);
    background: var(--tm-blue);
    color: var(--tm-white) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    text-transform: uppercase;
    isolation: isolate;
    transition:
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.3s ease;
}

.tm-button::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: var(--tm-black);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(.2, .75, .2, 1);
}

.tm-button:hover::before {
    transform: scaleY(1);
}

.tm-button:hover {
    border-color: var(--tm-black);
    color: var(--tm-white) !important;
}

.tm-button--light {
    border-color: var(--tm-white);
    background: var(--tm-white);
    color: #111 !important;
}

.tm-button--light::before {
    background: var(--tm-blue);
}

.tm-button--light:hover {
    border-color: var(--tm-blue);
    color: var(--tm-white) !important;
}

.tm-button--outline {
    background: transparent;
    border-color: var(--tm-blue);
    color: var(--tm-blue) !important;
}

.tm-button--outline::before {
    background: var(--tm-blue);
}

.tm-button--outline:hover {
    border-color: var(--tm-blue);
    color: var(--tm-white) !important;
}

.tm-button--pill {
    gap: 14px;
    padding: 18px 32px;
    border-radius: 100px;
}

.tm-text-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin-top: 23px;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    color: var(--tm-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.tm-text-link:hover {
    gap: 34px;
    color: var(--tm-blue);
}

.tm-text-link--light {
    color: var(--tm-white) !important;
}

.tm-marquee {
    position: relative;
    z-index: 8;
    width: 100%;
    overflow: hidden;
    padding: 24px 0;
    background: var(--tm-blue);
    color: var(--tm-white);
}

.tm-marquee__track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 30px;
    animation: tm-marquee-scroll 25s linear infinite;
}

.tm-marquee__track span {
    font-size: clamp(25px, 3vw, 48px);
    font-weight: 800;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tm-marquee__track i {
    font-size: 22px;
    font-style: normal;
}

.tm-marquee:hover .tm-marquee__track {
    animation-play-state: paused;
}

@keyframes tm-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Apparitions au scroll, pilotées en JS (voir functions.php) */

.tm-reveal {
    opacity: 0;
    transform: translateY(38px) scale(0.98);
    transition:
        opacity 0.9s cubic-bezier(.16, .8, .2, 1),
        transform 0.9s cubic-bezier(.16, .8, .2, 1);
}

.tm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tm-reveal-image {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition:
        opacity 0.4s ease,
        clip-path 1.1s cubic-bezier(.2, .75, .2, 1);
}

.tm-reveal-image.is-visible {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

/* Titre en lignes qui montent à l'entrée, utilisé dans les hero */

.tm-title-line {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(110%);
    animation: tm-title-enter 1.05s cubic-bezier(.18, .8, .2, 1) forwards;
}

.tm-title-line:nth-child(2) {
    animation-delay: 0.14s;
}

@keyframes tm-title-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================
   5. ÉCRAN D'INTRODUCTION
   Uniquement sur l'accueil.
========================================================== */

.tm-loader {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;

    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;

    display: grid;
    place-items: center;
    overflow: hidden;

    margin: 0 !important;
    padding: 0 !important;

    background: var(--tm-black);
    color: var(--tm-white);

    transform: none !important;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.tm-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tm-loader__inner {
    width: min(420px, calc(100vw - 80px));
    max-width: none;
    margin: 0 auto;
    text-align: center;
}

.tm-loader__inner > p {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.tm-loader__logo {
    position: relative;
    width: min(220px, 45vw);
    margin: 0 auto 34px;
    opacity: 0;
    animation: tm-loader-logo-in 0.9s cubic-bezier(.18, .8, .2, 1) forwards;
}

.tm-loader__logo img {
    display: block;
    width: 100%;
    opacity: 0.5;
}

.tm-loader__logo::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(255, 255, 255, 1) 50%,
        transparent 75%
    );
    background-repeat: no-repeat;
    background-size: 220% 100%;
    background-position: -120% 0;
    -webkit-mask-image: url("https://thibault-martins.fr/wp-content/uploads/2026/04/cropped-logo-tm-blanc-scaled-2.png");
    mask-image: url("https://thibault-martins.fr/wp-content/uploads/2026/04/cropped-logo-tm-blanc-scaled-2.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    animation: tm-loader-shine 2.4s ease-in-out infinite;
    pointer-events: none;
}

.tm-loader__percent {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.tm-loader__percent strong {
    color: var(--tm-blue-light);
    font-size: 14px;
    font-weight: 800;
}

.tm-loader__progress {
    position: relative;
    width: 100%;
    height: 2px;
    margin-top: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.tm-loader__progress span {
    position: absolute;
    inset: 0;
    background: var(--tm-blue);
    transform: scaleX(0);
    transform-origin: left;
    animation: tm-loader-progress 1.8s ease forwards;
}

@keyframes tm-loader-logo-in {
    to {
        opacity: 1;
    }
}

@keyframes tm-loader-shine {
    0% {
        background-position: -120% 0;
    }

    100% {
        background-position: 120% 0;
    }
}

@keyframes tm-loader-progress {
    to {
        transform: scaleX(1);
    }
}


/* ==========================================================
   6. HALO SOURIS
   Réutilisable sur toutes les pages (le HTML l'inclut au cas
   par cas, comme sur l'accueil).
========================================================== */

.tm-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(52, 68, 239, 0.17) 0%,
            rgba(52, 68, 239, 0.06) 40%,
            transparent 70%
        );
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    mix-blend-mode: multiply;
}

body:hover .tm-cursor-glow {
    opacity: 1;
}


/* ==========================================================
   7. ACCUEIL — HERO
   Layout centré, épuré, sans forme skewée ni grille asymétrique.
========================================================== */

.tm-hero {
    position: relative;
    padding: 190px 6vw 110px;
    text-align: center;
    background: var(--tm-background);
    overflow: hidden;
}

.tm-hero::before {
    position: absolute;
    top: -20%;
    left: 50%;
    z-index: 0;
    width: 900px;
    height: 900px;
    content: "";
    border-radius: 50%;
    opacity: 0.5;
    background: radial-gradient(circle, rgba(52, 68, 239, 0.12), transparent 65%);
    transform: translateX(-50%);
    filter: blur(10px);
    animation: tm-hero-blob-a 26s ease-in-out infinite alternate;
}

.tm-hero::after {
    position: absolute;
    top: 10%;
    right: -10%;
    z-index: 0;
    width: 700px;
    height: 700px;
    content: "";
    border-radius: 50%;
    opacity: 0.4;
    background: radial-gradient(circle, rgba(139, 148, 255, 0.14), transparent 68%);
    filter: blur(14px);
    animation: tm-hero-blob-b 32s ease-in-out infinite alternate;
}

@keyframes tm-hero-blob-a {
    0% {
        transform: translate(-50%, 0) scale(1);
    }

    50% {
        transform: translate(-46%, 4%) scale(1.08);
    }

    100% {
        transform: translate(-55%, -3%) scale(0.95);
    }
}

@keyframes tm-hero-blob-b {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-5%, 5%) scale(1.12);
    }

    100% {
        transform: translate(4%, -4%) scale(0.92);
    }
}

.tm-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.tm-hero__inner .tm-kicker {
    color: var(--tm-muted);
}

.tm-hero__title {
    margin: 22px 0 16px;
    color: var(--tm-text);
    font-size: clamp(26px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.tm-hero__signature {
    margin: 0 0 26px;
    color: var(--tm-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 30px);
    font-style: italic;
    line-height: 1;
}

.tm-hero__intro {
    max-width: 540px;
    margin: 0 0 40px;
    color: var(--tm-muted);
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.7;
}

.tm-hero__inner .tm-hero__intro {
    margin-left: auto;
    margin-right: auto;
}

.tm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 70px;
}

.tm-hero__actions .tm-text-link {
    margin-top: 0;
}

.tm-hero__visual {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px;
    background: var(--tm-background-light);
    box-shadow: 0 40px 90px rgba(23, 32, 51, 0.14);
}

.tm-hero__photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.02);
    transition: transform 0.2s linear;
    will-change: transform;
}


/* ==========================================================
   7A. ACCUEIL — ILS ME FONT CONFIANCE
   Réutilise le keyframe tm-marquee-scroll (section 4).
========================================================== */

.tm-logos {
    position: relative;
    z-index: 6;
    padding: 64px 0 72px;
    text-align: center;
    background: var(--tm-background);
    border-top: 1px solid var(--tm-border);
    border-bottom: 1px solid var(--tm-border);
}

.tm-logos__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 40px;
    color: var(--tm-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.tm-logos__label::before,
.tm-logos__label::after {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--tm-border);
}

.tm-logos__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.tm-logos__track {
    display: flex;
    width: max-content;
    animation: tm-marquee-scroll 30s linear infinite;
}

.tm-logos:hover .tm-logos__track {
    animation-play-state: paused;
}

.tm-logos__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tm-logos__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4.2rem;
}

.tm-logos__item img {
    width: auto;
    max-width: 210px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition:
        filter 0.35s ease,
        transform 0.35s ease;
}

.tm-logos__item img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}


/* ==========================================================
   8. ACCUEIL — À PROPOS (teaser)
   Bloc centré, puis grille simple de 4 valeurs en cartes.
========================================================== */

.tm-about {
    padding: 130px 6vw;
    text-align: center;
    background: var(--tm-background-light);
}

.tm-about__intro {
    max-width: 680px;
    margin: 0 auto 64px;
}

.tm-about__intro h2 {
    max-width: 600px;
    margin: 22px auto;
    color: var(--tm-text);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.tm-about__intro h2 em {
    color: var(--tm-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
}

.tm-about__intro > p:not(.tm-section-label) {
    max-width: 560px;
    margin: 0 auto 8px;
    color: var(--tm-muted);
    font-size: 16px;
    line-height: 1.75;
}

.tm-about__values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    text-align: left;
}

.tm-about__value {
    padding: 32px 26px;
    background: var(--tm-white);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(23, 32, 51, 0.05);
}

.tm-about__value h3 {
    margin: 14px 0 8px;
    color: var(--tm-text);
    font-size: 18px;
}

.tm-about__value p {
    margin: 0;
    color: var(--tm-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ==========================================================
   9. ACCUEIL — EXPÉRIENCES
   Titre centré, cartes arrondies sur fond noir.
========================================================== */

.tm-experiences {
    padding: 120px 6vw;
    background: var(--tm-black);
    color: var(--tm-white);
}

.tm-section-heading {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.tm-section-heading h2 {
    margin: 14px 0 20px;
    color: var(--tm-text);
    font-size: clamp(36px, 4.5vw, 62px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.tm-experiences .tm-section-heading h2,
.tm-ap-parcours .tm-section-heading h2 {
    color: var(--tm-white);
}

.tm-experience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.tm-experience-card {
    position: relative;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--tm-border-dark);
    transition:
        transform 0.4s cubic-bezier(.2, .75, .2, 1),
        border-color 0.4s ease;
}

.tm-experience-card:hover {
    border-color: rgba(113, 125, 255, 0.85);
    transform: translateY(-10px);
}

.tm-card-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
}

.tm-card-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(3, 5, 9, 0.95), rgba(3, 5, 9, 0.3) 65%);
}

.tm-card-image--armada {
    background:
        linear-gradient(135deg, rgba(22, 36, 59, 0.35), rgba(5, 7, 11, 0.8)),
        url("https://thibault-martins.fr/wp-content/uploads/2026/07/photo-belem-1-scaled.jpg")
        right center / cover no-repeat;
}

.tm-card-image--armada-home {
    background:
        linear-gradient(135deg, rgba(22, 36, 59, 0.35), rgba(5, 7, 11, 0.8)),
        url("https://thibault-martins.fr/wp-content/uploads/2026/07/BELEM-THIBAULT-9-scaled.jpg")
        85% center / cover no-repeat;
}

.tm-card-image--barentin {
    background:
        linear-gradient(135deg, rgba(22, 36, 59, 0.35), rgba(5, 7, 11, 0.8)),
        url("https://thibault-martins.fr/wp-content/uploads/2026/07/barentin1.jpg")
        center / cover no-repeat;
}

.tm-card-image--nws {
    background:
        linear-gradient(135deg, rgba(22, 36, 59, 0.35), rgba(5, 7, 11, 0.8)),
        url("https://thibault-martins.fr/wp-content/uploads/2026/07/NWS.jpg")
        center / cover no-repeat;
}

.tm-card-image--personal {
    background:
        linear-gradient(135deg, rgba(22, 36, 59, 0.35), rgba(5, 7, 11, 0.8)),
        url("https://thibault-martins.fr/wp-content/uploads/2026/07/abbaye.jpg")
        center / cover no-repeat;
}

.tm-card-category {
    margin-bottom: 8px;
    color: #bfc4ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tm-experience-card h3 {
    max-width: 280px;
    margin-bottom: 12px;
    color: var(--tm-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 400;
    line-height: 1.1;
}

.tm-card-description {
    max-width: 300px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.55;
}

.tm-card-date {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ==========================================================
   9A. ACCUEIL — SERVICES
========================================================== */

.tm-services {
    padding: 120px 6vw;
    background: var(--tm-white);
}

.tm-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.tm-services__note {
    margin: 72px 0 0;
    color: var(--tm-muted);
    font-size: 13.5px;
    text-align: center;
}

.tm-stats {
    padding: 100px 6vw 110px;
    text-align: center;
    background: var(--tm-background-light);
}

.tm-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.tm-stat {
    padding: 40px 20px;
    background: var(--tm-white);
    border-radius: 20px;
    transition: transform 0.35s ease;
}

.tm-stat:hover {
    transform: translateY(-6px);
}

.tm-stat > div {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.tm-stat strong,
.tm-stat > div > span {
    color: var(--tm-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 3.8vw, 62px);
    font-weight: 400;
    line-height: 1;
}

.tm-stat p {
    margin: 14px 0 0;
    color: var(--tm-text);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1100px) {

    .tm-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 760px) {

    .tm-stats {
        padding: 70px 20px 80px;
    }

    .tm-stats__grid {
        grid-template-columns: 1fr;
    }

}

.tm-services__item {
    padding: 40px 32px;
    background: var(--tm-background-light);
    border-radius: 20px;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.tm-services__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(23, 32, 51, 0.08);
}

.tm-services__item h3 {
    margin-bottom: 12px;
    color: var(--tm-text);
    font-size: clamp(20px, 1.6vw, 24px);
}

.tm-services__item p {
    margin: 0 0 10px;
    color: var(--tm-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.tm-services__item p:last-child {
    margin-bottom: 0;
}

.tm-services__meta {
    font-size: 13px !important;
    line-height: 1.55 !important;
    padding-top: 12px;
    border-top: 1px solid var(--tm-border);
}

.tm-services__meta strong {
    color: var(--tm-text);
}


/* ==========================================================
   10. ACCUEIL — PREUVE SOCIALE (témoignages) & FAQ
========================================================== */

.tm-testimonials {
    padding: 120px 6vw;
    background: var(--tm-background-light);
}

.tm-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.tm-testimonials__grid--single {
    grid-template-columns: 1fr;
    max-width: 720px;
}

.tm-testimonials__grid--single .tm-testimonial {
    padding: 48px 44px;
}

.tm-testimonials__grid--single .tm-testimonial > p:first-child {
    font-size: 17px;
    line-height: 1.8;
}

.tm-testimonial {
    padding: 36px 30px;
    background: var(--tm-white);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(23, 32, 51, 0.05);
}

.tm-testimonial > p:first-child {
    margin: 0 0 22px;
    color: var(--tm-text);
    font-size: 15.5px;
    line-height: 1.7;
    font-style: italic;
}

.tm-testimonial > p:first-child strong {
    color: var(--tm-blue);
    font-weight: 700;
}

.tm-testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    color: var(--tm-text);
    font-size: 13px;
    font-weight: 700;
}

.tm-testimonial__author span {
    color: var(--tm-muted);
    font-size: 12px;
    font-weight: 500;
}

.tm-faq {
    padding: 120px 6vw;
    background: var(--tm-white);
}

.tm-faq__list {
    max-width: 760px;
    margin: 0 auto;
}

.tm-faq__item {
    padding: 24px 0;
    border-bottom: 1px solid var(--tm-border);
}

.tm-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    color: var(--tm-text);
    font-size: 16px;
    font-weight: 700;
    list-style: none;
}

.tm-faq__item summary::-webkit-details-marker {
    display: none;
}

.tm-faq__item summary::after {
    flex-shrink: 0;
    content: "+";
    color: var(--tm-blue);
    font-size: 22px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.tm-faq__item[open] summary::after {
    transform: rotate(45deg);
}

.tm-faq__item p {
    max-width: 640px;
    margin: 16px 0 0;
    color: var(--tm-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.tm-faq__item p a {
    color: var(--tm-blue);
    text-decoration: underline;
}


/* ==========================================================
   11. ACCUEIL — CONTACT
   Bloc final centré, simple, sans grille à 3 colonnes.
========================================================== */

.tm-contact {
    padding: 140px 6vw;
    text-align: center;
    background: var(--tm-black-soft);
    color: var(--tm-white);
}

.tm-contact__inner {
    max-width: 660px;
    margin: 0 auto;
}

.tm-contact__inner h2 {
    margin: 18px 0 22px;
    color: var(--tm-white);
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.tm-contact__inner h2 em {
    color: var(--tm-blue-light);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
}

.tm-contact__inner > p {
    max-width: 480px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.7;
}

.tm-contact__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 42px;
}

.tm-contact__links a {
    position: relative;
    color: var(--tm-white) !important;
    font-size: 14px;
    text-decoration: none !important;
}

.tm-contact__links a::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--tm-blue-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.tm-contact__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tm-contact__rec-link {
    display: inline-block;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.tm-contact__rec-link:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================
   12. RESPONSIVE TABLETTE (max-width: 1100px)
========================================================== */

@media (max-width: 1100px) {

    .tm-hero {
        padding: 160px 6vw 90px;
    }

    .tm-logos__item {
        padding: 0 2.6rem;
    }

    .tm-logos__item img {
        max-width: 170px;
        height: 50px;
    }

    .tm-about__values {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-services__grid {
        grid-template-columns: 1fr 1fr;
    }

    .tm-testimonials__grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   13. RESPONSIVE MOBILE (max-width: 760px)
========================================================== */

@media (max-width: 760px) {

    /* En-tête plein (non transparent) sur mobile pour éviter que
       le logo chevauche la zone du hero en dessous */
    .site-header {
        position: relative;
        background: var(--tm-white) !important;
        border-bottom: 1px solid var(--tm-border);
    }

    .site-header .ast-container {
        padding: 12px 20px !important;
    }

    .site-header .site-logo-img img {
        max-height: 52px;
    }

    /* Icône du menu mobile (burger) et tiroir de navigation :
       forcer une couleur sombre visible sur fond blanc, quel
       que soit le nom exact des classes générées par Astra */
    .site-header .ast-mobile-menu-buttons-fill,
    .site-header .ast-mobile-menu-trigger-icon,
    .site-header .menu-toggle-icon,
    .site-header .ast-header-navigation-menu-icons svg,
    .site-header button,
    .site-header button svg {
        fill: #111827 !important;
        color: #111827 !important;
    }

    .ast-mobile-popup-drawer,
    .ast-mobile-popup-content,
    .ast-mobile-popup-drawer .ast-mobile-popup-overflow {
        background: var(--tm-white) !important;
        color: var(--tm-text) !important;
    }

    .ast-mobile-popup-drawer .menu-item a,
    .ast-mobile-popup-drawer .ast-builder-menu-1 .menu-link {
        color: var(--tm-text) !important;
    }

    .tm-cursor-glow {
        display: none;
    }

    .tm-loader__inner {
        width: calc(100vw - 60px);
    }

    .tm-loader__logo {
        width: 55vw;
        margin-bottom: 26px;
    }

    .tm-loader__progress {
        margin-top: 38px;
    }

    .tm-hero {
        padding: 50px 24px 60px;
    }

    .tm-hero__title {
        font-size: clamp(28px, 8vw, 40px);
        line-height: 1.12;
    }

    .tm-hero__actions {
        flex-direction: column;
        gap: 20px;
    }

    .tm-hero__visual {
        border-radius: 18px;
    }

    .tm-marquee {
        padding: 18px 0;
    }

    .tm-marquee__track {
        gap: 22px;
        animation-duration: 18s;
    }

    .tm-marquee__track span {
        font-size: 26px;
    }

    .tm-logos {
        padding: 44px 0 50px;
    }

    .tm-logos__label {
        gap: 12px;
    }

    .tm-logos__label::before,
    .tm-logos__label::after {
        width: 20px;
    }

    .tm-logos__item {
        padding: 0 1.8rem;
    }

    .tm-logos__item img {
        max-width: 130px;
        height: 38px;
    }

    .tm-logos__track {
        animation-duration: 20s;
    }

    .tm-about {
        padding: 90px 24px;
    }

    .tm-about__values {
        grid-template-columns: 1fr;
    }

    .tm-experiences {
        padding: 80px 24px;
    }

    .tm-experience-grid {
        grid-template-columns: 1fr;
    }

    .tm-experience-card {
        min-height: 420px;
    }

    .tm-services {
        padding: 80px 24px;
    }

    .tm-services__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tm-testimonials,
    .tm-faq {
        padding: 80px 24px;
    }

    .tm-testimonials__grid--single .tm-testimonial {
        padding: 32px 26px;
    }

    .tm-contact {
        padding: 90px 24px 24px !important;
    }

    .tm-contact__rec-link {
        margin-top: 12px !important;
    }

    .tm-contact__links {
        flex-direction: column;
        gap: 18px;
    }

}




/* ==========================================================
   14. PAGE À PROPOS (/a-propos/)
   Namespace .tm-ap-* pour tout ce qui est spécifique à cette
   page. Réutilise .tm-button, .tm-text-link, .tm-marquee,
   .tm-section-label, .tm-section-number, .tm-hero__signature,
   .tm-hero__intro, .tm-reveal, .tm-reveal-image, .tm-title-line
   déjà définis en section 4 — ne pas les redéfinir ici.
========================================================== */

.tm-ap-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 53% 47%;
    align-items: stretch;
    overflow: hidden;
    background: var(--tm-background);
}

.tm-ap-hero__blue-shape {
    position: absolute;
    top: -28%;
    left: -12%;
    z-index: 0;
    width: 650px;
    height: 650px;
    content: "";
    border-radius: 50%;
    opacity: 0.55;
    background: radial-gradient(circle, rgba(52, 68, 239, 0.18), transparent 68%);
    filter: blur(20px);
}

.tm-ap-hero__content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px 2vw 80px 7vw;
}

.tm-ap-hero__title {
    margin: 26px 0 0;
    color: var(--tm-text);
}

.tm-ap-hero__title .tm-title-line {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: normal;
    font-size: clamp(30px, 4vw, 60px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.tm-ap-hero__title .tm-ap-hero__title-sub {
    max-width: 620px;
    margin-top: 14px;
    color: var(--tm-text);
    font-size: clamp(17px, 1.6vw, 24px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-transform: none;
}

.tm-ap-hero__visual {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: 120px 6vw 55px 0;
}

.tm-ap-hero__photo {
    position: relative;
    width: 100%;
    height: calc(100vh - 175px);
    min-height: 650px;
    object-fit: cover;
    object-position: center 30%;
    box-shadow: 0 35px 95px rgba(9, 11, 14, 0.21);
    transform: scale(1.04);
    transition: transform 0.15s linear;
    will-change: transform;
}

.tm-ap-presentation {
    display: grid;
    grid-template-columns: 60px 1.3fr 0.9fr;
    gap: 4vw;
    padding: 130px 6vw 100px;
    background: var(--tm-background-light);
    border-top: 1px solid var(--tm-border);
}

.tm-ap-presentation__text h2 {
    max-width: 620px;
    margin: 26px 0 28px;
    color: var(--tm-text);
    font-size: clamp(42px, 4.3vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.tm-ap-presentation__text h2 em {
    color: var(--tm-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    text-transform: none;
}

.tm-ap-presentation__text p {
    max-width: 600px;
    margin-bottom: 20px;
    color: var(--tm-muted);
    font-size: 17px;
    line-height: 1.75;
}

.tm-ap-presentation__quote {
    align-self: center;
    padding-left: 30px;
    border-left: 3px solid var(--tm-blue);
}

.tm-ap-presentation__quote p {
    margin: 0;
    color: var(--tm-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 32px);
    font-style: italic;
    line-height: 1.35;
}

.tm-ap-map-section {
    padding: 90px 6vw 100px;
    text-align: center;
    background: var(--tm-white);
}

.tm-ap-map-section .tm-section-heading {
    margin-bottom: 40px;
}

.tm-ap-map {
    max-width: 900px;
    height: 420px;
    margin: 0 auto;
    border: 1px solid var(--tm-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--tm-background-light);
}

.tm-ap-map .leaflet-popup-content-wrapper {
    border-radius: 12px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.tm-ap-map .leaflet-popup-content {
    margin: 12px 14px;
    color: var(--tm-text);
    font-size: 13.5px;
    line-height: 1.5;
}

.tm-ap-map .leaflet-popup-content strong {
    color: var(--tm-blue);
}

.tm-map-pin {
    display: block;
    width: 14px;
    height: 14px;
    border: 3px solid var(--tm-white);
    border-radius: 50%;
    background: var(--tm-blue);
    box-shadow: 0 0 0 3px rgba(52, 68, 239, 0.25);
}

@media (max-width: 760px) {

    .tm-ap-map-section {
        padding: 60px 20px 70px;
    }

    .tm-ap-map {
        height: 320px;
        border-radius: 16px;
    }

}

.tm-ap-parcours {
    position: relative;
    padding: 100px 6vw 115px;
    overflow: hidden;
    background: var(--tm-black);
    color: var(--tm-white);
}

.tm-ap-parcours::before {
    position: absolute;
    top: -240px;
    right: -220px;
    width: 600px;
    height: 600px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 68, 239, 0.22), transparent 70%);
    filter: blur(30px);
}

.tm-ap-timeline {
    position: relative;
    z-index: 2;
}

.tm-ap-parcours__teaser {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.tm-ap-parcours__teaser p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 17px;
    line-height: 1.75;
}

.tm-ap-timeline {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 6px 2px 24px;
    cursor: grab;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 3%,
        #000 97%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 3%,
        #000 97%,
        transparent 100%
    );
}

.tm-ap-timeline::-webkit-scrollbar {
    display: none;
}

.tm-ap-timeline.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.tm-ap-timeline-hint {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.tm-ap-timeline-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
    padding: 30px 26px;
    border: 1px solid var(--tm-border-dark);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease;
}

.tm-ap-timeline-item:hover {
    border-color: rgba(139, 148, 255, 0.5);
}

.tm-ap-timeline-item__date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--tm-blue-light);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tm-ap-timeline-item__date i {
    width: 100%;
    height: 1px;
    display: block;
    background: var(--tm-border-dark);
}

.tm-ap-timeline-item__content {
    max-width: none;
}

.tm-ap-timeline-item__label {
    margin: 0 0 8px;
    color: var(--tm-blue-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tm-ap-timeline-item__content h3 {
    margin: 0 0 10px;
    color: var(--tm-white);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tm-ap-timeline-item__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.6;
}

.tm-ap-traits {
    display: grid;
    grid-template-columns: 60px 1fr 1.4fr;
    gap: 4vw;
    padding: 110px 6vw;
    background: var(--tm-background-light);
    border-top: 1px solid var(--tm-border);
}

.tm-ap-traits--light {
    background: var(--tm-white);
}

.tm-ap-traits__headline h2 {
    max-width: 420px;
    margin: 24px 0 0;
    color: var(--tm-text);
    font-size: clamp(36px, 3.6vw, 56px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.tm-ap-traits__headline h2 em {
    color: var(--tm-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    text-transform: none;
}

.tm-ap-traits__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 40px;
    align-self: center;
}

.tm-ap-traits__list article {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--tm-border);
    transition: padding-left 0.35s ease, border-color 0.35s ease;
}

.tm-exp-page .tm-ap-traits__list article {
    grid-template-columns: 1fr;
}

.tm-ap-traits__list article:hover {
    padding-left: 10px;
    border-color: var(--tm-blue);
}

.tm-ap-traits__list article > span {
    color: var(--tm-blue);
    font-size: 12px;
    font-weight: 700;
}

.tm-ap-traits__list h3 {
    margin-bottom: 4px;
    color: var(--tm-text);
    font-size: 18px;
}

.tm-ap-traits__list p {
    margin: 0;
    color: var(--tm-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.tm-ap-cta {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70vh;
    overflow: hidden;
    padding: 120px 6vw;
    background: var(--tm-black-soft);
    color: var(--tm-white);
}

.tm-ap-cta__glow {
    position: absolute;
    top: 50%;
    right: -180px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 68, 239, 0.3), transparent 68%);
    transform: translateY(-50%);
    filter: blur(25px);
}

.tm-ap-cta__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.tm-ap-cta__content h2 {
    margin: 20px 0 26px;
    color: var(--tm-white);
    font-size: clamp(40px, 4.6vw, 74px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.tm-ap-cta__content h2 em {
    color: var(--tm-blue-light);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    text-transform: none;
}

.tm-ap-cta__content > p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.7;
}

.tm-ap-cta__actions {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-top: 34px;
}

/* Responsive — page À propos */

@media (max-width: 1100px) {

    .tm-ap-hero {
        grid-template-columns: 1fr;
    }

    .tm-ap-hero__content {
        padding: 150px 6vw 60px;
    }

    .tm-ap-hero__visual {
        min-height: 700px;
        padding: 0 7vw 70px;
    }

    .tm-ap-hero__photo {
        height: 650px;
        min-height: 650px;
    }

    .tm-ap-presentation {
        grid-template-columns: 45px 1fr;
    }

    .tm-ap-presentation__quote {
        grid-column: 2 / -1;
        margin-top: 20px;
    }

    .tm-ap-traits {
        grid-template-columns: 45px 1fr;
    }

    .tm-ap-traits__list {
        grid-column: 2 / -1;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    .tm-ap-hero {
        display: block;
        min-height: auto;
    }

    .tm-ap-hero__content {
        padding: 45px 24px 48px;
    }

    .tm-ap-hero__title .tm-title-line {
        font-size: clamp(26px, 8vw, 38px);
        line-height: 1.14;
    }

    .tm-ap-hero__title .tm-ap-hero__title-sub {
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.4;
    }

    .tm-ap-hero__blue-shape {
        display: none;
    }

    .tm-ap-hero__visual {
        min-height: 520px;
        padding: 0 24px 45px;
    }

    .tm-ap-hero__photo {
        height: 500px;
        min-height: 500px;
    }

    .tm-ap-presentation,
    .tm-ap-traits {
        grid-template-columns: 1fr;
        padding: 90px 24px;
    }

    .tm-ap-presentation__quote {
        grid-column: auto;
        padding-left: 20px;
        margin-top: 30px;
    }

    .tm-ap-traits__list {
        grid-column: auto;
    }

    .tm-ap-parcours {
        padding: 75px 24px;
    }

    .tm-ap-timeline-item {
        flex-basis: 240px;
        padding: 24px 20px;
    }

    .tm-ap-cta {
        min-height: auto;
        padding: 90px 24px;
    }

    .tm-ap-cta__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

}


/* ==========================================================
   15. PAGE EXPÉRIENCES (/experiences/)
   Réutilise .tm-experiences / .tm-experience-grid /
   .tm-experience-card (section 9, accueil), .tm-ap-traits
   (section 14, À propos) et .tm-ap-cta (section 14) tels
   quels — seuls le hero et le bloc compétences sont propres
   à cette page.
========================================================== */

.tm-exp-hero {
    position: relative;
    padding: 160px 6vw 90px;
    overflow: hidden;
    background: var(--tm-background);
    border-bottom: 1px solid var(--tm-border);
}

.tm-exp-hero::before {
    position: absolute;
    top: -30%;
    right: -10%;
    z-index: 0;
    width: 600px;
    height: 600px;
    content: "";
    border-radius: 50%;
    opacity: 0.5;
    background: radial-gradient(circle, rgba(52, 68, 239, 0.16), transparent 68%);
    filter: blur(20px);
}

.tm-exp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.tm-exp-hero__inner h1 {
    margin: 24px 0 26px;
    color: var(--tm-text);
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.tm-exp-hero__inner > p {
    max-width: 600px;
    color: var(--tm-muted);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.7;
}

.tm-card-image--scene {
    background:
        linear-gradient(135deg, rgba(22, 36, 59, 0.35), rgba(5, 7, 11, 0.8)),
        url("https://thibault-martins.fr/wp-content/uploads/2026/07/capitaine-marleau-scaled.jpg")
        center / cover no-repeat;
}

.tm-card-image--visuels {
    background:
        linear-gradient(135deg, rgba(22, 36, 59, 0.35), rgba(5, 7, 11, 0.8)),
        url("https://thibault-martins.fr/wp-content/uploads/2026/07/vitaa-scaled.jpg")
        center / cover no-repeat;
}

.tm-exp-skills {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 4vw;
    padding: 110px 6vw 120px;
    background: var(--tm-white);
}

.tm-exp-skills__headline h2 {
    max-width: 380px;
    margin: 24px 0 0;
    color: var(--tm-text);
    font-size: clamp(36px, 3.6vw, 56px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.tm-exp-skills__headline h2 em {
    color: var(--tm-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    text-transform: none;
}

.tm-exp-skills__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}

.tm-exp-skills__group p:not(.tm-section-label) {
    max-width: 480px;
    margin: 10px 0 0;
    color: var(--tm-muted);
    font-size: 15px;
    line-height: 1.75;
}

.tm-exp-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.tm-exp-tools span {
    padding: 10px 16px;
    border: 1px solid var(--tm-border);
    border-radius: 100px;
    color: var(--tm-text);
    font-size: 13px;
    font-weight: 700;
    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.tm-exp-tools span:hover {
    border-color: var(--tm-blue);
    background: var(--tm-blue);
    color: var(--tm-white);
}

.tm-exp-skills__certificates {
    color: var(--tm-muted);
    font-size: 13px;
    line-height: 1.6;
}

.tm-exp-skills__group--full {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--tm-border);
}

/* Responsive — page Expériences */

@media (max-width: 1100px) {

    .tm-exp-skills {
        grid-template-columns: 45px 1fr;
    }

    .tm-exp-skills__body {
        grid-column: 2 / -1;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    .tm-exp-hero {
        padding: 50px 24px 60px;
    }

    .tm-exp-skills {
        grid-template-columns: 1fr;
        padding: 80px 24px 90px;
    }

    .tm-exp-skills__body {
        grid-column: auto;
    }

}


/* ==========================================================
   16. PAGE PARCOURS (/parcours/)
   Réutilise .tm-ap-timeline / .tm-ap-timeline-item (section 14)
   et .tm-ap-cta (section 14) tels quels — seul le hero est
   propre à cette page.
========================================================== */

.tm-par-hero {
    position: relative;
    padding: 160px 6vw 90px;
    overflow: hidden;
    background: var(--tm-black);
    color: var(--tm-white);
}

.tm-par-hero::before {
    position: absolute;
    top: -30%;
    left: -10%;
    z-index: 0;
    width: 600px;
    height: 600px;
    content: "";
    border-radius: 50%;
    opacity: 0.5;
    background: radial-gradient(circle, rgba(52, 68, 239, 0.22), transparent 68%);
    filter: blur(20px);
}

.tm-par-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.tm-par-hero__inner h1 {
    margin: 24px 0 26px;
    color: var(--tm-white);
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.tm-par-hero__inner > p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.7;
}

.tm-par-timeline-section {
    padding: 100px 6vw 120px;
    background: var(--tm-black);
}

/* Responsive — page Parcours */

@media (max-width: 760px) {

    .tm-par-hero {
        padding: 50px 24px 60px;
    }

    .tm-par-timeline-section {
        padding: 70px 24px 90px;
    }

}


/* ==========================================================
   17. PAGE CONTACT (/contact/)
========================================================== */

.tm-ct-hero {
    padding: 160px 6vw 60px;
    background: var(--tm-background);
}

.tm-ct-hero__inner {
    max-width: 700px;
}

.tm-ct-hero__inner h1 {
    margin: 24px 0 20px;
    color: var(--tm-text);
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.tm-ct-hero__inner > p {
    color: var(--tm-muted);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.7;
}

.tm-ct-quiz {
    padding: 90px 6vw 40px;
    text-align: center;
    background: var(--tm-background);
}

.tm-ct-quiz__box {
    max-width: 620px;
    margin: 0 auto;
    padding: 36px 32px;
    background: var(--tm-background-light);
    border-radius: 20px;
}

.tm-ct-quiz__question {
    margin: 0 0 22px;
    color: var(--tm-text);
    font-size: 16px;
    font-weight: 700;
}

.tm-ct-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-ct-quiz__options button {
    padding: 14px 18px;
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    background: var(--tm-white);
    color: var(--tm-text);
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.tm-ct-quiz__options button:hover {
    border-color: var(--tm-blue);
    background: var(--tm-white);
}

.tm-ct-quiz__result-text {
    margin: 0 0 26px;
    color: var(--tm-text);
    font-size: 16px;
    line-height: 1.7;
}

.tm-ct-quiz__result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tm-ct-quiz__result-actions .tm-text-link {
    margin-top: 0;
}

.tm-ct-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6vw;
    padding: 60px 6vw 130px;
    background: var(--tm-background);
}

.tm-ct-details {
    align-self: start;
}

.tm-ct-vcard {
    margin-top: 28px;
}

.tm-ct-details__group {
    padding: 22px 0;
    border-bottom: 1px solid var(--tm-border);
}

.tm-ct-details__group span {
    display: block;
    margin-bottom: 8px;
    color: var(--tm-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.tm-ct-details__group a {
    color: var(--tm-text);
    font-size: 16px;
    text-decoration: none;
}

.tm-ct-details__group a:hover {
    color: var(--tm-blue);
}

.tm-ct-form {
    padding: 46px 5vw;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
}

.tm-ct-field {
    margin-bottom: 22px;
}

.tm-ct-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--tm-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tm-ct-field input,
.tm-ct-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--tm-border);
    background: var(--tm-background-light);
    color: var(--tm-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.tm-ct-field input:focus,
.tm-ct-field textarea:focus {
    border-color: var(--tm-blue);
    outline: none;
}

.tm-ct-field textarea {
    min-height: 150px;
    resize: vertical;
}

.tm-ct-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tm-ct-submit {
    width: 100%;
    justify-content: center;
    border: 1px solid var(--tm-blue);
    cursor: pointer;
}

.tm-ct-message {
    display: none;
    margin-bottom: 24px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.5;
}

.tm-ct-message.is-visible {
    display: block;
}

.tm-ct-message--success {
    border-left: 3px solid var(--tm-blue);
    background: var(--tm-background-light);
    color: var(--tm-text);
}

.tm-ct-message--error {
    border-left: 3px solid #c0392b;
    background: var(--tm-background-light);
    color: var(--tm-text);
}

/* Responsive — page Contact */

@media (max-width: 1100px) {

    .tm-ct-section {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    .tm-ct-hero {
        padding: 50px 24px 40px;
    }

    .tm-ct-quiz {
        padding: 50px 20px 20px;
    }

    .tm-ct-quiz__box {
        padding: 28px 22px;
    }

    .tm-ct-section {
        padding: 40px 24px 90px;
    }

    .tm-ct-form {
        padding: 32px 24px;
    }

}


/* ==========================================================
   17A. PAGE ESPACE RECRUTEURS (/espace-recruteurs/)
   Réutilise .tm-section-heading, .tm-ap-cta (section 14).
========================================================== */

.tm-rec-hero {
    padding: 160px 6vw 70px;
    text-align: center;
    background: var(--tm-background);
}

.tm-rec-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.tm-rec-hero__inner h1 {
    margin: 18px 0 20px;
    color: var(--tm-text);
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.tm-rec-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 600;
}

.tm-rec-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

.tm-rec-hero__intro {
    max-width: 480px;
    margin: 0 auto 36px;
    color: var(--tm-muted);
    font-size: 16px;
    line-height: 1.7;
}

.tm-rec-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.tm-rec-actions .tm-text-link {
    margin-top: 0;
}

.tm-rec-save {
    display: inline-block;
    margin-top: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--tm-muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.25s ease;
}

.tm-rec-save:hover {
    color: var(--tm-blue);
}

.tm-rec-why {
    padding: 100px 6vw 110px;
    text-align: center;
    background: var(--tm-background-light);
}

.tm-rec-why__inner {
    max-width: 680px;
    margin: 0 auto;
}

.tm-rec-why__question {
    margin: 0 0 20px;
    color: var(--tm-text);
    font-size: 15px;
    font-weight: 700;
}

.tm-rec-why__sectors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.tm-rec-why__sectors button {
    padding: 10px 18px;
    border: 1px solid var(--tm-border);
    border-radius: 100px;
    background: var(--tm-white);
    color: var(--tm-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.tm-rec-why__sectors button:hover {
    border-color: var(--tm-blue);
}

.tm-rec-why__sectors button.is-active {
    background: var(--tm-blue);
    border-color: var(--tm-blue);
    color: var(--tm-white);
}

.tm-rec-why__answer {
    padding: 28px 30px;
    background: var(--tm-white);
    border-radius: 18px;
    color: var(--tm-text);
    font-size: 15.5px;
    line-height: 1.7;
}

.tm-rec-facts {
    padding: 0 6vw 100px;
    background: var(--tm-background);
}

.tm-rec-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.tm-rec-fact {
    padding: 26px 22px;
    background: var(--tm-background-light);
    border-radius: 16px;
    text-align: center;
}

.tm-rec-fact span {
    display: block;
    margin-bottom: 8px;
    color: var(--tm-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tm-rec-fact p {
    margin: 0;
    color: var(--tm-text);
    font-size: 14.5px;
    line-height: 1.5;
}

.tm-rec-skills {
    padding: 20px 6vw 110px;
    text-align: center;
    background: var(--tm-white);
}

.tm-rec-skills__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 40px;
    text-align: left;
}

.tm-rec-skill {
    padding: 32px 26px;
    background: var(--tm-background-light);
    border-radius: 18px;
}

.tm-rec-skill h3 {
    margin: 0 0 10px;
    color: var(--tm-text);
    font-size: 18px;
}

.tm-rec-skill p {
    margin: 0;
    color: var(--tm-muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1100px) {

    .tm-rec-facts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-rec-skills__grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    .tm-rec-hero {
        padding: 120px 24px 50px;
    }

    .tm-rec-facts {
        padding: 0 20px 70px;
    }

    .tm-rec-why {
        padding: 70px 20px 80px;
    }

    .tm-rec-facts__grid {
        grid-template-columns: 1fr;
    }

    .tm-rec-skills {
        padding: 10px 20px 80px;
    }

}


/* ==========================================================
   18. PIED DE PAGE (footer Astra)
   Habillage du footer construit avec le Footer Builder Astra,
   pour rester cohérent avec la charte du reste du site.
========================================================== */

.site-above-footer-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap,
.ast-footer-overlay {
    background: var(--tm-black) !important;
    border-top: 0 !important;
}

.site-above-footer-wrap {
    border-top: 1px solid var(--tm-border-dark) !important;
}

.site-above-footer-wrap,
.site-above-footer-wrap *:not(a),
.site-primary-footer-wrap,
.site-primary-footer-wrap *:not(a) {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.site-above-footer-wrap a,
.site-primary-footer-wrap a,
.site-footer nav a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.site-above-footer-wrap a:hover,
.site-primary-footer-wrap a:hover,
.site-footer nav a:hover {
    color: var(--tm-blue-light) !important;
}

.site-above-footer-wrap .ast-builder-grid-row,
.site-primary-footer-wrap .ast-builder-grid-row {
    padding-top: 36px;
    padding-bottom: 36px;
}

.site-primary-footer-wrap,
.site-primary-footer-wrap p,
.site-primary-footer-wrap span {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 13px;
}

.site-above-footer-wrap svg,
.site-primary-footer-wrap svg {
    fill: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================================
   19. PAGE 404 (404.php)
========================================================== */

.tm-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 160px 6vw 100px;
    text-align: center;
    background: var(--tm-background);
}

.tm-404__title {
    max-width: 700px;
    margin: 18px 0 20px;
    color: var(--tm-text);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.tm-404__intro {
    max-width: 480px;
    margin: 0 0 40px;
    color: var(--tm-muted);
    font-size: 16px;
    line-height: 1.7;
}

.tm-404__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

@media (max-width: 760px) {

    .tm-404 {
        padding: 120px 24px 70px;
    }

    .tm-404__actions {
        flex-direction: column;
        gap: 18px;
    }

}


/* ==========================================================
   19AA. BOUTON FLOTTANT WHATSAPP
========================================================== */

.tm-whatsapp-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999985;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: var(--tm-white) !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tm-whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.45);
}

@media (max-width: 760px) {

    .tm-whatsapp-button {
        left: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }

}


/* ==========================================================
   19AB. ASSISTANT VIRTUEL (chatbot automatique)
========================================================== */

.tm-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999988;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.tm-chatbot__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: var(--tm-blue);
    color: var(--tm-white);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(52, 68, 239, 0.35);
    transition: transform 0.25s ease;
}

.tm-chatbot__toggle:hover {
    transform: translateY(-3px);
}

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

.tm-chatbot__dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.tm-chatbot__panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: min(320px, calc(100vw - 40px));
    max-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(23, 32, 51, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(.2, .75, .2, 1);
}

.tm-chatbot__panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.tm-chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--tm-border);
}

.tm-chatbot__header p {
    margin: 0;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 700;
}

.tm-chatbot__close {
    border: 0;
    background: none;
    color: var(--tm-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.tm-chatbot__messages {
    flex: 1;
    min-height: 140px;
    max-height: 220px;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-chatbot__message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
}

.tm-chatbot__message--bot {
    align-self: flex-start;
    background: var(--tm-background-light);
    color: var(--tm-text);
    border-bottom-left-radius: 4px;
}

.tm-chatbot__message--user {
    align-self: flex-end;
    background: var(--tm-blue);
    color: var(--tm-white);
    border-bottom-right-radius: 4px;
}

.tm-chatbot__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 18px 12px;
}

.tm-chatbot__quick button {
    padding: 6px 12px;
    border: 1px solid var(--tm-border);
    border-radius: 100px;
    background: var(--tm-white);
    color: var(--tm-text);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.tm-chatbot__quick button:hover {
    border-color: var(--tm-blue);
    color: var(--tm-blue);
}

.tm-chatbot__form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--tm-border);
}

.tm-chatbot__form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--tm-border);
    border-radius: 100px;
    font-family: inherit;
    font-size: 13px;
    color: var(--tm-text);
}

.tm-chatbot__form input:focus {
    outline: none;
    border-color: var(--tm-blue);
}

.tm-chatbot__form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tm-blue);
    color: var(--tm-white);
    font-size: 15px;
    cursor: pointer;
}

@media (max-width: 760px) {

    .tm-chatbot {
        right: 16px;
        bottom: 16px;
    }

    .tm-chatbot__toggle {
        width: 50px;
        height: 50px;
    }

    .tm-chatbot__panel {
        width: calc(100vw - 32px);
    }

}


/* ==========================================================
   19A. POPUP "PARTAGER MON PORTFOLIO"
   Affiché sur toutes les pages via functions.php, quand le
   visiteur s'apprête à quitter le site.
========================================================== */

.tm-share-popup {
    position: fixed;
    right: 20px;
    bottom: -20px;
    z-index: 999990;
    width: min(320px, calc(100vw - 40px));
    padding: 24px 24px 26px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(23, 32, 51, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(.2, .75, .2, 1);
}

.tm-share-popup.is-visible {
    bottom: 96px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.tm-share-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: none;
    color: var(--tm-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.tm-share-popup__title {
    margin: 0 0 4px;
    padding-right: 20px;
    color: var(--tm-text);
    font-size: 15px;
    font-weight: 700;
}

.tm-share-popup__text {
    margin: 0 0 16px;
    color: var(--tm-muted);
    font-size: 13.5px;
}

.tm-share-popup__button {
    width: 100%;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

@media (max-width: 760px) {

    .tm-share-popup {
        right: 16px;
        left: 16px;
        width: auto;
    }

}


/* ==========================================================
   20. PAGES WORDPRESS STANDARDS
   (mentions légales, conditions générales, politique de
   confidentialité, générées par un plugin comme Complianz).
   Ces pages n'utilisent pas .tm-portfolio : on habille juste
   leur typographie pour rester cohérent avec le reste du site,
   sans toucher au contenu généré par le plugin.
========================================================== */

body:not(:has(.tm-portfolio)) .entry-content {
    padding-top: 140px !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--tm-text);
    line-height: 1.7;
}

body:not(:has(.tm-portfolio)) .entry-content h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

body:not(:has(.tm-portfolio)) .entry-content > p:first-of-type {
    margin: 0 0 48px;
    color: var(--tm-muted);
    font-style: italic;
}

body:not(:has(.tm-portfolio)) .entry-content h2 {
    margin: 48px 0 16px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.01em;
}

body:not(:has(.tm-portfolio)) .entry-content h3 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 700;
}

body:not(:has(.tm-portfolio)) .entry-content p,
body:not(:has(.tm-portfolio)) .entry-content li {
    font-size: 15.5px;
    color: var(--tm-text);
}

body:not(:has(.tm-portfolio)) .entry-content ul,
body:not(:has(.tm-portfolio)) .entry-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

body:not(:has(.tm-portfolio)) .entry-content a {
    color: var(--tm-blue);
}

@media (max-width: 760px) {

    body:not(:has(.tm-portfolio)) .entry-content {
        padding-top: 100px !important;
    }

}


/* ==========================================================
   21. ACCESSIBILITÉ (prefers-reduced-motion)
   IMPORTANT : ce bloc doit rester le DERNIER bloc du fichier.
   Toute nouvelle page ajoutée plus tard doit être insérée
   AVANT cette section, jamais après — sinon son CSS se
   retrouve piégé à l'intérieur de cette media query.
========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .tm-loader {
        display: none;
    }

    .tm-reveal,
    .tm-reveal-image,
    .tm-title-line,
    .tm-card-image {
        opacity: 1;
        clip-path: none;
        transform: none;
        animation: none;
        transition: none;
    }

    .tm-marquee__track,
    .tm-logos__track,
    .tm-loader__logo,
    .tm-loader__logo::after,
    .tm-loader__progress span,
    .tm-hero::before,
    .tm-hero::after {
        animation: none;
    }

}