/* =========================================================
   Devoted Engineering — couche publique
   S'appuie sur Oraxis (main.css) sans le remplacer.
   ========================================================= */

:root {
    --de-ink: #12120f;
    --de-ink-soft: #26261f;
    --de-theme: #a6a182;
    --de-theme-dark: #7f7a5c;
    --de-theme-deep: #676244;
    --de-sand: #ece9de;
    --de-paper: #f8f8f8;
    --de-line: rgba(18, 18, 15, .13);
    --de-muted: #5c5c54;
    --de-white: #fff;
    --de-radius: 2px;
    --de-shadow: 0 18px 50px -30px rgba(18, 18, 15, .55);
}

html { scroll-behavior: smooth; }

body {
    color: var(--de-ink);
    background: var(--de-paper);
    -webkit-font-smoothing: antialiased;
}

a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }

img { max-width: 100%; height: auto; }

:focus-visible {
    outline: 3px solid var(--de-theme-dark);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 10000;
    background: var(--de-ink);
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 16px; color: #fff; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

section[id], div[id="accueil"] { scroll-margin-top: 96px; }

/* ---------- En-tête ---------- */

header { position: relative; z-index: 90; background: var(--de-paper); }
header .header-1 { background: transparent; }
header.sticky,
.header-1.sticky { background: var(--de-paper); }

.devoted-logo {
    display: block;
    height: 68px;
    width: auto;
    max-width: none;
}
.devoted-logo--small { height: 54px; }
.devoted-brand-link { display: flex; align-items: center; gap: 14px; }
.devoted-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.16;
    letter-spacing: -.01em;
    color: var(--de-ink);
}
.devoted-logo-badge {
    display: inline-block;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}
.devoted-logo-badge .devoted-logo { height: 84px; mix-blend-mode: normal; }

.header-top-section .contact-list li { color: var(--de-ink); }
.header-top-section .contact-list li i { color: var(--de-ink-soft); }
.header-top-section .contact-list a,
.header-top-section .contact-list li .link { color: var(--de-ink); }
.header-top-section .social-icon a,
.header-top-section .top-right .social-icon i { color: var(--de-ink); }
.header-top-section .top-right .social-icon i:hover { color: var(--de-theme-dark); }
.header-top-section .top-right { gap: 28px; }
.header-top-section .top-right .contact-list { gap: 22px; }
.header-1 .main-menu ul li a { letter-spacing: .01em; }
.header-button .theme-btn { white-space: nowrap; }

.devoted-offcanvas-menu ul { list-style: none; margin: 0; padding: 0; }
.devoted-offcanvas-menu > ul > li { border-bottom: 1px solid var(--de-line); }
.devoted-offcanvas-menu > ul > li:first-child { border-top: 1px solid var(--de-line); }
.devoted-offcanvas-menu a {
    display: block;
    padding: 13px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--de-ink);
}
.devoted-offcanvas-menu a:hover,
.devoted-offcanvas-menu a:focus-visible { color: var(--de-theme-deep); }
.devoted-offcanvas-menu .submenu { padding: 0 0 10px 18px; }
.devoted-offcanvas-menu .submenu a {
    padding: 7px 0;
    font-size: .9rem;
    font-weight: 500;
    color: var(--de-muted);
}
.devoted-offcanvas-menu .has-dropdown > a i { font-size: .7rem; margin-left: 4px; }
.offcanvas__contact-text a {
    text-transform: none;
    overflow-wrap: anywhere;
    font-size: .92rem;
}
.offcanvas__contact .social-icon a { padding: 4px; }

.devoted-ico { display: inline-flex; align-items: center; justify-content: center; }
.devoted-ico svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Boutons ---------- */

h1, h2, h3, h4, h5, .theme-btn, .link-btn { text-transform: none; }
.section-title h2, .section-title h3, .section-title span { text-transform: none !important; }
.faq-wrapper .accordion-item .accordion-header .accordion-button {
    text-transform: none;
    background-color: var(--de-theme-deep);
}
.faq-wrapper .accordion-item .accordion-collapse .accordion-body {
    background-color: var(--de-theme-deep);
    color: rgba(255, 255, 255, .92);
}
.section-title h6 { color: var(--de-theme-deep); }
.footer-section .list-items a,
.footer-section .footer-content a,
.footer-section .contact-items h4,
.footer-section .footer-wrapper a,
.breadcrumb-wrapper .page-heading .breadcrumb-items li,
.breadcrumb-wrapper .page-heading .breadcrumb-items li a,
.breadcrumb-wrapper .page-heading .breadcrumb-items li span { text-transform: none; }

