/* ===========================================================================
   WESTPORTS — Composants (LOT 06)
   Boutons, formulaires, cartes, badges, modals, timeline, galerie, tableaux,
   toasts, pagination, états loading / empty / error, header, footer.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Boutons
   --------------------------------------------------------------------------- */

.wp-btn {
    --btn-bg: var(--wp-btn-primary-bg);
    --btn-fg: var(--wp-btn-primary-fg);
    --btn-border: transparent;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wp-space-2);
    padding: 0.875rem 1.75rem;
    min-height: 48px; /* cible tactile confortable */
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--btn-fg);
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: var(--wp-radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color var(--wp-duration-fast) var(--wp-ease),
        color var(--wp-duration-fast) var(--wp-ease),
        border-color var(--wp-duration-fast) var(--wp-ease),
        transform var(--wp-duration-fast) var(--wp-ease);
}

.wp-btn:hover {
    transform: translateY(-1px);
}

.wp-btn:active {
    transform: translateY(0);
}

.wp-btn[disabled],
.wp-btn[aria-disabled='true'] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* L'appel à l'action principal prend la couleur d'autorité du registre :
   marine plein en thème clair, or en thème sombre. Dans les deux cas un aplat
   franc — et l'or reste ailleurs un accent rare, jamais un aplat large. */
.wp-btn--primary {
    --btn-bg: var(--wp-btn-primary-bg);
    --btn-fg: var(--wp-btn-primary-fg);
}

.wp-btn--primary:hover {
    --btn-bg: color-mix(in srgb, var(--wp-btn-primary-bg) 86%, var(--wp-white));
}

.wp-btn--gold {
    --btn-bg: var(--wp-gold-500);
    --btn-fg: var(--wp-navy-900);
}

.wp-btn--gold:hover {
    --btn-bg: var(--wp-gold-400);
}

.wp-btn--dark {
    --btn-bg: var(--wp-navy-900);
    --btn-fg: var(--wp-white);
}

.wp-btn--dark:hover {
    --btn-bg: var(--wp-navy-700);
}

.wp-btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--wp-btn-ghost-fg);
    --btn-border: var(--wp-border-strong);
}

.wp-btn--ghost:hover {
    --btn-bg: var(--wp-text);
    --btn-fg: var(--wp-bg);
    --btn-border: var(--wp-text);
}

/* Bouton secondaire posé sur un fond quelconque.
   Il ne nomme plus le blanc : il suit la couleur de son contexte, et devient
   donc lisible aussi bien sur une bande marine que sur un bandeau clair. Les
   sections en contraste (.wp-inverse, .wp-cta, le pied de page) redéfinissent
   ce rôle et le bouton suit, sans qu'aucun gabarit n'ait à changer de classe. */
.wp-btn--on-dark {
    --btn-bg: transparent;
    --btn-fg: var(--wp-btn-ghost-fg);
    --btn-border: color-mix(in srgb, var(--wp-btn-ghost-fg) 38%, transparent);
}

.wp-btn--on-dark:hover {
    --btn-bg: var(--wp-btn-ghost-fg);
    --btn-fg: var(--wp-bg);
    --btn-border: var(--wp-btn-ghost-fg);
}

.wp-btn--sm {
    padding: 0.625rem 1.25rem;
    min-height: 40px;
    font-size: var(--wp-text-xs);
}

.wp-btn--lg {
    padding: 1.0625rem 2.25rem;
    min-height: 56px;
}

.wp-btn--block {
    width: 100%;
}

.wp-btn__icon {
    width: 16px;
    height: 16px;
    flex: none;
    transition: transform var(--wp-duration-base) var(--wp-ease);
}

.wp-btn:hover .wp-btn__icon--arrow {
    transform: translateX(4px);
}

/* Lien fléché : alternative discrète au bouton. */
.wp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--wp-space-2);
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wp-link);
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    transition: color var(--wp-duration-fast) var(--wp-ease), gap var(--wp-duration-fast) var(--wp-ease);
}

.wp-link-arrow:hover {
    color: var(--wp-link-hover);
    gap: var(--wp-space-3);
}

/* ---------------------------------------------------------------------------
   2. Badges et pastilles
   --------------------------------------------------------------------------- */

.wp-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--wp-space-2);
    padding: 0.3125rem 0.75rem;
    font-size: var(--wp-text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--wp-radius-full);
    background: var(--wp-surface-sunken);
    color: var(--wp-text-muted);
    border: 1px solid transparent;
}

.wp-badge--accent  { background: rgba(200, 162, 74, 0.14); color: var(--wp-gold-600); }
.wp-badge--info    { background: rgba(45, 127, 184, 0.12); color: var(--wp-blue-500); }
.wp-badge--success { background: rgba(47, 143, 91, 0.12);  color: var(--wp-success); }
.wp-badge--danger  { background: rgba(180, 67, 47, 0.12);  color: var(--wp-danger); }

.wp-badge--on-dark {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.16);
}

/* Pastille « 24/7 » avec point pulsant. */
.wp-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wp-success);
    flex: none;
    position: relative;
}

.wp-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--wp-success);
    opacity: 0;
    animation: wp-pulse 2.4s var(--wp-ease) infinite;
}

@keyframes wp-pulse {
    0%   { opacity: 0.8; transform: scale(0.7); }
    70%  { opacity: 0;   transform: scale(1.5); }
    100% { opacity: 0;   transform: scale(1.5); }
}

/* ---------------------------------------------------------------------------
   3. Cartes
   --------------------------------------------------------------------------- */

