/* ==========================================================
   SITE PUBLIC — TYPOGRAPHIE + CONTENUS + MODULES + GALERIES
   Version équilibrée : contenu 14px, espaces propres
   Police : Varela Round
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

:root {
    --pb-font: 'Varela Round', Arial, Helvetica, sans-serif;

    --pb-bg: #f5f7fb;
    --pb-card: #ffffff;
    --pb-dark: #071b34;
    --pb-text: #334155;
    --pb-muted: #64748b;
    --pb-blue: #0b3f78;
    --pb-blue-dark: #072f5f;
    --pb-blue-soft: #eaf5ff;
    --pb-border: rgba(15, 23, 42, .09);

    --pb-shadow: 0 12px 30px rgba(7, 27, 52, .08);
    --pb-shadow-lg: 0 18px 46px rgba(7, 27, 52, .12);

    --pb-radius: 22px;
    --pb-radius-lg: 28px;
    --pb-container: 1240px;

    --pb-text-size: 14px;
    --pb-small-size: 12px;

    --pb-h1: clamp(26px, 3vw, 36px);
    --pb-h2: clamp(22px, 2.4vw, 30px);
    --pb-h3: clamp(18px, 2vw, 23px);
    --pb-h4: 17px;
}

/* ==========================================================
   BASE GÉNÉRALE
========================================================== */

html,
body {
    font-family: var(--pb-font) !important;
    font-size: var(--pb-text-size);
    line-height: 1.75;
    color: var(--pb-text);
    background: var(--pb-bg);
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body,
body * {
    font-family: var(--pb-font) !important;
    box-sizing: border-box;
}

p,
li,
td,
th,
label,
input,
textarea,
select,
button {
    font-size: var(--pb-text-size);
    line-height: 1.75;
}

p {
    margin: 0 0 15px;
}

a {
    color: var(--pb-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================
   TITRES
========================================================== */

h1,
.pp-content h1,
.pb-content h1,
.page-content h1,
.module-content h1,
.site-content h1 {
    color: var(--pb-dark);
    font-size: var(--pb-h1);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.4px;
    margin: 0 0 18px;
}

h2,
.pp-content h2,
.pb-content h2,
.page-content h2,
.module-content h2,
.site-content h2 {
    color: var(--pb-dark);
    font-size: var(--pb-h2);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.25px;
    margin: 28px 0 14px;
}

h3,
.pp-content h3,
.pb-content h3,
.page-content h3,
.module-content h3,
.site-content h3 {
    color: var(--pb-dark);
    font-size: var(--pb-h3);
    line-height: 1.3;
    font-weight: 850;
    margin: 22px 0 11px;
}

h4,
.pp-content h4,
.pb-content h4,
.page-content h4,
.module-content h4,
.site-content h4 {
    color: var(--pb-dark);
    font-size: var(--pb-h4);
    line-height: 1.35;
    font-weight: 850;
    margin: 18px 0 9px;
}

h5,
h6 {
    color: var(--pb-dark);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 850;
    margin: 16px 0 8px;
}

small,
figcaption,
.news-date,
.nw-date,
.gv-kicker,
.gv-badge,
.pp-kicker,
.nw-kicker {
    font-size: var(--pb-small-size) !important;
    line-height: 1.45;
}

/* ==========================================================
   TITRE DES PAGES PUBLIQUES
   Titre discret : 20px maximum
========================================================== */

.pp-page-header {
    margin: 0 0 20px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--pb-border);
}

.pp-page-title {
    margin: 0 !important;
    color: var(--pb-blue) !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.pp-page-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--pb-blue);
}

.pp-page-header + .pp-content > h1:first-child {
    margin-top: 0 !important;
}

/* ==========================================================
   STRUCTURE PAGE PUBLIQUE
========================================================== */

.pb-page,
.site-page,
.pp-page,
.nw-page,
.gv-page {
    background:
        radial-gradient(circle at top left, rgba(11, 63, 120, .08), transparent 34%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    padding: 28px 0 42px !important;
    min-height: auto !important;
}

.pb-container,
.pp-container,
.nw-container,
.gv-wrap,
.site-container,
.page-container {
    width: min(var(--pb-container), calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pb-panel,
.pp-panel,
.nw-panel,
.gv-panel,
.site-panel,
.page-panel,
.module-panel {
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-lg);
    padding: clamp(26px, 3.4vw, 42px);
    backdrop-filter: blur(10px);
}

/* ==========================================================
   PAGES SPÉCIALES RÉCENTES
========================================================== */

.gals-page,
.collab-page,
.news-view-page {
    padding-top: 28px !important;
    padding-bottom: 42px !important;
    min-height: auto !important;
}

.gals-wrap,
.collab-wrap,
.news-view-wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.news-view-panel {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.news-view-content,
.gv-content {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
}

/* ==========================================================
   CONTENU DES PAGES
========================================================== */

.pb-content,
.pp-content,
.page-content,
.module-content,
.site-content,
.news-content,
.gallery-content {
    color: var(--pb-text);
    font-size: var(--pb-text-size) !important;
    line-height: 1.78;
}

.pb-content::after,
.pp-content::after,
.page-content::after {
    content: "";
    display: block;
    clear: both;
}

.pb-content > *:first-child,
.pp-content > *:first-child,
.page-content > *:first-child,
.module-content > *:first-child,
.site-content > *:first-child {
    margin-top: 0 !important;
}

.pb-content > *:last-child,
.pp-content > *:last-child,
.page-content > *:last-child,
.module-content > *:last-child,
.site-content > *:last-child {
    margin-bottom: 0 !important;
}

.pb-content p,
.pp-content p,
.page-content p,
.module-content p,
.site-content p {
    margin: 0 0 15px;
}

.pb-content ul,
.pp-content ul,
.page-content ul,
.pb-content ol,
.pp-content ol,
.page-content ol {
    padding-left: 23px;
    margin: 0 0 18px;
}

.pb-content li,
.pp-content li,
.page-content li {
    margin-bottom: 7px;
}

.pb-content a,
.pp-content a,
.page-content a,
.module-content a {
    color: var(--pb-blue);
    font-weight: 800;
    text-decoration: none;
}

.pb-content a:hover,
.pp-content a:hover,
.page-content a:hover,
.module-content a:hover {
    text-decoration: underline;
}

/* ==========================================================
   IMAGES / FIGURES / TABLEAUX
========================================================== */

.pb-content img,
.pp-content img,
.page-content img,
.module-content img,
.site-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--pb-shadow);
}

.pb-content figure,
.pp-content figure,
.page-content figure {
    margin: 26px 0;
}

.pb-content figcaption,
.pp-content figcaption,
.page-content figcaption {
    margin-top: 8px;
    color: var(--pb-muted);
    font-size: var(--pb-small-size);
    text-align: center;
}

.pb-content table,
.pp-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--pb-shadow);
}

