/* ===== PAGE 2B ===== */

/* Titre d'en-tête raccourci : "& création express." tient sur une seule ligne,
   donc on réduit la taille pour qu'elle reste dans la colonne (42% de l'écran). */
@media (min-width: 1001px) {
    .split-hero-content {
        padding-right: 40px;
    }

    .split-hero-title {
        font-size: clamp(1.85rem, 2.8vw, 2.8rem);
    }
}

.agence2b-section {
    padding: 100px 0 20px;
}

.agence2b-intro {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-top: -20px;
    margin-bottom: 10px;
}

/* ===== TRIPTYQUE / MANIÈRE DE TRAVAILLER : colonnes sobres, sans cadre ===== */
.agence2b-triptych-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    border-top: 1px solid #ececec;
    padding-top: 44px;
}

.agence2b-triptych-grid--divided .agence2b-triptych-item {
    padding-left: 44px;
    border-left: 1px solid #ececec;
}

.agence2b-triptych-grid--divided .agence2b-triptych-item:first-child {
    padding-left: 0;
    border-left: none;
}

.agence2b-triptych-item {
    display: flex;
    flex-direction: column;
}

.agence2b-triptych-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #C8102E;
    margin-bottom: 22px;
}

.agence2b-triptych-icon svg {
    width: 100% !important;
    height: 100% !important;
}

.agence2b-triptych-number {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #C8102E;
    margin-bottom: 10px;
}

.agence2b-triptych-item h3 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin: 0 0 16px;
    line-height: 1.25;
}

.agence2b-triptych-item p {
    font-size: 14px;
    line-height: 1.75;
    color: #666;
    margin: 0 0 18px;
}

.agence2b-triptych-item .explore-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.agence2b-triptych-item .explore-link:hover {
    color: #C8102E;
    transform: translateX(6px);
}

/* ===== NOTRE MANIÈRE DE TRAVAILLER : titre à gauche, chronologie à droite ===== */
.agence2b-process {
    padding-top: 100px;
}

.mini-divider {
    display: block;
    width: 40px;
    height: 3px;
    background: #C8102E;
    border-radius: 2px;
    margin-top: 18px;
}

.agence2b-process-grid {
    display: grid;
    grid-template-columns: 0.6fr 2fr;
    gap: 60px;
    align-items: start;
}

.agence2b-process-title {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(1.625rem, 2.3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin: 12px 0 0;
}

.agence2b-process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 6px;
}

.agence2b-process-node-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.agence2b-process-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #C8102E;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.agence2b-process-node::after {
    content: "\2713";
    position: absolute;
    inset: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    opacity: 0;
    transform: scale(0);
}

.agence2b-process-line {
    position: relative;
    flex: 1;
    height: 1px;
    background: rgba(200, 16, 46, 0.25);
    margin: 0 -40px 0 6px;
}

.agence2b-process-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #C8102E;
    transform: scaleX(0);
    transform-origin: left center;
}

/* Ligne "en mouvement" : elle se remplit progressivement, puis chaque point
   se valide (coche) au moment où elle l'atteint, avant de se réinitialiser. */
.process-node--1 { animation: process-node1 6s ease-in-out infinite; }
.process-node--1::after { animation: process-check1 6s ease-in-out infinite; }
.process-line--1::after { animation: process-line1 6s linear infinite; }

.process-node--2 { animation: process-node2 6s ease-in-out infinite; }
.process-node--2::after { animation: process-check2 6s ease-in-out infinite; }
.process-line--2::after { animation: process-line2 6s linear infinite; }

.process-node--3 { animation: process-node3 6s ease-in-out infinite; }
.process-node--3::after { animation: process-check3 6s ease-in-out infinite; }