.wp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--wp-surface);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-lg);
    overflow: hidden;
    transition:
        transform var(--wp-duration-base) var(--wp-ease),
        box-shadow var(--wp-duration-base) var(--wp-ease),
        border-color var(--wp-duration-base) var(--wp-ease);
}

.wp-card__media {
    position: relative;
    overflow: hidden;
    background: var(--wp-surface-sunken);
}

.wp-card__media img {
    transition: transform var(--wp-duration-slow) var(--wp-ease-out);
}

.wp-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--wp-space-3);
    padding: var(--wp-space-5);
    flex: 1;
}

.wp-card__title {
    font-size: var(--wp-text-lg);
    line-height: var(--wp-leading-snug);
}

.wp-card__text {
    color: var(--wp-text-muted);
    font-size: var(--wp-text-sm);
    line-height: var(--wp-leading-relaxed);
}

.wp-card__footer {
    margin-top: auto;
    padding-top: var(--wp-space-3);
}

/* Toute la carte est cliquable, mais un seul lien est annoncé au lecteur d'écran. */
.wp-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp-shadow-lg);
    border-color: var(--wp-border-strong);
}

.wp-card:hover .wp-card__media img {
    transform: scale(1.05);
}

.wp-card:focus-within {
    border-color: var(--wp-accent);
}

/* Carte de service : numéro discret, filet or au survol. */
.wp-service-card__index {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-xs);
    font-weight: 700;
    letter-spacing: var(--wp-tracking-caps);
    color: var(--wp-text-muted);
    opacity: 0.8;
}

.wp-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--wp-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--wp-duration-base) var(--wp-ease);
    z-index: 2;
}

.wp-service-card:hover::before {
    transform: scaleX(1);
}

/* Carte en contraste, posée sur une section claire. */
.wp-card--inverse {
    --wp-text-muted: rgba(255, 255, 255, 0.68);
    --wp-link: var(--wp-white);
    --wp-link-hover: var(--wp-gold-400);

    background: var(--wp-navy-850);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--wp-white);
}

/* ---------------------------------------------------------------------------
   4. Chiffres clés
   --------------------------------------------------------------------------- */

.wp-stats {
    display: grid;
    gap: var(--wp-grid-gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.wp-stat {
    display: grid;
    gap: var(--wp-space-2);
    padding-top: var(--wp-space-4);
    border-top: 1px solid var(--wp-border);
}

.wp-stat__value {
    font-family: var(--wp-font-display);
    font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--wp-text);
}

.wp-stat__suffix {
    color: var(--wp-accent);
}

.wp-stat__label {
    font-size: var(--wp-text-sm);
    color: var(--wp-text-muted);
    line-height: var(--wp-leading-snug);
}

/* ---------------------------------------------------------------------------
   5. Formulaires
   --------------------------------------------------------------------------- */

.wp-form {
    display: grid;
    gap: var(--wp-space-5);
}

.wp-field {
    display: grid;
    gap: var(--wp-space-2);
}

.wp-field__label {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-sm);
    font-weight: 600;
    color: var(--wp-text);
}

.wp-field__label .wp-required {
    color: var(--wp-danger);
    margin-left: 2px;
}

.wp-field__hint {
    font-size: var(--wp-text-xs);
    color: var(--wp-text-muted);
}

.wp-input,
.wp-select,
.wp-textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: var(--wp-text-base);
    color: var(--wp-text);
    background: var(--wp-surface);
    border: 1px solid var(--wp-border-strong);
    border-radius: var(--wp-radius-sm);
    transition:
        border-color var(--wp-duration-fast) var(--wp-ease),
        box-shadow var(--wp-duration-fast) var(--wp-ease);
}

.wp-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: var(--wp-leading-normal);
}

.wp-select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235f666d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.wp-input:focus,
.wp-select:focus,
.wp-textarea:focus {
    outline: none;
    border-color: var(--wp-navy-700);
    box-shadow: 0 0 0 3px rgba(20, 49, 79, 0.12);
}

.wp-input:focus-visible,
.wp-select:focus-visible,
.wp-textarea:focus-visible {
    outline: var(--wp-focus-ring);
    outline-offset: 1px;
}

.wp-input::placeholder,
.wp-textarea::placeholder {
    color: var(--wp-text-muted);
}

/* État d'erreur : couleur + texte, jamais la couleur seule. */
.wp-field--error .wp-input,
.wp-field--error .wp-select,
.wp-field--error .wp-textarea {
    border-color: var(--wp-danger);
    box-shadow: 0 0 0 3px rgba(180, 67, 47, 0.1);
}

.wp-field__error {
    display: flex;
    align-items: center;
    gap: var(--wp-space-2);
    font-size: var(--wp-text-xs);
    font-weight: 600;
    color: var(--wp-danger);
}

.wp-field__error::before {
    content: '!';
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--wp-danger);
    color: var(--wp-white);
    font-size: 11px;
    flex: none;
}

/* Cases à cocher et consentement. */
.wp-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--wp-space-3);
    align-items: start;
    font-size: var(--wp-text-sm);
    color: var(--wp-text-muted);
    line-height: var(--wp-leading-normal);
    cursor: pointer;
}

.wp-check input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--wp-navy-700);
    cursor: pointer;
}