.pb-content th,
.pp-content th,
.page-content th {
    background: var(--pb-blue);
    color: #ffffff;
    text-align: left;
    padding: 13px 14px;
    font-size: var(--pb-text-size);
    font-weight: 900;
}

.pb-content td,
.pp-content td,
.page-content td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--pb-border);
    color: var(--pb-text);
    font-size: var(--pb-text-size);
}

/* ==========================================================
   BOUTONS
========================================================== */

.pb-btn,
.pp-btn,
.gv-btn,
.nw-more,
.site-btn,
.btn,
.button,
.module-btn,
button.pb-btn,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border-radius: 999px;
    border: 1px solid rgba(11, 63, 120, .16);
    background: var(--pb-blue);
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.pb-btn:hover,
.pp-btn:hover,
.gv-btn:hover,
.nw-more:hover,
.site-btn:hover,
.btn:hover,
.button:hover,
.module-btn:hover,
button.pb-btn:hover,
input[type="submit"]:hover {
    background: var(--pb-blue-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(11, 63, 120, .18);
    text-decoration: none !important;
}

/* ==========================================================
   MODULES / CARTES
========================================================== */

.modules-grid,
.cards-grid,
.pb-grid,
.site-grid,
.news-grid,
.gallery-grid,
.team-grid,
.partners-grid,
.pp-content .modules-grid,
.pp-content .cards-grid,
.pp-content .pb-grid,
.pp-content .site-grid,
.pp-content .news-grid,
.pp-content .gallery-grid,
.pp-content .team-grid,
.pp-content .partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 24px 0 !important;
}