.theme-btn:not(.bg-transparent):not(.bg-white) {
    background: var(--de-theme-deep);
    border-color: var(--de-theme-deep);
    color: #fff;
}
.header-button .theme-btn.bg-red-2 { background-color: var(--de-theme-deep) !important; }
.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--de-theme-deep);
    color: #fff;
}
.faq-accordion .accordion-collapse.show .accordion-body {
    background-color: var(--de-theme-deep);
    color: rgba(255, 255, 255, .92);
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--de-radius);
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}
.theme-btn.bg-transparent {
    background: transparent !important;
    border-color: currentColor;
    color: var(--de-ink);
}
.theme-btn.bg-transparent:hover,
.theme-btn.bg-transparent:focus-visible {
    background: var(--de-ink) !important;
    border-color: var(--de-ink);
    color: #fff;
}
.cta-banner-wrapper .theme-btn.bg-transparent { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-banner-wrapper .theme-btn.bg-transparent:hover { background: #fff !important; color: var(--de-ink); }

.devoted-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.devoted-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .01em;
    color: var(--de-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--de-theme);
    padding-bottom: 3px;
}
.devoted-text-link:hover,
.devoted-text-link:focus-visible { color: var(--de-theme-dark); border-color: var(--de-theme-dark); }

/* ---------- Bannière ---------- */

.hero-section .hero-content h1.devoted-hero-title {
    font-size: clamp(2.2rem, 3.6vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    max-width: 540px;
}
.hero-1 .hero-content p,
.hero-section .hero-content p {
    max-width: 520px;
    margin: 0 0 16px;
    text-align: left;
}
.hero-1 .hero-content .devoted-eyebrow {
    max-width: none;
    margin: 0 0 18px;
    text-align: left;
    color: var(--de-theme-dark);
}
.hero-1 .hero-content p.devoted-eyebrow::before { background: var(--de-theme-dark); }
.hero-1 .devoted-actions { max-width: 510px; }
.hero-1 .hero-image { background-position: center; }
.devoted-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--de-theme-dark);
}
.devoted-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--de-theme);
}
.breadcrumb-wrapper .page-heading h1 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}
.breadcrumb-wrapper .page-heading p {
    max-width: 760px;
    margin-top: 14px;
    color: rgba(255,255,255,.86);
}
.breadcrumb-wrapper .breadcrumb-items li { color: rgba(255,255,255,.8); }
.breadcrumb-wrapper .breadcrumb-items li a { color: #fff; }

/* ---------- Titres de section ---------- */

.section-title h6 {
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .76rem;
}
.section-title h2 { letter-spacing: -.02em; line-height: 1.12; }
.section-title p { max-width: 720px; color: var(--de-muted); }
.section-title.text-center p { margin-left: auto; margin-right: auto; }

/* ---------- Cartes services ---------- */

.devoted-service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--de-line);
    border-radius: var(--de-radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.devoted-service-card:hover,
.devoted-service-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--de-theme);
    box-shadow: var(--de-shadow);
}
.devoted-service-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--de-sand);
    overflow: hidden;
    position: relative;
}
.devoted-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.devoted-service-card:hover .devoted-service-card__media img { transform: scale(1.035); }
.devoted-service-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.42), transparent 55%),
        var(--de-sand);
    color: var(--de-theme-dark);
    font-size: 3rem;
}
.devoted-service-card__body { padding: 26px 26px 30px; position: relative; }
.devoted-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: -52px;
    margin-bottom: 18px;
    background: var(--de-ink);
    color: #fff;
    font-size: 1.1rem;
    border: 4px solid #fff;
    border-radius: 50%;
}
.devoted-service-card__body h2 {
    font-size: 1.28rem;
    line-height: 1.3;
    margin-bottom: 12px;
}
.devoted-service-card__body h2 a { color: var(--de-ink); text-decoration: none; }
.devoted-service-card__body h2 a:hover { color: var(--de-theme-dark); }
.devoted-service-card__body p { color: var(--de-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 18px; }

/* ---------- Cartes réalisations ---------- */

.devoted-project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--de-line);
    border-radius: var(--de-radius);
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.devoted-project-card:hover,
.devoted-project-card:focus-within { border-color: var(--de-theme); box-shadow: var(--de-shadow); }
.devoted-project-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--de-sand);
    overflow: hidden;
}
.devoted-project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.devoted-project-card:hover .devoted-project-card__image img { transform: scale(1.03); }
.devoted-project-card__image > span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--de-theme-dark);
    font-size: 3rem;
}
.devoted-project-card__body { padding: 24px 26px 28px; flex: 1; }
.devoted-project-card__body h2,
.devoted-project-card__body h3 { font-size: 1.35rem; line-height: 1.3; margin: 10px 0 12px; }
.devoted-project-card__body h2 a,
.devoted-project-card__body h3 a { color: var(--de-ink); text-decoration: none; }
.devoted-project-card__body p { color: var(--de-muted); font-size: .95rem; line-height: 1.7; }
.devoted-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--de-muted);
}
.devoted-project-card__meta i { margin-right: 5px; color: var(--de-theme-dark); }
.devoted-project-card--compact .devoted-project-card__body { padding: 16px 20px 20px; }
.devoted-project-card--compact .devoted-project-card__image { aspect-ratio: 16 / 10; }