.wp-check a {
    color: var(--wp-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Zone de dépôt de fichiers. */
.wp-dropzone {
    display: grid;
    gap: var(--wp-space-2);
    place-items: center;
    padding: var(--wp-space-6);
    text-align: center;
    border: 1px dashed var(--wp-border-strong);
    border-radius: var(--wp-radius-md);
    background: var(--wp-bg-alt);
    cursor: pointer;
    transition: border-color var(--wp-duration-fast) var(--wp-ease), background-color var(--wp-duration-fast) var(--wp-ease);
}

.wp-dropzone:hover,
.wp-dropzone.is-dragover {
    border-color: var(--wp-accent);
    background: rgba(200, 162, 74, 0.06);
}

.wp-dropzone__hint {
    font-size: var(--wp-text-xs);
    color: var(--wp-text-muted);
}

.wp-filelist {
    display: grid;
    gap: var(--wp-space-2);
    font-size: var(--wp-text-sm);
}

.wp-filelist__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp-space-3);
    padding: var(--wp-space-2) var(--wp-space-3);
    background: var(--wp-bg-alt);
    border-radius: var(--wp-radius-sm);
}

/* Le champ piège anti-robot ne doit jamais être visible ni focusable. */
.wp-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Groupes de champs. */
.wp-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--wp-space-5);
}

.wp-fieldset__legend {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-xs);
    font-weight: 700;
    letter-spacing: var(--wp-tracking-caps);
    text-transform: uppercase;
    color: var(--wp-accent);
    padding: 0;
    margin-bottom: var(--wp-space-2);
}

.wp-field-row {
    display: grid;
    gap: var(--wp-space-5);
}

@media (min-width: 640px) {
    .wp-field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wp-field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------------
   6. Alertes et états
   --------------------------------------------------------------------------- */

.wp-alert {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--wp-space-3);
    padding: var(--wp-space-4) var(--wp-space-5);
    border-radius: var(--wp-radius-md);
    border-left: 3px solid var(--wp-info);
    background: rgba(45, 127, 184, 0.08);
    font-size: var(--wp-text-sm);
    line-height: var(--wp-leading-normal);
}

.wp-alert--success { border-color: var(--wp-success); background: rgba(47, 143, 91, 0.09); }
.wp-alert--danger  { border-color: var(--wp-danger);  background: rgba(180, 67, 47, 0.09); }
.wp-alert--warning { border-color: var(--wp-warning); background: rgba(201, 138, 30, 0.1); }

.wp-alert__title {
    font-family: var(--wp-font-display);
    font-weight: 700;
    margin-bottom: var(--wp-space-1);
}

.wp-alert__icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.wp-reference {
    display: inline-block;
    margin-top: var(--wp-space-2);
    padding: var(--wp-space-2) var(--wp-space-4);
    font-family: var(--wp-font-mono);
    font-size: var(--wp-text-sm);
    letter-spacing: 0.06em;
    background: var(--wp-bg-inverse);
    color: var(--wp-white);
    border-radius: var(--wp-radius-sm);
}

/* État vide. */
.wp-empty {
    display: grid;
    gap: var(--wp-space-3);
    place-items: center;
    text-align: center;
    padding: var(--wp-space-9) var(--wp-space-5);
    border: 1px dashed var(--wp-border-strong);
    border-radius: var(--wp-radius-lg);
    color: var(--wp-text-muted);
}

/* État de chargement : squelettes, pas de spinner plein écran. */
.wp-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--wp-surface-sunken);
    border-radius: var(--wp-radius-md);
}

.wp-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: wp-shimmer 1.4s infinite;
}

@keyframes wp-shimmer {
    100% { transform: translateX(100%); }
}

.wp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wp-spin 0.7s linear infinite;
}

@keyframes wp-spin {
    to { transform: rotate(360deg); }
}

.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ---------------------------------------------------------------------------
   7. Toasts
   --------------------------------------------------------------------------- */

.wp-toasts {
    position: fixed;
    right: var(--wp-space-5);
    bottom: var(--wp-space-5);
    z-index: var(--wp-z-toast);
    display: grid;
    gap: var(--wp-space-3);
    width: min(360px, calc(100vw - 2 * var(--wp-space-5)));
    pointer-events: none;
}

.wp-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--wp-space-3);
    align-items: start;
    padding: var(--wp-space-4);
    background: var(--wp-bg-inverse);
    color: var(--wp-white);
    border-radius: var(--wp-radius-md);
    box-shadow: var(--wp-shadow-lg);
    border-left: 3px solid var(--wp-accent);
    font-size: var(--wp-text-sm);
    animation: wp-toast-in var(--wp-duration-base) var(--wp-ease-out);
}

.wp-toast--success { border-left-color: var(--wp-success); }
.wp-toast--danger  { border-left-color: var(--wp-danger); }

@keyframes wp-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------------
   8. Timeline (workflow Crew Change, process de service)
   --------------------------------------------------------------------------- */

.wp-timeline {
    display: grid;
    gap: 0;
    position: relative;
}

.wp-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--wp-space-4);
    padding-bottom: var(--wp-space-6);
}

.wp-timeline__item:last-child {
    padding-bottom: 0;
}

/* Trait vertical reliant les étapes. */
.wp-timeline__item::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 34px;
    bottom: 0;
    width: 1px;
    background: var(--wp-border);
}

.wp-timeline__item:last-child::before {
    display: none;
}

.wp-timeline__marker {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wp-surface);
    border: 1px solid var(--wp-border-strong);
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--wp-text-muted);
    flex: none;
    z-index: 1;
    transition: all var(--wp-duration-base) var(--wp-ease);
}

.wp-timeline__item.is-active .wp-timeline__marker,
.wp-timeline__item:hover .wp-timeline__marker {
    background: var(--wp-gold-500);
    border-color: var(--wp-gold-500);
    color: var(--wp-text-strong);
}

.wp-timeline__content {
    padding-top: var(--wp-space-2);
}

.wp-timeline__title {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-lg);
    font-weight: 700;
    line-height: var(--wp-leading-snug);
    margin-bottom: var(--wp-space-2);
}