.module-card,
.pb-card,
.site-card,
.news-card,
.gallery-card,
.team-card,
.service-card,
.nw-card {
    background: #ffffff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.module-card:hover,
.pb-card:hover,
.site-card:hover,
.news-card:hover,
.gallery-card:hover,
.team-card:hover,
.service-card:hover,
.nw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(7, 27, 52, .14);
    border-color: rgba(11, 63, 120, .20);
}

.module-card-body,
.pb-card-body,
.site-card-body,
.news-card-body,
.gallery-card-body,
.team-card-body,
.service-card-body,
.nw-body {
    padding: 22px;
}

.module-card h2,
.module-card h3,
.pb-card h2,
.pb-card h3,
.site-card h2,
.site-card h3,
.news-card h2,
.news-card h3,
.gallery-card h2,
.gallery-card h3,
.team-card h2,
.team-card h3,
.service-card h2,
.service-card h3,
.nw-title {
    color: var(--pb-dark);
    font-size: 18px !important;
    line-height: 1.32;
    font-weight: 850;
    margin: 0 0 10px;
}

.module-card p,
.pb-card p,
.site-card p,
.news-card p,
.gallery-card p,
.team-card p,
.service-card p,
.nw-excerpt {
    color: var(--pb-muted);
    font-size: 13px !important;
    line-height: 1.65;
}

/* ==========================================================
   NEWS LIST
========================================================== */

.nw-head {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 28px;
}

.nw-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--pb-blue-soft);
    color: var(--pb-blue);
    border: 1px solid rgba(11, 63, 120, .14);
    font-size: var(--pb-small-size);
    font-weight: 850;
    line-height: 1.2;
    margin-bottom: 12px;
}

.nw-title-main {
    margin: 0;
    color: var(--pb-dark);
    font-size: var(--pb-h1);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.nw-lead {
    margin: 16px auto 0;
    color: var(--pb-muted);
    font-size: var(--pb-text-size);
    line-height: 1.75;
    max-width: 780px;
}

.nw-count {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--pb-blue);
    border: 1px solid rgba(11, 63, 120, .14);
    font-size: var(--pb-small-size);
    font-weight: 850;
}

.nw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.nw-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.nw-image-link {
    display: block;
    text-decoration: none;
}

.nw-image-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pb-blue-soft);
}

.nw-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: none;
    border-radius: 0;
    transition: transform .28s ease, opacity .28s ease;
}

.nw-card:hover .nw-image-frame img {
    transform: scale(1.045);
    opacity: .92;
}

.nw-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b3f78, #38bdf8);
    color: #ffffff;
    font-size: 42px;
    font-weight: 900;
}

.nw-date {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--pb-blue-soft);
    color: var(--pb-blue);
    font-size: var(--pb-small-size);
    font-weight: 850;
    margin-bottom: 12px;
}

.nw-title a {
    color: inherit;
    text-decoration: none;
}

.nw-title a:hover {
    color: var(--pb-blue);
    text-decoration: none;
}

.nw-more {
    margin-top: auto;
    width: fit-content;
}

/* ==========================================================
   NEWS VIEW — MINIATURES PHOTOS
========================================================== */

.nv-gallery-section {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--pb-border);
}

.nv-gallery-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 22px;
}

.nv-gallery-header h2 {
    margin: 0 0 8px;
    color: var(--pb-dark);
    font-size: var(--pb-h2);
    line-height: 1.25;
    font-weight: 900;
}

.nv-gallery-header p {
    margin: 0;
    color: var(--pb-muted);
    font-size: var(--pb-small-size);
    line-height: 1.55;
}

.nv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 0;
}

.nv-gallery-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background: var(--pb-blue-soft);
    border: 1px solid var(--pb-border);
    box-shadow: var(--pb-shadow);
    text-decoration: none !important;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nv-gallery-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(7, 27, 52, .16);
    border-color: rgba(11, 63, 120, .22);
    text-decoration: none !important;
}

.nv-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: transform .32s ease, opacity .32s ease, filter .32s ease;
}

.nv-gallery-thumb:hover img {
    transform: scale(1.055);
    opacity: .92;
    filter: brightness(.88);
}

