/* ==========================================================================
   Actonix — styles partagés (footer, bannières internes, pages de contenu)
   Couleurs charte : bleu #04213f · rouge #ef0548 · texte #0e1e36
   ========================================================================== */

:root {
    --ax-blue: #04213f;
    --ax-red: #ef0548;
    --ax-dark: #0e1e36;
    --ax-muted: #64748b;
    --ax-light: #fdf6f8;
    --ax-border: #e2e8f0;
}

/* ===== Bannière des pages internes ===== */
.inner-hero {
    background: linear-gradient(135deg, #04213f 0%, #06305c 100%);
    padding: 140px 0 70px;
    position: relative;
    overflow: hidden;
}
.inner-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(239, 5, 72, .12);
}
.inner-hero__sub {
    display: inline-block;
    color: #ff5a86;
    font-family: Lato, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 14px;
}
.inner-hero h1 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
    margin: 0 0 16px;
    max-width: 820px;
}
.inner-hero__lead {
    color: #c7d2e3;
    font-family: Lato, sans-serif;
    font-size: 18px;
    max-width: 720px;
    margin: 0;
}
.inner-hero__breadcrumb {
    position: relative;
    z-index: 2;
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #9fb3cc;
    margin-bottom: 20px;
}
.inner-hero__breadcrumb a { color: #9fb3cc; text-decoration: none; }
.inner-hero__breadcrumb a:hover { color: #fff; }

/* ===== Contenu / prose ===== */
.content-section { padding: 80px 0; }
.content-section--alt { background: var(--ax-light); }
.prose { font-family: Lato, sans-serif; color: #33415c; font-size: 17px; line-height: 1.75; }
.prose h2 { color: var(--ax-blue); font-weight: 700; font-size: 30px; margin: 0 0 22px; }
.prose h3 { color: var(--ax-dark); font-weight: 600; font-size: 22px; margin: 34px 0 14px; }
.prose p { margin: 0 0 18px; }
.prose ul { list-style: none; padding: 0; margin: 0 0 22px; }
.prose ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}
.prose ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--ax-red);
    font-size: 14px;
}
.prose strong { color: var(--ax-dark); }

/* Grille de "features" / prestations */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(4, 33, 63, .1);
}
.feature-card h3 { color: var(--ax-blue); font-size: 19px; font-weight: 600; margin: 0 0 12px; }
.feature-card p { font-family: Lato, sans-serif; color: var(--ax-muted); margin: 0; font-size: 15px; line-height: 1.6; }
.feature-card .icon { color: var(--ax-red); font-size: 26px; margin-bottom: 16px; display: block; }

/* Bloc technologies */
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tech-tags span {
    background: #eef2f8;
    color: var(--ax-blue);
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 20px;
}