.wp-timeline__text {
    color: var(--wp-text-muted);
    font-size: var(--wp-text-sm);
    line-height: var(--wp-leading-relaxed);
    max-width: 60ch;
}

/* Variante horizontale, à partir du desktop. */
@media (min-width: 1024px) {
    .wp-timeline--horizontal {
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: var(--wp-space-5);
    }

    .wp-timeline--horizontal .wp-timeline__item {
        grid-template-columns: 1fr;
        gap: var(--wp-space-4);
        padding-bottom: 0;
    }

    .wp-timeline--horizontal .wp-timeline__item::before {
        left: 48px;
        right: calc(-1 * var(--wp-space-5));
        top: 23px;
        bottom: auto;
        width: auto;
        height: 1px;
    }

    .wp-timeline--horizontal .wp-timeline__content {
        padding-top: 0;
    }
}

/* ---------------------------------------------------------------------------
   9. Galerie et lightbox
   --------------------------------------------------------------------------- */

.wp-gallery {
    display: grid;
    gap: var(--wp-space-3);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.wp-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--wp-radius-md);
    background: var(--wp-surface-sunken);
    cursor: zoom-in;
}

.wp-gallery__item img {
    transition: transform var(--wp-duration-slow) var(--wp-ease-out);
}

.wp-gallery__item:hover img {
    transform: scale(1.06);
}

.wp-gallery__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--wp-space-5) var(--wp-space-4) var(--wp-space-3);
    background: linear-gradient(to top, rgba(4, 16, 28, 0.9), transparent);
    color: var(--wp-white);
    font-size: var(--wp-text-xs);
    line-height: var(--wp-leading-snug);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--wp-duration-base) var(--wp-ease), transform var(--wp-duration-base) var(--wp-ease);
}

.wp-gallery__item:hover .wp-gallery__caption,
.wp-gallery__item:focus-visible .wp-gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

/* Bandeau défilant « operations in motion ». */
.wp-marquee {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 420px);
    gap: var(--wp-space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--wp-space-4);
    scrollbar-width: thin;
}

.wp-marquee > * {
    scroll-snap-align: start;
}

.wp-marquee::-webkit-scrollbar {
    height: 4px;
}

.wp-marquee::-webkit-scrollbar-thumb {
    background: var(--wp-border-strong);
    border-radius: var(--wp-radius-full);
}

/* Lightbox : dialogue natif, fermeture clavier incluse. */
.wp-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--wp-z-modal);
    display: none;
    place-items: center;
    padding: var(--wp-space-5);
    background: rgba(4, 16, 28, 0.94);
    backdrop-filter: blur(4px);
}

.wp-lightbox[open],
.wp-lightbox.is-open {
    display: grid;
}

.wp-lightbox__figure {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    display: grid;
    gap: var(--wp-space-4);
}

.wp-lightbox__figure img {
    max-height: 76vh;
    width: auto;
    margin-inline: auto;
    object-fit: contain;
    border-radius: var(--wp-radius-md);
}

.wp-lightbox__caption {
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--wp-text-sm);
    text-align: center;
}

.wp-lightbox__close,
.wp-lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--wp-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color var(--wp-duration-fast) var(--wp-ease);
}

.wp-lightbox__close:hover,
.wp-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.wp-lightbox__close { top: var(--wp-space-5); right: var(--wp-space-5); }
.wp-lightbox__nav--prev { left: var(--wp-space-4); top: 50%; transform: translateY(-50%); }
.wp-lightbox__nav--next { right: var(--wp-space-4); top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------------------
   10. Filtres, onglets, pagination
   --------------------------------------------------------------------------- */

.wp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp-space-2);
}

.wp-filter {
    padding: 0.5rem 1.125rem;
    min-height: 40px;
    font-size: var(--wp-text-sm);
    font-weight: 600;
    color: var(--wp-text-muted);
    background: transparent;
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-full);
    cursor: pointer;
    transition: all var(--wp-duration-fast) var(--wp-ease);
}

.wp-filter:hover {
    border-color: var(--wp-border-strong);
    color: var(--wp-text);
}

.wp-filter[aria-pressed='true'],
.wp-filter.is-active {
    background: var(--wp-btn-primary-bg);
    border-color: var(--wp-btn-primary-bg);
    color: var(--wp-btn-primary-fg);
}

.wp-filter__count {
    margin-left: var(--wp-space-2);
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
    font-size: var(--wp-text-xs);
}

.wp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--wp-space-2);
    margin-top: var(--wp-space-8);
}

.wp-pagination__item {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding-inline: var(--wp-space-3);
    font-size: var(--wp-text-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--wp-text-muted);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-sm);
    transition: all var(--wp-duration-fast) var(--wp-ease);
}

.wp-pagination__item:hover {
    border-color: var(--wp-border-strong);
    color: var(--wp-text);
}

.wp-pagination__item[aria-current='page'] {
    background: var(--wp-btn-primary-bg);
    border-color: var(--wp-btn-primary-bg);
    color: var(--wp-btn-primary-fg);
}

/* ---------------------------------------------------------------------------
   11. Fil d'Ariane
   --------------------------------------------------------------------------- */

.wp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp-space-2);
    font-size: var(--wp-text-xs);
    color: var(--wp-text-muted);
}

.wp-breadcrumb a:hover {
    color: var(--wp-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wp-breadcrumb li + li::before {
    content: '/';
    margin-right: var(--wp-space-2);
    opacity: 0.45;
}

.wp-breadcrumb li {
    display: flex;
    align-items: center;
}

.wp-breadcrumb--on-dark {
    color: rgba(255, 255, 255, 0.66);
}

/* ---------------------------------------------------------------------------
   12. Tableaux
   --------------------------------------------------------------------------- */

.wp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-md);
}