.nv-gallery-thumb::after {
    content: "Visionner";
    position: absolute;
    left: 50%;
    bottom: 13px;
    transform: translateX(-50%) translateY(10px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(3, 10, 20, .78);
    color: #ffffff;
    font-size: var(--pb-small-size);
    font-weight: 850;
    line-height: 1.2;
    opacity: 0;
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
    white-space: nowrap;
}

.nv-gallery-thumb:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nv-gallery-play-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.nv-gallery-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border-radius: 999px;
    border: 1px solid rgba(11, 63, 120, .16);
    background: var(--pb-blue);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(11, 63, 120, .16);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.nv-gallery-play-btn:hover {
    background: var(--pb-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 63, 120, .22);
}

/* ==========================================================
   GALERIE VIEW
========================================================== */

.gv-head {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 28px;
}

.gv-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.gv-kicker,
.gv-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--pb-blue-soft);
    color: var(--pb-blue);
    border: 1px solid rgba(11, 63, 120, .14);
    font-size: var(--pb-small-size);
    font-weight: 850;
    line-height: 1.2;
}

.gv-kicker {
    margin-bottom: 10px;
}

.gv-title {
    margin: 0 0 14px;
    color: var(--pb-dark) !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.gv-description {
    margin: 16px auto 0;
    color: var(--pb-text);
    font-size: var(--pb-text-size);
    line-height: 1.75;
    max-width: 840px;
}

.gv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 28px;
    margin-bottom: 24px;
}

.gv-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px;
    background: var(--pb-blue-soft);
    box-shadow: var(--pb-shadow);
    border: 1px solid var(--pb-border);
    text-decoration: none !important;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gv-photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(7, 27, 52, .16);
    border-color: rgba(11, 63, 120, .20);
}

.gv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: none;
    border-radius: 0;
    transition: transform .32s ease, opacity .32s ease;
}

.gv-photo:hover img {
    transform: scale(1.055);
    opacity: .90;
}

.gv-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(
        to top,
        rgba(3, 10, 20, .78),
        rgba(3, 10, 20, .28),
        rgba(3, 10, 20, 0)
    );
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    z-index: 2;
}

.gv-photo-title {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .40);
}

.gv-photo-zoom {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--pb-dark);
    font-size: var(--pb-small-size);
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}

.gv-empty,
.nw-empty,
.pb-empty {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 28px;
    color: var(--pb-muted);
    font-size: var(--pb-text-size);
    line-height: 1.75;
    box-shadow: var(--pb-shadow);
    text-align: center;
}

/* ==========================================================
   GALERIES LISTE SIMPLE
========================================================== */

.gals-grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.gals-card {
    margin: 0 !important;
}

.gals-title {
    font-size: 15px !important;
    line-height: 1.35 !important;
}

/* ==========================================================
   COLLABORATEURS
========================================================== */

.collab-grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.collab-card {
    margin: 0 !important;
}

.collab-name {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.collab-function,
.collab-description,
.collab-contact a {
    font-size: 13px !important;
}

/* ==========================================================
   LIGHTBOX GALERIE + NEWS VIEW
========================================================== */

.gv-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 10, 20, .94);
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(6px);
}

.gv-lightbox.is-open {
    display: flex;
}

.gv-lightbox-content {
    max-width: 1120px;
    width: 100%;
    text-align: center;
    color: #ffffff;
}

.gv-lightbox-image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    background: #000000;
}

.gv-lightbox-title {
    color: #ffffff;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 800;
}

.gv-lightbox-counter,
.gv-lightbox-status {
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: var(--pb-small-size);
    font-weight: 700;
}

.gv-lightbox-close,
.gv-lightbox-prev,
.gv-lightbox-next {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    cursor: pointer;
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
    backdrop-filter: blur(8px);
}

.gv-lightbox-close:hover,
.gv-lightbox-prev:hover,
.gv-lightbox-next:hover {
    background: rgba(255, 255, 255, .26);
}

.gv-lightbox-close {
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    font-size: 32px;
    line-height: 1;
}

.gv-lightbox-prev,
.gv-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 42px;
    line-height: 1;
}

.gv-lightbox-prev:hover,
.gv-lightbox-next:hover {
    transform: translateY(-50%) scale(1.04);
}

.gv-lightbox-prev {
    left: 24px;
}

.gv-lightbox-next {
    right: 24px;
}