@keyframes process-node1 {
    0%, 2% { background: #fff; }
    4% { background: #C8102E; }
    88% { background: #C8102E; }
    94%, 100% { background: #fff; }
}

@keyframes process-check1 {
    0%, 2% { opacity: 0; transform: scale(0); }
    4% { opacity: 1; transform: scale(1); }
    88% { opacity: 1; transform: scale(1); }
    94%, 100% { opacity: 0; transform: scale(0); }
}

@keyframes process-line1 {
    0%, 5% { transform: scaleX(0); }
    34% { transform: scaleX(1); }
    88% { transform: scaleX(1); }
    94%, 100% { transform: scaleX(0); }
}

@keyframes process-node2 {
    0%, 34% { background: #fff; }
    38% { background: #C8102E; }
    88% { background: #C8102E; }
    94%, 100% { background: #fff; }
}

@keyframes process-check2 {
    0%, 34% { opacity: 0; transform: scale(0); }
    38% { opacity: 1; transform: scale(1); }
    88% { opacity: 1; transform: scale(1); }
    94%, 100% { opacity: 0; transform: scale(0); }
}

@keyframes process-line2 {
    0%, 38% { transform: scaleX(0); }
    66% { transform: scaleX(1); }
    88% { transform: scaleX(1); }
    94%, 100% { transform: scaleX(0); }
}

@keyframes process-node3 {
    0%, 66% { background: #fff; }
    70% { background: #C8102E; }
    88% { background: #C8102E; }
    94%, 100% { background: #fff; }
}

@keyframes process-check3 {
    0%, 66% { opacity: 0; transform: scale(0); }
    70% { opacity: 1; transform: scale(1); }
    88% { opacity: 1; transform: scale(1); }
    94%, 100% { opacity: 0; transform: scale(0); }
}

.agence2b-process-number {
    display: block;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #C8102E;
    margin-bottom: 8px;
}

.agence2b-process-step h3 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 10px;
}

.agence2b-process-step p {
    font-size: 13px;
    line-height: 1.7;
    color: #777;
    margin: 0;
}

/* ===== UN 2E BUREAU ===== */
.agence2b-bureau-section {
    padding: 100px 0;
    background: #fafafa;
}

.agence2b-bureau-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.agence2b-bureau-text p:not(.section-subtitle) {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Le lien "Découvrir l'équipe" vit hors d'une .card : il n'héritait donc
   d'aucun style et retombait sur le bleu souligné par défaut du navigateur. */
.agence2b-bureau-text .explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.agence2b-bureau-text .explore-link:hover {
    color: #C8102E;
    transform: translateX(6px);
}

.agence2b-bureau-photo-wrap {
    position: relative;
}

.agence2b-bureau-photo {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.agence2b-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, #8f0a1e 0%, #8f0a1e 20%, #fd0000 100%);
    color: #fff;
    padding: 26px 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.agence2b-badge-title {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.agence2b-badge-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.agence2b-badge-text {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== NOS EXPERTISES ===== */
.agence2b-expertises {
    padding-bottom: 100px;
}

.agence2b-expertise-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid #ececec;
    padding-top: 40px;
}

.agence2b-expertise-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 0 28px;
    border-left: 1px solid #ececec;
}

.agence2b-expertise-item:first-child {
    padding-left: 0;
    border-left: none;
}

.agence2b-expertise-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #C8102E;
}

.agence2b-expertise-icon svg {
    width: 100% !important;
    height: 100% !important;
}

.agence2b-expertise-label {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.agence2b-expertise-item p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #888;
    margin: 0;
}

/* ===== CTA ===== */
.agence2b-cta {
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.88) 45%, rgba(10, 10, 10, 0.8) 100%),
        url('/assets/image/reunion.jpg') center / cover no-repeat;
    padding: 110px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.agence2b-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 50px;
}

.agence2b-cta-title {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(1.875rem, 3vw, 2.625rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.agence2b-cta-title .highlight-red {
    color: #C8102E;
}

.agence2b-cta-divider {
    width: 1px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    justify-self: center;
}

.agence2b-cta-right p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
}

.agence2b-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C8102E;
    color: #fff;
    padding: 15px 28px;
    border-radius: 8px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.agence2b-cta-btn:hover {
    background: #e30613;
    color: #fff;
    transform: translateY(-3px);
}

/* ===== ANIMATIONS DES ICÔNES : chaque icône bouge selon sa nature ===== */
.agence2b-triptych-icon,
.agence2b-expertise-icon {
    position: relative;
}

/* Stylo / crayon (stratégie, direction artistique) : petit geste d'écriture */
.icon-anim-write {
    animation: icon-write 2.6s ease-in-out infinite;
    transform-origin: 20% 80%;
}

@keyframes icon-write {
    0%, 100% { transform: rotate(-9deg); }
    50% { transform: rotate(9deg); }
}

/* Pen-tool (création) : trait qui dessine, va-et-vient en diagonale */
.icon-anim-draw {
    animation: icon-draw 2.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes icon-draw {
    0%, 100% { transform: translate(-2px, 2px) rotate(-8deg); }
    50% { transform: translate(2px, -2px) rotate(8deg); }
}

/* Mégaphone (brand content) : petite annonce qui secoue puis marque une pause */
.icon-anim-announce {
    animation: icon-announce 3.6s ease-in-out infinite;
    transform-origin: 15% 50%;
}

@keyframes icon-announce {
    0%, 55%, 100% { transform: rotate(0deg) scale(1); }
    60% { transform: rotate(-12deg) scale(1.08); }
    65% { transform: rotate(10deg) scale(1.08); }
    70% { transform: rotate(-8deg) scale(1.04); }
    75% { transform: rotate(0deg) scale(1); }
}

/* Cible (stratégie expertise), Play (brand content expertise) : pulsation */
.icon-anim-pulse {
    animation: icon-pulse 2.2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

/* Anneau radar autour des icônes circulaires (cible, bulle, play) */
.icon-anim-ring::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: icon-ring 2.2s ease-out infinite;
}

@keyframes icon-ring {
    0% { transform: scale(0.6); opacity: 0.55; }
    75%, 100% { transform: scale(1.35); opacity: 0; }
}

/* Bulle de message (copywriting) : petit rebond, comme une notification */
.icon-anim-bounce {
    animation: icon-bounce 1.8s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Courbe ascendante (production) : mouvement de croissance vers le haut */
.icon-anim-grow {
    animation: icon-grow 2s ease-in-out infinite;
}

@keyframes icon-grow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, -4px); }
}

.icon-anim-slow {
    animation-duration: 3.4s;
    animation-delay: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .agence2b-triptych-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .agence2b-triptych-grid--divided .agence2b-triptych-item {
        padding-left: 0;
        padding-top: 28px;
        border-left: none;
        border-top: 1px solid #ececec;
    }

    .agence2b-triptych-grid--divided .agence2b-triptych-item:first-child {
        padding-top: 0;
        border-top: none;
    }

    .agence2b-process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .agence2b-process-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .agence2b-process-line {
        display: none;
    }

    .agence2b-bureau-grid {
        grid-template-columns: 1fr;
    }

    .agence2b-expertise-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 28px;
    }

    .agence2b-expertise-item:nth-child(3n+1) {
        padding-left: 0;
        border-left: none;
    }

    .agence2b-cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .agence2b-cta-divider {
        width: 60px;
        height: 1px;
        margin: 10px auto;
    }
}

@media (max-width: 768px) {
    .agence2b-section {
        padding: 60px 0 10px;
    }

    .agence2b-bureau-section {
        padding: 60px 0;
    }

    .agence2b-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }

    .agence2b-expertise-item {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .agence2b-bureau-photo {
        height: 280px;
    }

    .agence2b-badge {
        right: 14px;
        bottom: 14px;
        max-width: 200px;
        padding: 14px 16px;
        gap: 14px;
    }

    .agence2b-badge-title {
        font-size: 30px;
    }

    /* Le texte a déjà ses propres retours à la ligne (nl2br) : le nowrap
       hérité forçait quand même chaque segment sur une seule ligne, ce qui
       dépassait le badge (et l'écran) sur les petits mobiles. */
    .agence2b-badge-text {
        white-space: normal;
    }
}