.wp-table {
    min-width: 640px;
    font-size: var(--wp-text-sm);
}

.wp-table th,
.wp-table td {
    padding: var(--wp-space-3) var(--wp-space-4);
    text-align: left;
    border-bottom: 1px solid var(--wp-border);
}

.wp-table th {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp-text-muted);
    background: var(--wp-bg-alt);
    white-space: nowrap;
}

.wp-table tbody tr:last-child td {
    border-bottom: 0;
}

.wp-table tbody tr:hover {
    background: var(--wp-bg-alt);
}

/* ---------------------------------------------------------------------------
   13. Header et navigation
   --------------------------------------------------------------------------- */

.wp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--wp-z-header);
    height: var(--wp-header-height);
    display: flex;
    align-items: center;
    color: var(--wp-header-fg);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        height var(--wp-duration-base) var(--wp-ease),
        background-color var(--wp-duration-base) var(--wp-ease),
        border-color var(--wp-duration-base) var(--wp-ease),
        color var(--wp-duration-base) var(--wp-ease);
}

/* Au scroll : opaque, compact. La hauteur du contenu ne bouge pas
   (le header est en position fixed) : aucun saut de mise en page. */
.wp-header.is-scrolled {
    height: var(--wp-header-height-scrolled);
    background: var(--wp-header-bg);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--wp-header-border);
}

/* Pages sans hero plein écran : header opaque dès le chargement. */
.wp-header--solid {
    background: var(--wp-header-bg-solid);
    border-bottom-color: var(--wp-header-border);
}

/* En-tête posé sur un visuel sombre (bandeau pleine hauteur en thème clair) :
   le texte repasse en blanc tant que l'en-tête est transparent. Dès qu'il
   devient opaque au défilement, il reprend les rôles du thème. */
.wp-header--over-media:not(.is-scrolled):not(.wp-header--solid) {
    --wp-header-fg: var(--wp-white);

    color: var(--wp-white);
}

.wp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp-space-5);
    width: 100%;
}

.wp-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--wp-space-3);
    flex: none;
}

.wp-logo__mark {
    height: 34px;
    width: auto;
}

.wp-logo__text {
    font-family: var(--wp-font-display);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}

.wp-logo__sub {
    display: block;
    font-family: var(--wp-font-body);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-top: 3px;
}

.wp-nav {
    display: none;
}

@media (min-width: 1100px) {
    .wp-nav {
        display: flex;
        align-items: center;
        gap: clamp(var(--wp-space-4), 1.4vw, var(--wp-space-6));
    }
}

.wp-nav__link {
    position: relative;
    white-space: nowrap; /* « Relèves d'équipage » ne doit jamais se couper */
    font-size: var(--wp-text-sm);
    font-weight: 500;
    letter-spacing: 0.01em;
    padding-block: var(--wp-space-2);
    color: color-mix(in srgb, var(--wp-header-fg) 82%, transparent);
    transition: color var(--wp-duration-fast) var(--wp-ease);
}

.wp-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--wp-gold-500);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--wp-duration-base) var(--wp-ease);
}

.wp-nav__link:hover,
.wp-nav__link[aria-current='page'] {
    color: var(--wp-header-fg);
}

.wp-nav__link:hover::after,
.wp-nav__link[aria-current='page']::after {
    transform: scaleX(1);
    transform-origin: left;
}

.wp-header__actions {
    display: flex;
    align-items: center;
    gap: var(--wp-space-4);
    flex: none;
}

/* Sélecteur de langue. */
.wp-lang {
    display: flex;
    align-items: center;
    gap: var(--wp-space-1);
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wp-lang__item {
    padding: var(--wp-space-1) var(--wp-space-2);
    color: color-mix(in srgb, var(--wp-header-fg) 55%, transparent);
    border-radius: var(--wp-radius-xs);
    transition: color var(--wp-duration-fast) var(--wp-ease);
}

.wp-lang__item:hover {
    color: var(--wp-header-fg);
}

.wp-lang__item[aria-current='true'] {
    color: var(--wp-accent);
}

.wp-lang__sep {
    opacity: 0.3;
}

/* Bouton burger. */
.wp-burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: inherit;
    flex: none;
}

@media (min-width: 1100px) {
    .wp-burger { display: none; }
}

.wp-burger__bars,
.wp-burger__bars::before,
.wp-burger__bars::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--wp-duration-base) var(--wp-ease), opacity var(--wp-duration-fast) var(--wp-ease);
}

.wp-burger__bars::before,
.wp-burger__bars::after {
    content: '';
    position: absolute;
}

.wp-burger__bars::before { transform: translateY(-7px); }
.wp-burger__bars::after  { transform: translateY(7px); }

.wp-burger[aria-expanded='true'] .wp-burger__bars { background: transparent; }
.wp-burger[aria-expanded='true'] .wp-burger__bars::before { transform: rotate(45deg); }
.wp-burger[aria-expanded='true'] .wp-burger__bars::after  { transform: rotate(-45deg); }

/* Menu mobile plein écran. */
.wp-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--wp-z-drawer);
    display: flex;
    flex-direction: column;
    padding: calc(var(--wp-header-height) + var(--wp-space-6)) var(--wp-gutter) var(--wp-space-8);
    background: var(--wp-bg-inverse);
    color: var(--wp-white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity var(--wp-duration-base) var(--wp-ease),
        transform var(--wp-duration-base) var(--wp-ease),
        visibility var(--wp-duration-base);
}