/* ---------- Filtres et pagination ---------- */

.devoted-filter { min-width: 250px; }
.devoted-filter .form-select {
    border: 1px solid var(--de-line);
    border-radius: var(--de-radius);
    background-color: #fff;
    min-height: 48px;
    padding: 10px 42px 10px 16px;
    font-size: .92rem;
    color: var(--de-ink);
}
.devoted-filter .form-select:focus { border-color: var(--de-theme); box-shadow: 0 0 0 3px rgba(166,161,130,.28); }
.devoted-filter .nice-select {
    min-width: 250px;
    min-height: 48px;
    background: #fff;
    border: 1px solid var(--de-line);
    border-radius: var(--de-radius);
    color: var(--de-ink);
    padding: 12px 42px 12px 16px;
    font-size: .92rem;
}
.devoted-filter .nice-select span,
.devoted-filter .nice-select .current,
.devoted-filter .nice-select .option { color: var(--de-ink); }
.devoted-filter .nice-select:after { border-color: var(--de-theme-deep); }
.devoted-filter .nice-select .list {
    background: #fff;
    border: 1px solid var(--de-line);
    box-shadow: var(--de-shadow);
    width: 100%;
}
.devoted-filter .nice-select .option:hover,
.devoted-filter .nice-select .option.focus { background: var(--de-sand); }
.devoted-filter .nice-select .option.selected { color: var(--de-theme-deep); font-weight: 600; }

