/* Ajustements légers chargés après le bundle principal. */
.footer-avis {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    padding-top: 26px;
    padding-bottom: 26px;
}

.footer-avis .avis-google-bandeau {
    width: 100%;
    min-height: 104px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.footer-avis .avis-google-texte {
    display: flex;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.footer-avis .avis-google-lien { margin-left: auto; }

.footer-avis .avis-google-note {
    flex-wrap: wrap;
    line-height: 1.25;
}

@media (max-width: 620px) {
    .footer-avis { min-height: 0; }
    .footer-avis .avis-google-bandeau { align-items: flex-start; text-align: left; }
    .footer-avis .avis-google-note { justify-content: flex-start; }
    .footer-avis .avis-google-lien { margin-left: 0; }
}

.blog-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.blog-pagination a {
    width: fit-content;
    padding: 12px 18px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
}
.blog-pagination a:last-child { justify-self: end; }
.blog-pagination > span { color: var(--ink-3); font-size: .82rem; font-weight: 800; }
@media (max-width: 620px) {
    .blog-pagination { grid-template-columns: 1fr 1fr; }
    .blog-pagination > span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}

/* Le titre du formulaire reste dans le flux normal sur la page Contact. */
.contact-page .contact-form-intro {
    position: static;
    top: auto;
}

.contact-page .budget-fieldset {
    padding: 24px 0 4px;
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-page .budget-fieldset legend {
    padding: 0 12px 0 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.contact-page .budget-fieldset > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .78rem;
}

.contact-page .budget-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 20px;
}

.contact-page .budget-options label {
    position: relative;
    cursor: pointer;
}

.contact-page .budget-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-page .budget-options span {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8faf9;
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.contact-page .budget-options input:checked + span {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(18, 39, 43, .08);
}

.contact-page .budget-options input:focus-visible + span {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .contact-page .budget-options {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 440px) {
    .contact-page .budget-options {
        grid-template-columns: 1fr;
    }
}

/* Photo d'équipe alignée sur le même conteneur que le texte. */
.equipe-photo {
    width: min(calc(100% - 48px), var(--container));
    margin: 44px auto 42px;
}

.equipe-photo img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

@media (max-width: 620px) {
    .equipe-photo {
        width: min(calc(100% - 34px), var(--container));
        margin: 32px auto 34px;
    }
}

/* Démonstrations propres à chaque page Solution. */
.solution-media-section {
    overflow: hidden;
    padding-top: clamp(68px, 8vw, 112px);
    padding-bottom: clamp(72px, 9vw, 124px);
}

.solution-media-heading {
    max-width: 820px;
    margin-bottom: 38px;
}

.solution-media-heading > p {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.solution-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(300px, .92fr);
    gap: clamp(18px, 2.5vw, 34px);
    align-items: start;
}

.solution-media-card {
    overflow: hidden;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(18, 39, 43, .08);
}

.solution-media-card-gif {
    margin-top: clamp(28px, 5vw, 72px);
}

.solution-media-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 5px 12px;
    color: var(--ink);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.solution-media-label span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    font-size: .68rem;
}

.solution-media-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    border: 1px solid #dce3e1;
    border-radius: 15px;
    background: #f5f7f6;
}

.solution-media-card figcaption {
    padding: 16px 8px 8px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

@media (max-width: 820px) {
    .solution-media-grid { grid-template-columns: 1fr; }
    .solution-media-card-gif { margin-top: 0; }
}

@media (max-width: 520px) {
    .solution-media-card { padding: 8px; border-radius: 18px; }
    .solution-media-card img { border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .solution-media-card-gif { display: none; }
}

/* La frise de méthode reste volontairement statique : aucune barre jaune
   ne grandit au défilement et les cartes ne se décalent plus à gauche. */
.methode-remplissage { display: none !important; }
.approach-step,
.approach-step.est-active {
    border-color: rgba(18, 39, 43, .1);
    background: var(--paper);
    transform: none;
    transition: none;
}
.approach-step.est-active::after,
.approach-step::after {
    border-color: var(--line);
    background: var(--paper);
    box-shadow: none;
    transition: none;
}
.approach-step.est-active > .card-index { color: inherit; }
.section-dark .approach-step,
.section-dark .approach-step.est-active {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    transform: none;
}
.section-dark .approach-step::after,
.section-dark .approach-step.est-active::after {
    border-color: rgba(255, 255, 255, .25);
    background: var(--ink);
    box-shadow: none;
}
.section-dark .approach-step.est-active > .card-index { color: var(--accent); }

.editorial-hub-photo-section {
    padding-top: clamp(44px, 6vw, 78px);
    padding-bottom: clamp(56px, 7vw, 96px);
}
.editorial-hub-photo { max-width: 1120px; margin: 0 auto; }
.editorial-hub-photo img { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); }

/* Deux lectures éditoriales substantielles avant « Mon approche ». */
.detail-deep-section {
    padding-top: clamp(72px, 8vw, 118px);
    padding-bottom: clamp(72px, 8vw, 118px);
    border-top: 1px solid var(--line);
}

.detail-deep-section + .detail-deep-section { background: var(--paper); }

.detail-deep-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
    align-items: center;
    gap: clamp(46px, 9vw, 140px);
}

.detail-deep-copy h2 {
    max-width: 900px;
    margin-bottom: 28px;
    font-size: clamp(2.45rem, 4vw, 4.5rem);
}

.detail-deep-copy > p {
    max-width: 820px;
    margin: 0;
    color: var(--ink-3);
    font-size: clamp(1.04rem, 1.5vw, 1.22rem);
    line-height: 1.75;
}

.detail-deep-aside {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 4vw, 48px);
    color: var(--white);
    border-radius: 26px;
    background: var(--ink);
    box-shadow: 22px 24px 0 var(--cyan-soft);
}

.detail-deep-aside > span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 56px;
    color: var(--ink);
    border-radius: 50%;
    background: var(--accent);
    font-size: .72rem;
    font-weight: 900;
}