.gv-controls {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.gv-controls button,
.gv-controls select {
    border: none;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.gv-controls button {
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
}

.gv-controls button:hover {
    background: rgba(255, 255, 255, .28);
}

.gv-controls select {
    background: #ffffff;
    color: var(--pb-dark);
}

/* ==========================================================
   HEADER / MENU
========================================================== */

.pb-site-header-pro,
.pb-site-header-pro *,
.pb-site-header,
.pb-site-header * {
    font-family: var(--pb-font) !important;
}

.pb-brand-text-pro strong {
    font-size: 18px !important;
    font-weight: 900;
}

.pb-brand-text-pro small {
    font-size: 12px !important;
    line-height: 1.35;
}

.pb-menu-wrap-pro .menu-link,
.pb-menu-wrap-pro .menu-item > a {
    font-size: 13px !important;
    font-weight: 850;
}

/* ==========================================================
   MENU — éviter double flèche sous-menu
========================================================== */

.menu-link.has-arrow::after,
.menu-item.has-children > a::after,
.menu-item.has-children > .menu-link::after,
.pb-menu-wrap-pro .menu-link.has-arrow::after,
.pb-menu-wrap-pro .menu-item.has-children > a::after,
.pb-menu-wrap-pro .menu-item.has-children > .menu-link::after,
.main-menu .menu-link.has-arrow::after,
.main-menu .menu-item.has-children > a::after,
.main-menu .menu-item.has-children > .menu-link::after {
    content: none !important;
    display: none !important;
}

.menu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    font-size: 11px;
    line-height: 1;
    transform: translateY(1px);
}

.menu-item.is-open > .menu-link .menu-arrow,
.menu-item.open > .menu-link .menu-arrow,
.menu-item.active-submenu > .menu-link .menu-arrow {
    transform: translateY(1px) rotate(180deg);
}

/* ==========================================================
   FOOTER
========================================================== */

.site-footer,
.pb-footer {
    margin-top: 0 !important;
}

.site-footer,
.site-footer *,
.pb-footer,
.pb-footer * {
    font-family: var(--pb-font) !important;
    font-size: 13px;
    line-height: 1.65;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.pb-footer h2,
.pb-footer h3,
.pb-footer h4 {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 850;
}

/* ==========================================================
   TITRES DES MODULES INSÉRÉS DANS LES PAGES CMS
   Exemples :
   [module:news titre="Dernières news" limit=3]
   [module:galeries titre="Dernières galeries" limit=3]
   [module:collaborateurs titre="Notre équipe"]
   [module:partenaires titre="Nos partenaires"]
========================================================== */

.cms-module-section,
.module-section,
.pp-content .cms-module-section,
.pp-content .module-section,
.page-content .cms-module-section,
.page-content .module-section {
    margin: 34px 0 38px;
}

.cms-module-section:first-child,
.module-section:first-child {
    margin-top: 0;
}

.cms-module-section:last-child,
.module-section:last-child {
    margin-bottom: 0;
}

.cms-module-head,
.module-head {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 24px;
}

.cms-module-kicker,
.module-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--pb-blue-soft);
    color: var(--pb-blue);
    border: 1px solid rgba(11, 63, 120, .14);
    font-size: var(--pb-small-size);
    font-weight: 850;
    line-height: 1.2;
    margin-bottom: 11px;
}

.cms-module-title,
.module-title,
.pp-content .cms-module-title,
.pp-content .module-title,
.page-content .cms-module-title,
.page-content .module-title {
    margin: 0 !important;
    color: var(--pb-dark) !important;
    font-size: clamp(21px, 2.2vw, 28px) !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    letter-spacing: -0.25px;
    text-align: center;
}

.cms-module-title::after,
.module-title::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: var(--pb-blue);
}

.cms-module-intro,
.module-intro {
    margin: 14px auto 0 !important;
    max-width: 760px;
    color: var(--pb-muted);
    font-size: var(--pb-text-size);
    line-height: 1.75;
    text-align: center;
}

.cms-module-section .nw-grid,
.cms-module-section .gv-grid,
.cms-module-section .gals-grid,
.cms-module-section .collab-grid,
.cms-module-section .partners-grid,
.module-section .nw-grid,
.module-section .gv-grid,
.module-section .gals-grid,
.module-section .collab-grid,
.module-section .partners-grid {
    margin-top: 22px !important;
}