.devoted-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.devoted-pagination a,
.devoted-pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--de-line);
    background: #fff;
    color: var(--de-ink);
    font-size: .9rem;
    text-decoration: none;
}
.devoted-pagination a:hover { background: var(--de-ink); border-color: var(--de-ink); color: #fff; }
.devoted-pagination span { border-style: dashed; color: var(--de-muted); }

/* ---------- États vides ---------- */

.devoted-empty-state {
    background: #fff;
    border: 1px dashed rgba(18,18,15,.24);
    border-radius: var(--de-radius);
    padding: clamp(36px, 6vw, 72px) clamp(22px, 4vw, 48px);
    text-align: center;
}
.devoted-empty-state > i { font-size: 2.2rem; color: var(--de-theme-dark); margin-bottom: 18px; display: block; }
.devoted-empty-state h2,
.devoted-empty-state h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.devoted-empty-state p { max-width: 620px; margin: 0 auto 26px; color: var(--de-muted); line-height: 1.7; }

/* ---------- Appel à l'action en ligne ---------- */

.devoted-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 4vw, 40px);
    background: var(--de-ink);
    color: #fff;
    border-radius: var(--de-radius);
}
.devoted-inline-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: #fff; margin-bottom: 8px; }
.devoted-inline-cta p { margin: 0; color: rgba(255,255,255,.72); max-width: 620px; }
.devoted-inline-cta .theme-btn { background: #fff; color: var(--de-ink); border-color: #fff; }
.devoted-inline-cta .theme-btn:hover { background: var(--de-theme); border-color: var(--de-theme); }

/* ---------- Détails (services, projets, articles) ---------- */

.devoted-detail-cover {
    margin: 0 0 32px;
    background: var(--de-sand);
    overflow: hidden;
    border-radius: var(--de-radius);
}
.devoted-detail-cover img { width: 100%; display: block; }
.devoted-detail-cover figcaption {
    padding: 12px 16px;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--de-muted);
    background: #fff;
    border-top: 1px solid var(--de-line);
}
.devoted-lead {
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    line-height: 1.7;
    color: var(--de-ink-soft);
    padding-left: 20px;
    border-left: 3px solid var(--de-theme);
}

.devoted-prose { color: var(--de-ink-soft); font-size: 1rem; line-height: 1.8; }
.devoted-prose > * + * { margin-top: 1.1em; }
.devoted-prose h2,
.devoted-prose h3,
.devoted-prose h4 { color: var(--de-ink); line-height: 1.22; letter-spacing: -.015em; }
.devoted-prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.1em; }
.devoted-prose h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-top: 1.8em; }
.devoted-prose h4 { font-size: 1.15rem; margin-top: 1.6em; }
.devoted-prose p { margin-bottom: 0; }
.devoted-prose ul,
.devoted-prose ol { padding-left: 1.25em; }
.devoted-prose li + li { margin-top: .4em; }
.devoted-prose a { color: var(--de-theme-dark); text-decoration: underline; text-underline-offset: 3px; }
.devoted-prose a:hover { color: var(--de-ink); }
.devoted-prose blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    border-left: 3px solid var(--de-theme);
    background: #fff;
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--de-ink);
}
.devoted-prose img { height: auto; }
.devoted-prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.devoted-prose th,
.devoted-prose td { padding: 12px 14px; border: 1px solid var(--de-line); text-align: left; }
.devoted-prose th { background: var(--de-sand); }

.devoted-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 32px;
}
.devoted-benefits div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--de-line);
    font-size: .94rem;
    line-height: 1.5;
}
.devoted-benefits i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--de-sand);
    color: var(--de-theme-dark);
    font-size: .7rem;
}

.devoted-gallery__item { display: block; overflow: hidden; background: var(--de-sand); }
.devoted-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.devoted-gallery__item:hover img { transform: scale(1.025); }

.devoted-project-facts {
    background: #fff;
    border: 1px solid var(--de-line);
    border-top: 3px solid var(--de-theme);
    padding: 28px;
}
.devoted-project-facts h2 { font-size: 1.15rem; }
.devoted-project-facts dl { margin: 18px 0 0; }
.devoted-project-facts dt {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--de-muted);
    margin-top: 16px;
}
.devoted-project-facts dt:first-child { margin-top: 0; }
.devoted-project-facts dd { margin: 4px 0 0; font-weight: 600; font-size: .98rem; }

/* ---------- Barre latérale ---------- */

.devoted-sidebar-card {
    background: #fff;
    border: 1px solid var(--de-line);
    padding: 28px;
}
.devoted-sidebar-card h2 { letter-spacing: -.01em; }
.devoted-sidebar-card p { color: var(--de-muted); font-size: .94rem; line-height: 1.7; }
.devoted-sidebar-card .devoted-contact-icon { margin-bottom: 18px; }
.devoted-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--de-ink);
    color: #fff;
    font-size: 20px;
}
.devoted-phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--de-ink);
    text-decoration: none;
}
.devoted-phone-link:hover { color: var(--de-theme-dark); }