/* CTA bandeau */
.cta-band {
    background: linear-gradient(135deg, #04213f 0%, #06305c 100%);
    border-radius: 14px;
    padding: 48px;
    text-align: center;
    margin-top: 20px;
}
.cta-band h2 { color: #fff; font-weight: 700; font-size: 28px; margin: 0 0 14px; }
.cta-band p { color: #c7d2e3; font-family: Lato, sans-serif; margin: 0 0 26px; font-size: 17px; }

/* ===== Bandeau certifications ===== */
.cert-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 40px;
}
.cert-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    padding: 22px 24px;
}
.cert-item .cert-ico { color: var(--ax-red); font-size: 28px; line-height: 1; margin-top: 2px; }
.cert-item h3 { font-family: Poppins, sans-serif; color: var(--ax-blue); font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.cert-item p { font-family: Lato, sans-serif; color: var(--ax-muted); font-size: 14px; margin: 0; line-height: 1.5; }

/* ===== Footer ===== */
.ax-footer {
    background: var(--ax-blue);
    color: #c7d2e3;
    font-family: Lato, sans-serif;
    padding: 70px 0 0;
}
.ax-footer a { color: #c7d2e3; text-decoration: none; transition: color .2s ease; }
.ax-footer a:hover { color: #fff; }
.ax-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}
.ax-footer__logo { margin-bottom: 20px; display: inline-block; }
.ax-footer__about { font-size: 15px; line-height: 1.7; color: #9fb3cc; margin: 0 0 18px; }
.ax-footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ax-footer ul { list-style: none; padding: 0; margin: 0; }
.ax-footer ul li { margin-bottom: 12px; font-size: 15px; }
.ax-footer__social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    margin-right: 8px;
}
.ax-footer__social a:hover { background: var(--ax-red); border-color: var(--ax-red); }
.ax-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    color: #9fb3cc;
}
.ax-footer__bottom a { color: #9fb3cc; }

@media (max-width: 991px) {
    .ax-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 575px) {
    .ax-footer__grid { grid-template-columns: 1fr; }
    .inner-hero { padding: 120px 0 55px; }
    .cta-band { padding: 34px 22px; }
    .content-section { padding: 56px 0; }
}

/* ===== Slider logos clients (ex-inline homepage) ===== */
.slider-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    margin-bottom: 20px;
}
.client-brand__slider {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 30px;
}
.client-brand__item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Formulaire de contact (ex-inline homepage) ===== */
/* Carte : padding du thème (85px) réduit pour une hauteur raisonnable */
.can-help .contact-form { padding: 38px 42px; border-radius: 10px; }
@media (max-width: 575px) {
    .can-help .contact-form { padding: 28px 22px; }
}
.contact-form__fields { margin-bottom: 0; }
.contact-form__fields .form-group { margin-bottom: 13px; }
.contact-form__fields label {
    display: block;
    font-family: Lato, sans-serif;
    font-weight: 500;
    color: #0e1e36;
    margin-bottom: 5px;
    font-size: 13px;
}
.contact-form__fields .form-control {
    border: 1px solid #d9e0ea;
    border-radius: 6px;
    padding: 9px 14px;
    font-family: Lato, sans-serif;
    font-size: 14.5px;
    transition: border-color .2s ease;
}
.contact-form__fields .form-control:focus {
    outline: none;
    border-color: #ef0548;
    box-shadow: 0 0 0 3px rgba(239, 5, 72, .08);
}
.contact-form__fields textarea.form-control { min-height: 92px; resize: vertical; }
.contact-form__submit { margin-top: 4px; }
.contact-form__hp { position: absolute; left: -9999px; top: -9999px; }
.contact-form__submit { border: 0; cursor: pointer; }
.form-alert {
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-family: Lato, sans-serif;
    font-size: 15px;
}
.form-alert--success { background: #e7f6ec; color: #14663a; border: 1px solid #b6e2c6; }
.form-alert--error { background: #fdecef; color: #a11035; border: 1px solid #f5c2ce; }
.form-alert--info { background: #eaf1f8; color: #0e3a66; border: 1px solid #c3d7ec; }

/* ===== Uniformisation : motif "ligne rouge" avant les sous-titres internes (comme la home) ===== */
.inner-hero__sub::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: #ff5a86;
    vertical-align: middle;
    margin-right: 10px;
}

/* ===== Accessibilité : focus clavier visible ===== */
a:focus-visible,
button:focus-visible,
.theme-btn:focus-visible,
.header-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff5a86;
    outline-offset: 2px;
}

/* ===== Menu mobile ===== */
.ax-burger {
    width: 44px; height: 44px; border: 0; background: transparent; padding: 10px;
    cursor: pointer; display: flex; flex-direction: column; justify-content: space-between;
}
.ax-burger span {
    display: block; height: 2px; width: 100%; background: #04213f; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.ax-burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.ax-burger.is-open span:nth-child(2) { opacity: 0; }
.ax-burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.ax-mobile-overlay {
    position: fixed; inset: 0; background: rgba(4, 33, 63, .55);
    z-index: 1035; opacity: 0; transition: opacity .25s ease;
}
.ax-mobile-overlay.is-open { opacity: 1; }

.ax-mobile-nav {
    position: fixed; top: 0; right: 0; height: 100%; width: 300px; max-width: 85vw;
    background: #04213f; z-index: 1040; padding: 78px 30px 30px;
    transform: translateX(100%); transition: transform .3s ease;
    display: flex; flex-direction: column; overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .25);
}
.ax-mobile-nav.is-open { transform: translateX(0); }
.ax-mobile-close {
    position: absolute; top: 16px; right: 22px; background: transparent; border: 0;
    color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
}
.ax-mobile-links { list-style: none; padding: 0; margin: 0 0 24px; }
.ax-mobile-links li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ax-mobile-links a {
    display: block; padding: 13px 2px; color: #e6edf6;
    font-family: Poppins, sans-serif; font-weight: 500; font-size: 16px; text-decoration: none;
}
.ax-mobile-links a:hover { color: #ff5a86; }
.ax-mobile-cta { align-self: flex-start; }
.ax-mobile-social { margin-top: 22px; }
.ax-mobile-social a {
    display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #e6edf6;
}
.ax-mobile-social a:hover { background: #ef0548; border-color: #ef0548; color: #fff; }

body.ax-nav-open { overflow: hidden; }

/* Variante grille 3 colonnes (page listing études de cas) */
.feature-grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 992px) {
    .feature-grid--wide { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Sidebar des études de cas ===== */
.case-aside {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
@media (max-width: 991px) {
    .case-aside { position: static; margin-top: 45px; }
}
.case-aside__card,
.case-aside__cta {
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    padding: 22px 24px;
}
.case-aside h3 {
    font-family: Poppins, sans-serif;
    color: var(--ax-blue);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 16px;
}
.case-facts { list-style: none; padding: 0; margin: 0; font-family: Lato, sans-serif; }
.case-facts li {
    padding: 9px 0;
    border-bottom: 1px solid #eef2f8;
    color: var(--ax-dark);
    font-size: 14.5px;
    line-height: 1.4;
}
.case-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-facts li span {
    display: block;
    color: var(--ax-muted);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}
.case-aside__cta { background: linear-gradient(135deg, #04213f 0%, #06305c 100%); border: 0; }
.case-aside__cta h3 { color: #fff; }
.case-aside__cta p { color: #c7d2e3; font-family: Lato, sans-serif; font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.case-related { list-style: none; padding: 0; margin: 0; font-family: Lato, sans-serif; }
.case-related li { margin-bottom: 11px; }
.case-related li:last-child { margin-bottom: 0; }
.case-related li a {
    color: var(--ax-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    position: relative;
    padding-left: 16px;
    transition: color .2s ease;
}
.case-related li a::before { content: "\203A"; position: absolute; left: 0; color: var(--ax-red); font-weight: 700; }
.case-related li a:hover { color: var(--ax-red); }
