/* ========================================================================== 
   E-DEVWEB - CUSTOM.CSS / HELIX ULTIMATE (MAXORA)
   Styles regroupés par composant. Ne pas modifier les CSS natifs du template.
   ========================================================================== */

/* 01. STRUCTURE GENERALE ET BOUTONS
   -------------------------------------------------------------------------- */
#sp-main-body {
    padding: 50px 0;
}

body .sppb-btn,
body .btn {
    text-transform: none;
}

/* 02. EN-TETES DE PAGES ET TITRES D'ARTICLES
   -------------------------------------------------------------------------- */
.sp-page-title {
    padding: 50px 0;
}

.sp-page-title .sp-page-title-heading {
    font-size: 50px;
}

.article-details .article-header h1 {
    font-size: 50px;
}

@media (max-width: 768px) {
    .sp-page-title .sp-page-title-heading {
        font-size: 36px;
    }

    .article-details .article-header h1 {
        font-size: 32px;
        line-height: 1.2;
    }
}

/* 03. NAVIGATION ET MEGA MENU SERVICES
   -------------------------------------------------------------------------- */
.sp-megamenu-parent a.menu-btn,
.offcanvas-inner a.menu-btn {
    line-height: normal;
    background: #fff;
    color: #000 !important;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem !important;
}

.sp-menu-separator {
    color: #fff;
}

.mega-services .sp-dropdown {
    background: #000;
    padding: 30px 40px;
}