.devoted-service-nav,
.devoted-related-list,
.devoted-contact-list { list-style: none; margin: 18px 0 0; padding: 0; }
.devoted-service-nav li + li,
.devoted-related-list li + li,
.devoted-contact-list li + li { border-top: 1px solid var(--de-line); }
.devoted-service-nav a,
.devoted-related-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: var(--de-ink);
    font-size: .92rem;
    line-height: 1.45;
    text-decoration: none;
}
.devoted-service-nav a:hover,
.devoted-related-list a:hover { color: var(--de-theme-dark); }
.devoted-service-nav i { font-size: .65rem; color: var(--de-theme-dark); }
.devoted-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    font-size: .92rem;
    line-height: 1.5;
}
.devoted-contact-list i { color: var(--de-theme-dark); margin-top: 4px; }
.devoted-contact-list a { color: var(--de-ink); }

/* ---------- Actualités ---------- */

.devoted-article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--de-line);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.devoted-article-card:hover,
.devoted-article-card:focus-within { border-color: var(--de-theme); box-shadow: var(--de-shadow); }
.devoted-article-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--de-sand);
    overflow: hidden;
}
.devoted-article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.devoted-article-card:hover .devoted-article-card__image img { transform: scale(1.03); }
.devoted-article-card__image > span {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    color: var(--de-theme-dark);
    font-size: 2.6rem;
}
.devoted-article-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.devoted-article-card__meta,
.devoted-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: .76rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--de-muted);
    margin-bottom: 12px;
}
.devoted-article-card__body h2 { font-size: 1.22rem; line-height: 1.32; margin-bottom: 10px; }
.devoted-article-card__body h2 a { color: var(--de-ink); text-decoration: none; }
.devoted-article-card__body h2 a:hover { color: var(--de-theme-dark); }
.devoted-article-card__body p { color: var(--de-muted); font-size: .93rem; line-height: 1.65; margin-bottom: 18px; }
.devoted-article-card__body .devoted-text-link { margin-top: auto; align-self: flex-start; }

.devoted-article-meta { margin-bottom: 24px; }
.devoted-article-meta span + span::before { content: "—"; margin-right: 16px; color: var(--de-line); }
.devoted-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.devoted-tags span {
    display: inline-flex;
    padding: 7px 13px;
    background: var(--de-sand);
    color: var(--de-ink-soft);
    font-size: .78rem;
    letter-spacing: .02em;
}
.devoted-share { display: flex; align-items: center; gap: 12px; }
.devoted-share strong { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.devoted-share a {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--de-line);
    color: var(--de-ink);
    text-decoration: none;
}
.devoted-share a:hover { background: var(--de-ink); border-color: var(--de-ink); color: #fff; }

/* ---------- FAQ ---------- */

.devoted-faq-list .accordion-item {
    border: 1px solid var(--de-line) !important;
    background: #fff;
    border-radius: var(--de-radius) !important;
    overflow: hidden;
}
.devoted-faq-list .accordion-button {
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--de-ink);
    background: #fff;
    padding: 22px 56px 22px 24px;
    box-shadow: none;
}
.devoted-faq-list .accordion-button:not(.collapsed) { background: var(--de-sand); color: var(--de-ink); }
.devoted-faq-list .accordion-button:focus { box-shadow: inset 0 0 0 2px var(--de-theme); }
.devoted-faq-list .accordion-button::after { width: 16px; height: 16px; background-size: 16px; }
.devoted-faq-list .accordion-body { padding: 0 24px 24px; color: var(--de-muted); font-size: .96rem; line-height: 1.75; }
.devoted-faq-heading { flex: 1; min-width: 0; text-align: left; }
.devoted-faq-category {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--de-theme-deep);
    margin-bottom: 5px;
}
.devoted-faq-question { display: block; }
.devoted-faq-list .accordion-body > * + * { margin-top: .9em; }
.devoted-faq-list .accordion-body p:last-child { margin-bottom: 0; }

/* ---------- Formulaires ---------- */