.wp-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wp-drawer__nav {
    display: grid;
    gap: var(--wp-space-1);
}

.wp-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp-space-4);
    padding: var(--wp-space-4) 0;
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-xl);
    font-weight: 700;
    letter-spacing: var(--wp-tracking-tight);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color var(--wp-duration-fast) var(--wp-ease), padding-left var(--wp-duration-fast) var(--wp-ease);
}

.wp-drawer__link:hover,
.wp-drawer__link[aria-current='page'] {
    color: var(--wp-gold-500);
    padding-left: var(--wp-space-2);
}

.wp-drawer__footer {
    margin-top: auto;
    padding-top: var(--wp-space-7);
    display: grid;
    gap: var(--wp-space-4);
}

body.is-locked {
    overflow: hidden;
}

/* ---------------------------------------------------------------------------
   14. Hero
   --------------------------------------------------------------------------- */

.wp-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--wp-header-height);
    padding-bottom: clamp(var(--wp-space-8), 6vw, var(--wp-space-11));
    color: var(--wp-hero-fg);
    background: var(--wp-hero-bg);
    overflow: hidden;
    isolation: isolate;
}

.wp-hero--compact {
    min-height: min(72vh, 640px);
    align-items: center;
}

.wp-hero--page {
    min-height: min(58vh, 520px);
    align-items: flex-end;
}

.wp-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.wp-hero__media img,
.wp-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Voile : la lisibilité du texte ne doit dépendre d'aucune photo.
   Son sens s'inverse avec le thème — il éclaircit l'image en registre clair,
   il l'assombrit en registre sombre — mais sa fonction reste la même. */
.wp-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--wp-hero-veil);
}

/* Bandeau dont le visuel doit rester sombre quel que soit le thème : une photo
   de nuit, une opération au petit matin. Le texte y repasse en blanc. */
.wp-hero--media-dark {
    --wp-hero-fg: var(--wp-white);
    --wp-hero-muted: rgba(255, 255, 255, 0.78);
    --wp-hero-veil:
        linear-gradient(to top, rgba(4, 16, 28, 0.94) 0%, rgba(4, 16, 28, 0.55) 45%, rgba(4, 16, 28, 0.3) 100%),
        linear-gradient(to right, rgba(4, 16, 28, 0.8) 0%, transparent 65%);
}

/* Un bandeau photographique est un **registre sombre local**, quel que soit le
   thème de la page. On y redéfinit donc les rôles, et non les composants : un
   bouton ne doit jamais apprendre qu'il se trouve sur une photo.

   C'est ce qui corrige d'un coup le second appel à l'action, qui empruntait
   `--wp-btn-ghost-fg` — marine en thème clair, donc invisible sur une coque
   sombre — et du même geste tout composant futur posé là. */
.wp-hero--media-dark {
    --wp-btn-primary-bg: var(--wp-gold-500);
    --wp-btn-primary-fg: var(--wp-navy-950);
    --wp-btn-ghost-fg: var(--wp-white);
    --wp-text: var(--wp-white);
    --wp-text-muted: rgba(255, 255, 255, 0.78);
    --wp-border: rgba(255, 255, 255, 0.24);
    --wp-border-strong: rgba(255, 255, 255, 0.42);
}

.wp-hero__content {
    position: relative;
    display: grid;
    gap: var(--wp-space-5);
    max-width: 62ch;
}

.wp-hero__title {
    font-size: var(--wp-text-hero);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--wp-hero-fg);
}

.wp-hero__subtitle {
    font-size: var(--wp-text-lg);
    line-height: var(--wp-leading-relaxed);
    color: var(--wp-hero-muted);
    max-width: 56ch;
}

.wp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp-space-3);
    margin-top: var(--wp-space-2);
}

/* Bandeau d'indicateurs en pied de hero. */
.wp-hero__meta {
    position: relative;
    display: grid;
    gap: var(--wp-space-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    margin-top: clamp(var(--wp-space-7), 5vw, var(--wp-space-9));
    padding-top: var(--wp-space-5);
    border-top: 1px solid currentColor;
    border-top-color: color-mix(in srgb, var(--wp-hero-fg) 22%, transparent);
}

.wp-hero__meta-value {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-2xl);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.wp-hero__meta-label {
    margin-top: var(--wp-space-2);
    font-size: var(--wp-text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp-hero-muted);
}

/* Invitation au défilement. */
.wp-scroll-hint {
    position: absolute;
    right: var(--wp-gutter);
    bottom: clamp(var(--wp-space-8), 6vw, var(--wp-space-11));
    display: none;
    align-items: center;
    gap: var(--wp-space-3);
    font-size: var(--wp-text-xs);
    letter-spacing: var(--wp-tracking-caps);
    text-transform: uppercase;
    color: var(--wp-hero-muted);
    writing-mode: vertical-rl;
}

@media (min-width: 1100px) {
    .wp-scroll-hint { display: flex; }
}

.wp-scroll-hint::after {
    content: '';
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, currentColor, transparent);
    opacity: 0.6;
}

/* ---------------------------------------------------------------------------
   15. Contact permanent (LOT 17)
   --------------------------------------------------------------------------- */

/* Desktop : pastille WhatsApp discrète, jamais au centre de l'écran. */
.wp-whatsapp-float {
    position: fixed;
    right: var(--wp-space-5);
    bottom: var(--wp-space-5);
    z-index: var(--wp-z-floating);
    display: none;
    align-items: center;
    gap: var(--wp-space-3);
    padding: var(--wp-space-3);
    background: var(--wp-navy-900);
    color: var(--wp-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--wp-radius-full);
    box-shadow: var(--wp-shadow-lg);
    transition: padding var(--wp-duration-base) var(--wp-ease), background-color var(--wp-duration-base) var(--wp-ease);
}