.detail-deep-aside h3 { margin-bottom: 16px; font-size: clamp(1.6rem, 2.5vw, 2.35rem); }
.detail-deep-aside p { margin: 0; color: rgba(255, 255, 255, .7); line-height: 1.7; }

/* Article long ajouté à chaque page Présentation. */
.presentation-longread {
    color: var(--white);
    background: var(--ink);
}

.presentation-longread-inner {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
    gap: clamp(50px, 9vw, 140px);
}

.presentation-longread header { position: sticky; top: 120px; align-self: start; }
.presentation-longread .eyebrow { color: var(--cyan); }
.presentation-longread h2 { margin-bottom: 28px; font-size: clamp(2.5rem, 4.3vw, 4.8rem); }
.presentation-longread-lead { color: rgba(255, 255, 255, .68); font-size: 1.08rem; line-height: 1.75; }

.presentation-longread-parts { border-top: 1px solid rgba(255, 255, 255, .16); }
.presentation-longread-parts > section {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 22px;
    padding: 35px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.presentation-longread-parts > section > span { color: var(--accent); font-size: .75rem; font-weight: 900; }
.presentation-longread-parts h3 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.3vw, 2.3rem); }
.presentation-longread-parts p { margin: 0; color: rgba(255, 255, 255, .7); line-height: 1.75; }

@media (max-width: 860px) {
    .detail-deep-grid,
    .presentation-longread-inner { grid-template-columns: 1fr; }
    .presentation-longread header { position: static; }
    .detail-deep-aside { box-shadow: 12px 14px 0 var(--cyan-soft); }
}

@media (max-width: 520px) {
    .detail-deep-aside > span { margin-bottom: 34px; }
    .presentation-longread-parts > section { grid-template-columns: 1fr; gap: 10px; }
}

/* Commandes accessibles pour les bandeaux de réalisations. */
.carousel-shell { position: relative; }
.carousel-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    padding: 0;
    color: var(--ink);
    font-size: 1.3rem;
    border: 1px solid rgba(18, 39, 43, .18);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 10px 28px rgba(12, 31, 34, .18);
    transform: translateY(-50%);
    cursor: pointer;
}
.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    color: var(--white);
    background: var(--ink);
    outline: 3px solid rgba(241, 253, 13, .45);
    outline-offset: 3px;
}
.carousel-arrow-prev { left: clamp(8px, 2vw, 28px); }
.carousel-arrow-next { right: clamp(8px, 2vw, 28px); }
.carousel-shell .defile,
.portfolio-carousel-viewport {
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.carousel-shell .defile::-webkit-scrollbar,
.portfolio-carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-shell.est-manuel .defile {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
}
.carousel-shell.est-manuel .defile-piste {
    animation: none !important;
    transform: none !important;
}
.carousel-shell .article-card { scroll-snap-align: center; }
.portfolio-carousel-viewport {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 4px max(6vw, 72px) 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
}
.portfolio-page .portfolio-carousel .article-card-grid {
    display: flex;
    width: max-content;
    gap: 22px;
}
.portfolio-page .portfolio-carousel .article-card {
    width: min(372px, 82vw);
    flex: 0 0 min(372px, 82vw);
}
@media (max-width: 620px) {
    .carousel-arrow { width: 44px; height: 44px; }
    .carousel-arrow-prev { left: 6px; }
    .carousel-arrow-next { right: 6px; }
    .portfolio-carousel-viewport { padding-inline: 54px; }
}