.devoted-form-panel {
    background: #fff;
    border: 1px solid var(--de-line);
    border-top: 3px solid var(--de-theme);
    padding: clamp(24px, 4vw, 44px);
}
.devoted-form-panel h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.devoted-form-panel > p { margin-bottom: 24px; }
.devoted-form label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .015em;
    margin-bottom: 6px;
    color: var(--de-ink-soft);
}
.devoted-form input[type="text"],
.devoted-form input[type="email"],
.devoted-form input[type="tel"],
.devoted-form input[type="file"],
.devoted-form select,
.devoted-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid rgba(18,18,15,.22);
    border-radius: var(--de-radius);
    background: var(--de-paper);
    color: var(--de-ink);
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.5;
}
.devoted-form textarea { min-height: 150px; resize: vertical; }
.devoted-form input[type="file"] { padding: 10px 12px; background: #fff; font-size: .88rem; }
.devoted-form input:focus,
.devoted-form select:focus,
.devoted-form textarea:focus {
    outline: none;
    border-color: var(--de-theme);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(166,161,130,.28);
}
.devoted-form input[aria-invalid="true"],
.devoted-form textarea[aria-invalid="true"] { border-color: #a12b23; }
.devoted-form .devoted-field-help { display: block; margin-top: 6px; font-size: .78rem; color: var(--de-muted); }
.devoted-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: .87rem !important;
    line-height: 1.6;
    color: var(--de-muted);
}
.devoted-consent input { margin-top: 4px; flex: 0 0 auto; }
.devoted-consent a { color: var(--de-ink); text-decoration: underline; }
.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}
.devoted-form .alert-danger {
    background: #fdf1ef;
    border: 1px solid #e3b4ad;
    color: #7d241c;
    font-size: .9rem;
    padding: 16px 18px;
}

.devoted-steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: step; }
.devoted-steps li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--de-line); }
.devoted-steps li > span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--de-theme);
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 700;
    color: var(--de-theme-dark);
}
.devoted-steps li strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.devoted-steps li p { margin: 0; font-size: .89rem; line-height: 1.6; color: var(--de-muted); }

.devoted-form-aside {
    margin-top: 28px;
    padding: 22px;
    background: var(--de-sand);
}
.devoted-form-aside p { margin-bottom: 12px; font-weight: 600; font-size: .9rem; }
.devoted-form-aside a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    color: var(--de-ink);
    font-size: .93rem;
    font-weight: 600;
    text-decoration: none;
}
.devoted-form-aside a:hover { color: var(--de-theme-dark); }
.devoted-form-aside i { width: 20px; text-align: center; color: var(--de-theme-dark); }

/* ---------- Contact ---------- */

.devoted-contact-card { height: 100%; background: #fff; border: 1px solid var(--de-line); padding: 30px 26px; }
.devoted-contact-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.devoted-contact-card ul { list-style: none; margin: 0; padding: 0; }
.devoted-contact-card li + li { margin-top: 8px; }
.devoted-contact-card address { margin: 0; font-style: normal; line-height: 1.7; }
.devoted-contact-card a { color: inherit; font-weight: 600; overflow-wrap: anywhere; }
.devoted-contact-card a:hover { text-decoration: underline; }

.devoted-contact-stack { display: grid; gap: 0; border-top: 1px solid var(--de-line); }
.devoted-contact-stack > a,
.devoted-contact-stack > div {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--de-line);
    color: var(--de-ink);
    text-decoration: none;
}
.devoted-contact-stack > a:hover strong { color: var(--de-theme-dark); }
.devoted-contact-stack > a > span,
.devoted-contact-stack > div > span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    background: var(--de-sand);
    color: var(--de-theme-dark);
    font-size: .9rem;
}
.devoted-contact-stack small {
    display: block;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--de-muted);
    margin-bottom: 2px;
}
.devoted-contact-stack strong { font-size: .93rem; font-weight: 600; overflow-wrap: anywhere; }
.devoted-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--de-sand);
    font-size: .89rem;
    color: var(--de-ink-soft);
}
.devoted-hours i { color: var(--de-theme-dark); }

/* ---------- Recherche ---------- */