@media (min-width: 768px) {
    .wp-whatsapp-float { display: inline-flex; }
}

.wp-whatsapp-float__label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: var(--wp-text-sm);
    font-weight: 600;
    opacity: 0;
    transition: max-width var(--wp-duration-base) var(--wp-ease), opacity var(--wp-duration-base) var(--wp-ease);
}

.wp-whatsapp-float:hover {
    padding-right: var(--wp-space-5);
    background: var(--wp-success);
}

.wp-whatsapp-float:hover .wp-whatsapp-float__label,
.wp-whatsapp-float:focus-visible .wp-whatsapp-float__label {
    max-width: 200px;
    opacity: 1;
}

.wp-whatsapp-float__icon {
    width: 24px;
    height: 24px;
    flex: none;
}

/* Mobile : barre d'action fixe Call / WhatsApp / Email / Quote. */
.wp-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--wp-z-floating);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: var(--wp-mobilebar-height);
    background: rgba(6, 20, 35, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
    .wp-mobilebar { display: none; }
}

.wp-mobilebar__item {
    display: grid;
    place-items: center;
    gap: 2px;
    padding: var(--wp-space-2);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--wp-duration-fast) var(--wp-ease);
}

.wp-mobilebar__item:active,
.wp-mobilebar__item:hover {
    color: var(--wp-gold-500);
}

.wp-mobilebar__item--accent {
    color: var(--wp-navy-900);
    background: var(--wp-gold-500);
}

.wp-mobilebar__icon {
    width: 20px;
    height: 20px;
}

/* ---------------------------------------------------------------------------
   16. Bandeau CTA
   --------------------------------------------------------------------------- */

/* Le bandeau d'appel à l'action est volontairement en contraste : c'est la
   seule grande surface marine d'une page claire, et c'est ce qui la fait
   remarquer. */
.wp-cta {
    --wp-text: var(--wp-white);
    --wp-text-muted: rgba(255, 255, 255, 0.72);
    --wp-border: rgba(255, 255, 255, 0.16);
    --wp-btn-primary-bg: var(--wp-gold-500);
    --wp-btn-primary-fg: var(--wp-navy-950);
    --wp-btn-ghost-fg: var(--wp-white);

    position: relative;
    overflow: hidden;
    background: var(--wp-navy-900);
    color: var(--wp-white);
    border-radius: var(--wp-radius-xl);
    padding: clamp(var(--wp-space-7), 5vw, var(--wp-space-10));
    isolation: isolate;
}

.wp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 100% at 100% 0%, rgba(45, 127, 184, 0.28), transparent 70%),
        radial-gradient(ellipse 50% 80% at 0% 100%, rgba(200, 162, 74, 0.16), transparent 70%);
}

.wp-cta__grid {
    display: grid;
    gap: var(--wp-space-6);
    align-items: center;
}

@media (min-width: 900px) {
    .wp-cta__grid {
        grid-template-columns: 1.6fr 1fr;
    }

    .wp-cta__actions {
        justify-self: end;
    }
}

.wp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp-space-3);
}

/* ---------------------------------------------------------------------------
   17. Footer
   --------------------------------------------------------------------------- */

/* Le pied de page reste marine dans les deux registres : c'est le socle de la
   page, et cette constante donne au site clair une assise qu'un gris n'aurait
   pas. Il redéfinit donc ses rôles localement, comme une section en contraste. */
.wp-footer {
    --wp-text: var(--wp-footer-fg);
    --wp-text-muted: var(--wp-footer-muted);
    --wp-border: var(--wp-footer-border);
    --wp-link: var(--wp-footer-fg);
    --wp-link-hover: var(--wp-gold-400);
    --wp-accent: var(--wp-gold-400);

    background: var(--wp-footer-bg);
    color: var(--wp-footer-muted);
    padding-top: var(--wp-section-y);
    font-size: var(--wp-text-sm);
}

.wp-footer__grid {
    display: grid;
    gap: var(--wp-space-7);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    padding-bottom: var(--wp-space-8);
}

.wp-footer__brand {
    display: grid;
    gap: var(--wp-space-4);
    align-content: start;
}

@media (min-width: 1024px) {
    .wp-footer__grid {
        grid-template-columns: 1.6fr repeat(3, 1fr);
    }
}

.wp-footer__title {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-xs);
    font-weight: 700;
    letter-spacing: var(--wp-tracking-caps);
    text-transform: uppercase;
    color: var(--wp-footer-fg);
    margin-bottom: var(--wp-space-4);
}

.wp-footer__list {
    display: grid;
    gap: var(--wp-space-3);
}

.wp-footer__list a {
    transition: color var(--wp-duration-fast) var(--wp-ease);
}

.wp-footer__list a:hover {
    color: var(--wp-gold-400);
}

.wp-footer__emergency {
    display: grid;
    gap: var(--wp-space-2);
    padding: var(--wp-space-4);
    border: 1px solid var(--wp-footer-border);
    border-radius: var(--wp-radius-md);
    background: rgba(255, 255, 255, 0.04);
}

.wp-footer__emergency-number {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-lg);
    font-weight: 700;
    color: var(--wp-footer-fg);
    font-variant-numeric: tabular-nums;
}

.wp-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp-space-4);
    padding-block: var(--wp-space-5);
    border-top: 1px solid var(--wp-footer-border);
    font-size: var(--wp-text-xs);
    color: var(--wp-footer-muted);
}