.mega-services .mega-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.mega-services .sp-mega-group > li > a {
    color: #fff;
    display: block;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.mega-services .sp-mega-group > li > a:hover {
    color: #1958f9;
}

.mega-services .mega-desc {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    text-transform: none;
    font-weight: 400;
}

/* 04. FORMULAIRES RSFORM
   -------------------------------------------------------------------------- */
.rsform-block:has(.rsf-hidden-init) {
    display: none !important;
}

/* 05. SIMPLE PORTFOLIO
   -------------------------------------------------------------------------- */
.sp-simpleportfolio .sp-simpleportfolio-filter > ul > li {
    margin: 5px;
}

.sp-simpleportfolio .sp-simpleportfolio-filter > ul > li > a {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 5px 10px;
    color: #ffffff;
    border-radius: 999px;
    border-bottom: none;
    background-color: #1958f9;
    opacity: 0.85;
}

/* 06. FAQ / ACCORDEONS
   -------------------------------------------------------------------------- */
/*FAQ*/

.faq-accordion details {
    margin-bottom: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #fff;
}

.faq-accordion summary {
    position: relative;
    padding: 18px 50px 18px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    font-size: 24px;
    font-weight: 400;
    transform: translateY(-50%);
}

.faq-accordion details[open] summary::after {
    content: "−";
}

.faq-accordion .faq-answer {
    padding: 0 20px 18px;
}

.faq-accordion .faq-answer p:last-child {
    margin-bottom: 0;
}

/* 07. PAGINATION JOOMLA
   -------------------------------------------------------------------------- */
.pagination {
    margin-top: 40px !important;
}

/* Compteur "Page 1 sur 2" */

.pagination > .counter {
    display: none !important;
}

/* Liste de pagination */

.pagination > ul.pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Chaque élément */

.pagination > ul.pagination > li {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

/* Masquer début et fin */

.pagination > ul.pagination > li:first-child,
.pagination > ul.pagination > li:last-child {
    display: none !important;
}

/* Masquer les boutons désactivés */

.pagination > ul.pagination > li.disabled {
    display: none !important;
}

/* Liens et page active */

.pagination > ul.pagination .page-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border: 1px solid #d9dce5 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #1b1b1b !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Neutralisation des styles graphiques Maxora */

.pagination > ul.pagination .page-link::before,
.pagination > ul.pagination .page-link::after {
    display: none !important;
    content: none !important;
}

/* Page active */

.pagination > ul.pagination > li.active .page-link {
    border-color: #245cff !important;
    background: #245cff !important;
    color: #fff !important;
}

/* Survol */

.pagination > ul.pagination > li:not(.active) .page-link:hover {
    border-color: #245cff !important;
    background: #f5f7ff !important;
    color: #245cff !important;
}

/* 08. GRILLE REALISATIONS - RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .edw-realisations-blog .items-intro.clearfix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* 09. CITATIONS ET TEMOIGNAGES
   -------------------------------------------------------------------------- */
/* Citations et témoignages */

blockquote {
    box-sizing: border-box;
    margin: 2rem 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #f3f7ff;
    border: 0;
    border-left: 4px solid #2563eb;
    border-radius: 0 12px 12px 0;
    color: #1e293b;
    font-family: inherit;
    font-size: 1.05rem;
    font-style: normal;
    line-height: 1.7;
    box-shadow: 0 4px 18px rgb(15 23 42 / 5%);
}

/* Neutraliser les guillemets décoratifs du template */

blockquote::before,
blockquote::after {
    content: none;
}

/* Paragraphes de la citation */

blockquote > p {
    margin: 0 0 1rem;
    font-size: inherit;
    line-height: inherit;
}

blockquote > p:last-child {
    margin-bottom: 0;
}

/* Auteur : dernier paragraphe, après la citation */

blockquote > p:last-child:not(:first-child) {
    margin-top: 1.25rem;
    color: #334155;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
}

/* 10. ARTICLES E-DEVWEB ET EASYLAYOUTS
   -------------------------------------------------------------------------- */
/* Styles communs aux articles E-DEVWEB : ajouter une seule fois à custom.css. */

.edw-article {
    container-type:inline-size;
    container-name:edw-content;
    min-width:0;
    --edw-bg:light-dark(#fff,#151719);
    --edw-ink:light-dark(#17191d,#f2f3f5);
    --edw-soft:light-dark(#f4f5f7,#22262b);
    --edw-line:light-dark(#e2e5ea,#3d424b);
    --edw-secondary:light-dark(#555d68,#b5bdc8);
    --edw-blue:light-dark(#244de8,#97b0ff);
    --edw-note:light-dark(#edf2ff,#252f46);
    --edw-peach:light-dark(#fff4e8,#342b24);
    background:var(--edw-bg);
    color:var(--edw-ink);
    font-family:inherit;
    font-size:16px;
    line-height:1.7;
}

.edw-article * {
    box-sizing:border-box;
}

.edw-article .edw-nav {
    padding:21px 5%;
    border-bottom:1px solid var(--edw-line);
    display:flex;
    align-items:center;
    gap:32px;
    flex-wrap:wrap;
}

.edw-article .edw-logo {
    font-size:23px;
    font-weight:800;
    letter-spacing:-1.2px;
}

.edw-article .edw-nav span:not(.edw-logo) {
    font-size:13px;
    color:var(--edw-secondary);
}

.edw-article .edw-hero {
    padding:48px 5% 40px;
    background:var(--edw-soft);
}

.edw-article .edw-crumb {
    font-size:12px;
    color:var(--edw-secondary);
    margin:0 0 27px;
}

.edw-article .edw-hero-grid {
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:35px;
    align-items:center;
    max-width:1100px;
    margin:auto;
}

.edw-article .edw-kicker {
    color:var(--edw-blue);
    font-size:12px;
    letter-spacing:1.6px;
    text-transform:uppercase;
    font-weight:700;
}

.edw-article h1 {
    font-size:clamp(28px,3.7vw,42px);
    line-height:1.13;
    letter-spacing:-1.2px;
    margin:14px 0 22px;
    font-weight:750;
}

.edw-article .edw-meta {
    color:var(--edw-secondary);
    font-size:12px;
}

.edw-article .edw-visual {
    background:var(--edw-peach);
    padding:30px;
    border-radius:16px;
}

.edw-article .edw-visual .edw-icon {
    display:inline-flex;
    padding:12px;
    background:var(--edw-bg);
    border-radius:12px;
    margin-bottom:18px;
    color:var(--edw-blue);
}

.edw-article .edw-visual strong {
    font-size:24px;
    line-height:1.25;
    display:block;
    letter-spacing:-.5px;
}

.edw-article .edw-visual p {
    font-size:13px;
    color:var(--edw-secondary);
    margin-bottom:0;
}

.edw-article .edw-layout {
    display:flex;
    flex-direction:column;
    gap:25px;
    max-width:1100px;
    padding:20px 5% 60px;
    margin:auto;
    align-items:stretch;
}

.edw-article article {
    min-width:0;
    max-width:760px;
}

.edw-article article p {
    margin:0 0 18px;
}

.edw-article article h2 {
    font-size:25px;
    line-height:1.3;
    letter-spacing:-.55px;
    margin:46px 0 19px;
    scroll-margin-top:20px;
    color:var(--edw-ink);
}

.edw-article article h2:first-child {
    margin-top:0;
}

.edw-article article a {
    color:var(--edw-blue);
    text-decoration:underline;
    text-underline-offset:3px;
}

.edw-article .edw-lead {
    font-size:19px;
    line-height:1.65;
}

.edw-article .edw-takeaway {
    padding:26px 28px;
    margin:27px 0 32px;
    background:var(--edw-note);
    border-radius:12px;
}

.edw-article .edw-takeaway h2 {
    font-size:18px;
    margin:0 0 12px;
}

.edw-article .edw-takeaway p {
    margin:0;
}

.edw-article .edw-check {
    padding:19px 23px;
    background:var(--edw-soft);
    border-left:3px solid var(--edw-blue);
    border-radius:0 8px 8px 0;
    margin:22px 0!important;
    font-size:15px;
}

.edw-article .edw-check>strong:first-child {
    color:var(--edw-blue);
    display:block;
    margin-bottom:5px;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.edw-article .edw-toc {
    position:static;
    order:-1;
    border:1px solid var(--edw-line);
    border-radius:8px;
    padding:12px 18px;
}

.edw-article .edw-toc summary {
    font-size:12px;
    letter-spacing:1px;
    font-weight:700;
    text-transform:uppercase;
    padding:8px 0;
}

.edw-article .edw-toc a {
    display:block;
    text-decoration:none;
    color:var(--edw-secondary);
    font-size:13px;
    line-height:1.45;
    padding:8px 0;
}

.edw-article .edw-toc a[aria-current="location"] {
    color:var(--edw-blue);
    font-weight:700;
}

.edw-article .edw-toc .edw-side-link {
    color:var(--edw-blue);
    margin-top:18px;
    border-top:1px solid var(--edw-line);
    padding-top:16px;
}

.edw-article .table-responsive {
    overflow:auto;
    margin:24px 0;
}

.edw-article table {
    width:100%;
    border-collapse:collapse;
    font-size:13px;
    line-height:1.55;
}

.edw-article th {
    text-align:left;
    background:var(--edw-note);
    padding:15px 12px;
    min-width:145px;
}

.edw-article td {
    padding:15px 12px;
    border-bottom:1px solid var(--edw-line);
    vertical-align:top;
}

.edw-article td:first-child {
    font-weight:700;
}

.edw-article .faq-accordion details {
    border-bottom:1px solid var(--edw-line);
    padding:17px 0;
}

.edw-article .faq-accordion summary {
    font-weight:650;
    list-style:none;
    display:flex;
    justify-content:space-between;
    gap:20px;
}

.edw-article .faq-accordion summary:after {
    content:'+';
    color:var(--edw-blue);
}

.edw-article .faq-accordion details[open] summary:after {
    content:'−';
}

.edw-article .faq-answer {
    padding-top:16px;
    font-size:15px;
}

.edw-article .edw-cta {
    margin-top:42px;
    background:var(--edw-note);
    padding:30px;
    border-radius:12px;
}

.edw-article .edw-cta h2 {
    margin:0 0 12px;
}

.edw-article .edw-cta details {
    margin-top:20px;
}

.edw-article .edw-cta summary {
    display:inline-block;
    background:var(--edw-blue);
    color:var(--edw-bg);
    padding:12px 20px;
    border-radius:6px;
    font-size:14px;
    font-weight:700;
}

.edw-article .edw-cta details[open] summary {
    margin-bottom:17px;
}

.edw-article .edw-foot {
    border-top:1px solid var(--edw-line);
    padding:28px 5%;
    display:flex;
    justify-content:space-between;
    gap:20px;
    font-size:12px;
    color:var(--edw-secondary);
}

.edw-article .edw-audit-link {
    display:inline-block;
    padding:12px 20px;
    border-radius:6px;
    background:var(--edw-blue);
    color:var(--edw-bg);
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}

.edw-article a:focus-visible,.edw-article summary:focus-visible {
    outline:3px solid var(--edw-blue);
    outline-offset:4px;
}

.edw-article .edw-hero-grid>div {
    min-width:0;
}

.edw-article article {
    overflow-wrap:anywhere;
}

.edw-article summary {
    cursor:pointer;
}

@media(prefers-reduced-motion:reduce) {
    .edw-article * {
        scroll-behavior:auto!important;
    }

}

/* Introduction et corps : mêmes largeur extérieure et retrait. */

.edw-article .edw-intro {
    max-width:1100px;
    margin:0 auto;
    padding:32px 5% 0;
}

.edw-article .edw-intro p {
    margin:0;
    max-width:760px;
}

.edw-article .edw-layout article {
    width:100%;
}

.edw-article .edw-toc a {
    padding:11px 0;
}

/* Deux colonnes seulement si le conteneur de l’article est assez large. */

@container edw-content (min-width:901px) {
    .edw-article .edw-layout {
        display:grid;
        grid-template-columns:minmax(0,1fr) 230px;
        gap:44px;
        align-items:start;
    }

    .edw-article .edw-toc {
        position:sticky;
        top:22px;
        order:0;
        border:0;
        border-left:1px solid var(--edw-line);
        border-radius:0;
        padding:0 0 0 20px;
    }

    .edw-article .edw-toc a {
        padding:8px 0;
    }

    .edw-article .edw-intro p {
        max-width:min(760px,calc(100% - 274px));
    }

}

/* Cartes EasyLayouts : aucun retrait ni colonne dans l’extrait. */

.items-intro .edw-article {
    background:transparent;
    color:inherit;
    font:inherit;
}

.items-intro .edw-article .edw-layout,
.items-intro .edw-article .edw-intro {
    display:block;
    max-width:none;
    padding:0;
    margin:0;
}

.items-intro .edw-article .edw-layout article,
.items-intro .edw-article .edw-intro p {
    width:auto;
    max-width:none;
    overflow-wrap:normal;
    word-break:normal;
}

.items-intro .edw-article .edw-lead {
    font-size:inherit;
    line-height:inherit;
    margin:0;
}

.items-intro .edw-article .edw-toc {
    display:none;
}