.devoted-search-form {
    background: #fff;
    border: 1px solid var(--de-line);
    border-top: 3px solid var(--de-theme);
    padding: clamp(20px, 3vw, 30px);
}
.devoted-search-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.devoted-search-form__row { display: flex; gap: 10px; }
.devoted-search-form input[type="search"] {
    flex: 1;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid rgba(18,18,15,.22);
    background: #fff;
    color: var(--de-ink);
    font-family: inherit;
    font-size: 1rem;
}
.devoted-search-form input[type="search"]::placeholder { color: var(--de-muted); opacity: 1; }
.devoted-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--de-theme);
    box-shadow: 0 0 0 3px rgba(166,161,130,.28);
}
.devoted-search-count { margin: 26px 0 8px; font-size: .86rem; letter-spacing: .04em; color: var(--de-muted); }
.devoted-search-group { margin-top: 30px; }
.devoted-search-group h2 {
    font-size: .78rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--de-theme-deep);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--de-line);
    margin-bottom: 4px;
}
.devoted-search-group ul { list-style: none; margin: 0; padding: 0; }
.devoted-search-group li { padding: 16px 0; border-bottom: 1px solid var(--de-line); }
.devoted-search-group li a { font-weight: 600; font-size: 1.05rem; color: var(--de-ink); text-decoration: none; }
.devoted-search-group li a:hover { color: var(--de-theme-dark); text-decoration: underline; }
.devoted-search-group li p { margin: 5px 0 0; font-size: .9rem; line-height: 1.6; color: var(--de-muted); }

/* ---------- Erreurs ---------- */

.devoted-error { padding-top: clamp(70px, 11vw, 140px); padding-bottom: clamp(70px, 11vw, 140px); }
.devoted-error__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.devoted-error__code {
    font-size: clamp(7rem, 21vw, 17rem);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--de-theme);
    background-image: repeating-linear-gradient(90deg, rgba(18,18,15,.07) 0 1px, transparent 1px 26px);
    background-clip: text;
    -webkit-background-clip: text;
    user-select: none;
}
.devoted-error__body h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 18px; }
.devoted-error__body p { color: var(--de-muted); font-size: 1.02rem; line-height: 1.75; max-width: 560px; }
.devoted-error__contact { margin-top: 30px; font-size: .9rem; }
.devoted-error__contact a { color: var(--de-ink); font-weight: 600; }

/* ---------- Pied de page ---------- */