.wp-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp-space-4);
}

.wp-footer__legal a:hover {
    color: var(--wp-footer-fg);
}

.wp-social {
    display: flex;
    gap: var(--wp-space-2);
}

.wp-social__item {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.72);
    transition: all var(--wp-duration-fast) var(--wp-ease);
}

.wp-social__item:hover {
    background: var(--wp-white);
    border-color: var(--wp-white);
    color: var(--wp-text-strong);
}

/* ---------------------------------------------------------------------------
   18. Blocs éditoriaux divers
   --------------------------------------------------------------------------- */

/* Liste de capacités avec coche or. */
.wp-checklist {
    display: grid;
    gap: var(--wp-space-3);
}

.wp-checklist__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--wp-space-3);
    align-items: start;
    font-size: var(--wp-text-base);
    line-height: var(--wp-leading-normal);
}

.wp-checklist__item::before {
    content: '';
    width: 18px;
    height: 18px;
    margin-top: 4px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--wp-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23c8a24a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 6.2l2 2L9 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* Carte d'implantation. */
.wp-location {
    display: grid;
    gap: var(--wp-space-4);
    padding: var(--wp-space-5);
    background: var(--wp-surface);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-lg);
    transition: border-color var(--wp-duration-base) var(--wp-ease), box-shadow var(--wp-duration-base) var(--wp-ease);
}

.wp-location:hover {
    border-color: var(--wp-border-strong);
    box-shadow: var(--wp-shadow-md);
}

.wp-location__city {
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-xl);
    font-weight: 700;
}

.wp-location__country {
    font-size: var(--wp-text-xs);
    letter-spacing: var(--wp-tracking-caps);
    text-transform: uppercase;
    color: var(--wp-accent);
}

.wp-contact-list {
    display: grid;
    gap: var(--wp-space-3);
    font-size: var(--wp-text-sm);
}

.wp-contact-list__row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: var(--wp-space-3);
    align-items: center;
    color: var(--wp-text-muted);
}

.wp-contact-list__row a {
    color: var(--wp-text);
    transition: color var(--wp-duration-fast) var(--wp-ease);
}

.wp-contact-list__row a:hover {
    color: var(--wp-link-hover);
}

.wp-contact-list__icon {
    width: 18px;
    height: 18px;
    color: var(--wp-text-muted);
}

/* Carte d'article. */
.wp-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp-space-3);
    font-size: var(--wp-text-xs);
    color: var(--wp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Accordéon (FAQ, détails de service). */
.wp-accordion {
    border-top: 1px solid var(--wp-border);
}

.wp-accordion__item {
    border-bottom: 1px solid var(--wp-border);
}

.wp-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp-space-4);
    padding: var(--wp-space-5) 0;
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-lg);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.wp-accordion__summary::-webkit-details-marker {
    display: none;
}

.wp-accordion__summary::after {
    content: '';
    width: 14px;
    height: 14px;
    flex: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%2310171f' stroke-width='1.5' d='M7 1v12M1 7h12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    transition: transform var(--wp-duration-base) var(--wp-ease);
}

.wp-accordion__item[open] .wp-accordion__summary::after {
    transform: rotate(45deg);
}

.wp-accordion__content {
    padding-bottom: var(--wp-space-5);
    color: var(--wp-text-muted);
    max-width: 68ch;
}

/* Bloc « process » numéroté. */
.wp-steps {
    counter-reset: wp-step;
    display: grid;
    gap: var(--wp-space-5);
}

.wp-step {
    counter-increment: wp-step;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--wp-space-4);
    align-items: start;
}

.wp-step::before {
    content: counter(wp-step, decimal-leading-zero);
    font-family: var(--wp-font-display);
    font-size: var(--wp-text-sm);
    font-weight: 800;
    color: var(--wp-accent);
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

/* Vignette d'image avec légende éditoriale. */
.wp-figure {
    display: grid;
    gap: var(--wp-space-3);
}

.wp-figure__caption {
    font-size: var(--wp-text-xs);
    color: var(--wp-text-muted);
    line-height: var(--wp-leading-snug);
    padding-left: var(--wp-space-3);
    border-left: 2px solid var(--wp-accent);
}

/* ---------------------------------------------------------------------------
   20. Bascule clair / sombre (LOT 06 bis)

   Un seul bouton, deux icônes superposées : celle qui s'affiche annonce le
   registre vers lequel on va, pas celui où l'on est — c'est ce que fait le
   bouton qui intéresse l'utilisateur.
   --------------------------------------------------------------------------- */

.wp-theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    color: inherit;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--wp-radius-full);
    cursor: pointer;
    transition:
        background-color var(--wp-duration-fast) var(--wp-ease),
        border-color var(--wp-duration-fast) var(--wp-ease);
}

.wp-theme-toggle:hover {
    background: color-mix(in srgb, currentColor 10%, transparent);
    border-color: color-mix(in srgb, currentColor 22%, transparent);
}

.wp-theme-toggle__icon {
    grid-area: 1 / 1;
    width: 19px;
    height: 19px;
    transition:
        opacity var(--wp-duration-base) var(--wp-ease),
        transform var(--wp-duration-base) var(--wp-ease);
}

/* Registre clair : on propose le sombre, donc on montre la lune. */
.wp-theme-toggle__icon--sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.wp-theme-toggle__icon--moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

:root[data-theme='dark'] .wp-theme-toggle__icon--sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

:root[data-theme='dark'] .wp-theme-toggle__icon--moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

@media (prefers-reduced-motion: reduce) {
    .wp-theme-toggle__icon {
        transition: none;
        transform: none !important;
    }
}