.cms-module-actions,
.module-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.cms-module-section.is-compact,
.module-section.is-compact {
    margin: 24px 0;
}

.cms-module-section.is-compact .cms-module-title,
.module-section.is-compact .module-title {
    font-size: 20px !important;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1050px) {
    .modules-grid,
    .cards-grid,
    .pb-grid,
    .site-grid,
    .news-grid,
    .gallery-grid,
    .team-grid,
    .partners-grid,
    .pp-content .modules-grid,
    .pp-content .cards-grid,
    .pp-content .pb-grid,
    .pp-content .site-grid,
    .pp-content .news-grid,
    .pp-content .gallery-grid,
    .pp-content .team-grid,
    .pp-content .partners-grid,
    .nw-grid,
    .gv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 720px) {
    :root {
        --pb-text-size: 13.5px;
        --pb-small-size: 11.5px;

        --pb-h1: 25px;
        --pb-h2: 22px;
        --pb-h3: 19px;
        --pb-h4: 16px;
    }

    .pb-page,
    .site-page,
    .pp-page,
    .nw-page,
    .gv-page,
    .gals-page,
    .collab-page,
    .news-view-page {
        padding-top: 20px !important;
        padding-bottom: 30px !important;
        min-height: auto !important;
    }

    .pb-container,
    .pp-container,
    .nw-container,
    .gv-wrap,
    .site-container,
    .page-container {
        width: min(100% - 24px, var(--pb-container));
    }

    .pb-panel,
    .pp-panel,
    .nw-panel,
    .gv-panel,
    .site-panel,
    .page-panel,
    .module-panel {
        padding: 20px !important;
        border-radius: 22px;
    }

    .pp-page-header {
        margin-bottom: 16px;
        padding-bottom: 11px;
    }

    .pp-page-title {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    .pp-page-title::after {
        width: 36px;
        height: 3px;
        margin-top: 8px;
    }

    .news-view-content,
    .gv-content {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .modules-grid,
    .cards-grid,
    .pb-grid,
    .site-grid,
    .news-grid,
    .gallery-grid,
    .team-grid,
    .partners-grid,
    .pp-content .modules-grid,
    .pp-content .cards-grid,
    .pp-content .pb-grid,
    .pp-content .site-grid,
    .pp-content .news-grid,
    .pp-content .gallery-grid,
    .pp-content .team-grid,
    .pp-content .partners-grid,
    .nw-grid,
    .gv-grid,
    .gals-grid,
    .collab-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 18px !important;
        margin-bottom: 18px !important;
    }

    .gals-grid,
    .collab-grid {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .pb-content,
    .pp-content,
    .page-content,
    .module-content,
    .site-content,
    .news-content,
    .gallery-content {
        font-size: var(--pb-text-size) !important;
        line-height: 1.72;
    }

    .pb-content table,
    .pp-content table,
    .page-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .pb-brand-text-pro strong {
        font-size: 17px !important;
    }

    .pb-brand-text-pro small {
        font-size: 12px !important;
    }

    .pb-menu-wrap-pro .menu-link,
    .pb-menu-wrap-pro .menu-item > a {
        font-size: 13.5px !important;
    }

    .gv-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gv-btn {
        width: 100%;
    }

    .gv-photo {
        border-radius: 18px;
    }

    .gv-photo-caption {
        padding: 13px;
    }

    .gv-lightbox {
        padding: 14px;
    }

    .gv-lightbox-image {
        max-height: 72vh;
        border-radius: 14px;
    }

    .gv-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .gv-lightbox-prev,
    .gv-lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 32px;
    }

    .gv-lightbox-prev {
        left: 12px;
    }

    .gv-lightbox-next {
        right: 12px;
    }

    .gv-controls {
        gap: 7px;
    }

    .gv-controls button,
    .gv-controls select {
        font-size: 12.5px;
        padding: 8px 10px;
    }

    .nv-gallery-section {
        margin-top: 24px;
        padding-top: 20px;
    }

    .nv-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .nv-gallery-thumb {
        border-radius: 16px;
    }

    .nv-gallery-thumb::after {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        bottom: 10px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .nv-gallery-play-btn {
        width: 100%;
    }

    .cms-module-section,
    .module-section,
    .pp-content .cms-module-section,
    .pp-content .module-section,
    .page-content .cms-module-section,
    .page-content .module-section {
        margin: 26px 0 30px;
    }

    .cms-module-head,
    .module-head {
        margin-bottom: 18px;
    }

    .cms-module-title,
    .module-title,
    .pp-content .cms-module-title,
    .pp-content .module-title,
    .page-content .cms-module-title,
    .page-content .module-title {
        font-size: 21px !important;
        line-height: 1.3 !important;
    }

    .cms-module-title::after,
    .module-title::after {
        width: 52px;
        height: 3px;
        margin-top: 10px;
    }

    .cms-module-intro,
    .module-intro {
        font-size: 13px;
        line-height: 1.65;
    }

    .cms-module-actions,
    .module-actions {
        margin-top: 18px;
    }
}

@media (max-width: 420px) {
    :root {
        --pb-text-size: 13px;
        --pb-small-size: 11px;

        --pb-h1: 24px;
        --pb-h2: 21px;
        --pb-h3: 18px;
        --pb-h4: 16px;
    }

    .nv-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   CORRECTION DÉCALAGE MOBILE / TABLETTE — PROD BROCCARD
   Cause ciblée : élément global qui dépasse la largeur écran
   À garder tout en bas du fichier site_theme_pro.css
========================================================== */

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body {
    position: relative;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
iframe,
object,
embed,
table {
    max-width: 100%;
}

img,
video {
    height: auto;
}

/* Sécurité générale : aucun bloc public ne doit créer une largeur forcée */
.pb-page,
.site-page,
.pp-page,
.nw-page,
.gv-page,
.gals-page,
.collab-page,
.news-view-page,
.pb-container,
.pp-container,
.nw-container,
.gv-wrap,
.site-container,
.page-container,
.pb-panel,
.pp-panel,
.nw-panel,
.gv-panel,
.site-panel,
.page-panel,
.module-panel,
.pb-content,
.pp-content,
.page-content,
.module-content,
.site-content,
.news-content,
.gallery-content,
.cms-module-section,
.module-section,
.modules-grid,
.cards-grid,
.pb-grid,
.site-grid,
.news-grid,
.gallery-grid,
.team-grid,
.partners-grid,
.nw-grid,
.gv-grid,
.gals-grid,
.collab-grid,
.nv-gallery-grid {
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Header / menu : zone la plus probable du décalage */
.pb-site-header-pro,
.pb-site-header,
.pb-topbar-pro,
.pb-mainbar-pro,
.pb-header-inner-pro,
.pb-brand-pro,
.pb-menu-wrap-pro,
.pb-menu-wrap-pro nav,
.pb-menu-wrap-pro .menu,
.pb-menu-wrap-pro .main-menu,
.pb-menu-wrap-pro .menu-list,
.pb-menu-wrap-pro .menu-items,
.pb-menu-wrap-pro .menu-item,
.pb-menu-wrap-pro .menu-link,
.main-menu,
.site-menu,
.menu,
.navbar,
nav {
    max-width: 100% !important;
    min-width: 0 !important;
}

.pb-site-header-pro,
.pb-site-header,
.pb-topbar-pro,
.pb-mainbar-pro,
.pb-header-inner-pro {
    overflow-x: hidden !important;
}

/* Footer : évite qu'une image, un lien ou une colonne pousse le site */
.site-footer,
.pb-footer,
.site-footer *,
.pb-footer * {
    max-width: 100% !important;
    min-width: 0 !important;
}

.site-footer img,
.pb-footer img {
    max-width: 100% !important;
    height: auto !important;
}

.site-footer a,
.pb-footer a,
.pb-content a,
.pp-content a,
.page-content a,
.module-content a,
.site-content a {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Partenaires / sliders éventuels : souvent responsables d'un scroll horizontal */
.partners-slider,
.partners-carousel,
.partners-marquee,
.partners-track,
.partner-track,
.logo-slider,
.logo-track,
.slider,
.carousel {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

@media (max-width: 900px) {
    .pb-page,
    .site-page,
    .pp-page,
    .nw-page,
    .gv-page,
    .gals-page,
    .collab-page,
    .news-view-page {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .pb-container,
    .pp-container,
    .nw-container,
    .gv-wrap,
    .site-container,
    .page-container {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pb-panel,
    .pp-panel,
    .nw-panel,
    .gv-panel,
    .site-panel,
    .page-panel,
    .module-panel {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .modules-grid,
    .cards-grid,
    .pb-grid,
    .site-grid,
    .news-grid,
    .gallery-grid,
    .team-grid,
    .partners-grid,
    .nw-grid,
    .gv-grid,
    .gals-grid,
    .collab-grid,
    .nv-gallery-grid {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        overflow-x: hidden !important;
    }

    /* Si le menu desktop reste affiché sur mobile, il ne doit plus pousser la page */
    .pb-menu-wrap-pro,
    .main-menu,
    .site-menu,
    .menu,
    .navbar,
    nav {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .pb-menu-wrap-pro .menu,
    .pb-menu-wrap-pro .main-menu,
    .pb-menu-wrap-pro .menu-list,
    .pb-menu-wrap-pro .menu-items {
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }

    .pb-menu-wrap-pro .menu-link,
    .pb-menu-wrap-pro .menu-item > a,
    .main-menu a,
    .site-menu a,
    .menu a,
    nav a {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .submenu,
    .sub-menu,
    .dropdown-menu,
    .pb-submenu,
    .menu-item ul {
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        left: auto !important;
        right: auto !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .pb-container,
    .pp-container,
    .nw-container,
    .gv-wrap,
    .site-container,
    .page-container {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
    }

    .pb-panel,
    .pp-panel,
    .nw-panel,
    .gv-panel,
    .site-panel,
    .page-panel,
    .module-panel {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* ==========================================================
   FOOTER — LARGEUR COMME LA BANNIÈRE
   Ajout propre : ne modifie pas les cadres existants
   À garder tout en bas du fichier site_theme_pro.css
========================================================== */

/*
   Objectif :
   - Le footer lui-même prend toute la largeur de l'écran.
   - Aucun arrondi extérieur.
   - Aucune marge extérieure.
   - Les cadres/colonnes internes existants ne sont pas modifiés.
   - Compatible avec 3 cadres aujourd'hui ou 4 cadres demain.
*/

.site-footer,
.pb-footer,
.site_footer,
#site_footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

/* Si un ancien footer avait un fond limité, on garde le fond en pleine largeur */
.site-footer,
.pb-footer {
    background: #111827;
}

/*
   Les conteneurs internes restent centrés.
   Cela règle la largeur sans toucher aux cadres eux-mêmes.
*/
.site-footer-inner,
.site_footer_inner,
.footer-inner,
.footer_content,
.site_footer_content,
.pb-footer-inner,
.pb-footer-content {
    width: min(1240px, calc(100% - 32px)) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================
   TOP FOOTER OPTIONNEL
   À placer au-dessus des cadres si besoin
========================================================== */

.site-footer-top-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 0 !important;
    border-radius: 0 !important;
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.16), transparent 34%),
        linear-gradient(135deg, #263845, #4e6575);
}

.site-footer-top-page-inner {
    width: min(1240px, calc(100% - 32px)) !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-footer-top-page-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: clamp(22px, 3vw, 34px) !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
}

.site-footer-top-page-text {
    margin: 7px 0 0 !important;
    padding: 0 !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 650 !important;
}

.site-footer-top-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.site-footer-top-page-button:hover {
    color: #111827 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/*
   Important :
   on ne force PAS les cadres du footer.
   Donc pas de règle sur les .footer-box, .footer-card, .footer-col, etc.
   Tes 3 cadres restent 3 cadres.
   Si tu ajoutes un 4e cadre dans ton PHP, il restera possible sans casser le footer.
*/

@media (max-width: 720px) {
    .site-footer-inner,
    .site_footer_inner,
    .footer-inner,
    .footer_content,
    .site_footer_content,
    .pb-footer-inner,
    .pb-footer-content,
    .site-footer-top-page-inner {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
    }

    .site-footer-top-page {
        padding: 24px 0 !important;
    }

    .site-footer-top-page-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .site-footer-top-page-title {
        font-size: 23px !important;
    }

    .site-footer-top-page-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .site-footer-top-page-button {
        width: 100%;
    }
}