.footer-section .contact-items h4 a { overflow-wrap: anywhere; }
.floating-whatsapp {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 999;
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #1f8f4e;
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
}
.floating-whatsapp:hover,
.floating-whatsapp:focus-visible { background: #177a41; color: #fff; transform: translateY(-2px); }
.footer-section .widget-head h3 { letter-spacing: -.01em; }

/* ---------- Toasts ---------- */

.site-toast { background: #fff; border: 1px solid var(--de-line); border-left: 4px solid var(--de-theme); box-shadow: var(--de-shadow); }
.site-toast--error { border-left-color: #a12b23; }
.site-toast--success { border-left-color: #1f8f4e; }
.site-toast .toast-body { padding: 14px 16px; font-size: .9rem; line-height: 1.5; color: var(--de-ink); }
.site-toast .toast-body i { color: var(--de-theme-dark); margin-top: 3px; }
.site-toast--error .toast-body i { color: #a12b23; }
.site-toast--success .toast-body i { color: #1f8f4e; }

/* ---------- Consentement et installation ---------- */

.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 1080;
    width: min(760px, calc(100% - 32px));
    background: #fff;
    border: 1px solid var(--de-line);
    border-top: 3px solid var(--de-theme);
    box-shadow: var(--de-shadow);
    padding: 20px 24px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cookie-consent strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.cookie-consent p { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--de-muted); max-width: 460px; }
.cookie-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-consent .theme-btn { min-height: 42px; padding: 10px 18px; font-size: .85rem; }

.install-prompt {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 1070;
    width: min(720px, calc(100% - 32px));
    background: var(--de-ink);
    color: #fff;
    padding: 16px 20px;
    box-shadow: var(--de-shadow);
}
.install-prompt[hidden] { display: none; }
.install-prompt__inner { display: flex; align-items: center; gap: 16px; }
.install-prompt__icon img { display: block; border-radius: 8px; }
.install-prompt__text { flex: 1; min-width: 0; }
.install-prompt__text strong { display: block; font-size: .94rem; }
.install-prompt__text span { display: block; font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.45; }
.install-prompt__button { min-height: 40px; padding: 9px 18px; background: #fff; color: var(--de-ink); border-color: #fff; font-size: .82rem; }
.install-prompt__close { background: none; border: 0; color: rgba(255,255,255,.65); font-size: 1rem; padding: 8px; }
.install-prompt__close:hover { color: #fff; }
body.pwa-standalone .install-prompt { display: none !important; }

/* ---------- Divers ---------- */

.devoted-pillars { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 22px; }
.devoted-pillars li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; line-height: 1.55; }
.devoted-pillars i { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(166,161,130,.28); color: var(--de-ink); font-size: .62rem; }
.devoted-image-note { margin-top: 18px; font-size: .82rem; line-height: 1.6; color: var(--de-muted); }
.devoted-gallery-note { margin: -10px 0 28px; font-size: .92rem; opacity: .78; }
.counter-item.devoted-pillar .content h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.15; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .devoted-brand-name { display: none; }
    .header-main .main-menu { display: none; }
    .devoted-error__grid { grid-template-columns: 1fr; gap: 24px; }
    .devoted-error__code { font-size: clamp(6rem, 30vw, 12rem); }
}

@media (max-width: 991px) {
    .devoted-form-panel,
    .devoted-sidebar-card,
    .devoted-project-facts { padding: 24px; }
    .devoted-inline-cta { align-items: flex-start; }
    .devoted-sidebar-card.sticky-top { position: static !important; }
    .breadcrumb-wrapper .page-heading h1 { overflow-wrap: anywhere; }
}

@media (max-width: 767px) {
    .devoted-actions .theme-btn { flex: 1 1 100%; }
    .devoted-hero-title { overflow-wrap: anywhere; }
    .hero-1 .hero-content,
    .hero-1 .hero-content h1,
    .hero-1 .hero-content p { text-align: left; }
    .hero-1 .hero-content p { margin-left: 0; margin-right: 0; max-width: none; }
    .hero-1 .hero-content .devoted-eyebrow { letter-spacing: .12em; font-size: .7rem; }
    .hero-1 .star-image { display: none; }
    .devoted-article-meta span + span::before { display: none; }
    .floating-whatsapp { width: 50px; height: 50px; left: 14px; bottom: 14px; font-size: 1.4rem; }
    .cookie-consent,
    .install-prompt { bottom: 12px; width: calc(100% - 24px); padding: 16px; }
    .install-prompt__inner { flex-wrap: wrap; }
    .install-prompt__text { flex-basis: calc(100% - 80px); }
    .install-prompt__button { flex: 1 1 100%; }
    .install-prompt__close { position: absolute; top: 6px; right: 6px; }
    .devoted-error__body .devoted-actions { margin-top: 24px; }
}

@media (max-width: 575px) {
    .devoted-logo { height: 56px; }
    .devoted-logo-badge .devoted-logo { height: 72px; }
    .devoted-logo--small { height: 48px; }
    .devoted-actions .theme-btn,
    .devoted-contact-actions .theme-btn { width: 100%; justify-content: center; text-align: center; }
    .devoted-contact-card { padding: 24px 20px; }
    .devoted-service-card__body,
    .devoted-project-card__body,
    .devoted-article-card__body { padding: 22px 20px 24px; }
    .devoted-form-panel,
    .devoted-sidebar-card,
    .devoted-project-facts { padding: 20px; }
    .devoted-inline-cta { padding: 22px; }
    .devoted-pagination { gap: 8px; }
    .devoted-pagination a,
    .devoted-pagination span { padding: 9px 13px; font-size: .84rem; }
    .devoted-faq-list .accordion-button { padding: 18px 46px 18px 18px; font-size: .95rem; }
    .devoted-faq-list .accordion-body { padding: 0 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .devoted-service-card:hover,
    .devoted-project-card:hover,
    .floating-whatsapp:hover { transform: none; }
}

@media print {
    .header-top-section, header, .floating-whatsapp, .scroll-up,
    .cookie-consent, .install-prompt, .devoted-actions, .footer-section { display: none !important; }
    body { background: #fff; color: #000; }
    .devoted-prose a[href]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
