/* =========================================================
   RÉSULTATS PUBLICS — TABLEAU DESKTOP
========================================================= */

.public-results-table {
    width: 100%;
    overflow-x: auto;

    border: 1px solid rgba(31, 59, 87, .14);
    border-radius: 18px;

    background: rgba(255, 255, 255, .97);

    box-shadow:
        0 10px 26px rgba(15, 23, 42, .10);
}

.public-results-table table {
    width: 100%;
    margin: 0;

    border-collapse: collapse;
}

.public-results-table th {
    padding: .72rem .65rem;

    background:
        linear-gradient(
            135deg,
            #1f3b57 0%,
            #263952 76%,
            #711818 100%
        );

    color: #fff;

    font-size: .72rem;
    font-weight: 900;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: .045em;

    white-space: nowrap;
}

.public-results-table th:nth-child(2),
.public-results-table th:nth-child(3) {
    text-align: left;
}

.public-results-table td {
    padding: .72rem .65rem;

    border-bottom: 1px solid #e5ebf1;

    color: #334155;

    text-align: center;
    vertical-align: middle;
}

.public-results-table td:nth-child(2),
.public-results-table td:nth-child(3) {
    text-align: left;
}

.public-results-table tbody tr:last-child td {
    border-bottom: none;
}

.public-results-table tbody tr {
    transition:
        background .16s ease,
        box-shadow .16s ease;
}

.public-results-table tbody tr:hover {
    background: #f7fafc;

    box-shadow:
        inset 4px 0 0 #1f3b57;
}

.result-rank-column {
    width: 64px;
}

.result-series-column {
    min-width: 52px;
}

.result-total-column {
    min-width: 82px;
}

.result-status-column {
    min-width: 76px;
}

.result-rank-cell {
    text-align: center;
}

.result-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #e8eef5;
    color: #1f3b57;

    font-weight: 900;
}

tr.is-rank-1 .result-rank-badge {
    background: #f5d978;
    color: #705100;
}

tr.is-rank-2 .result-rank-badge {
    background: #d9e0e7;
    color: #4b5563;
}

tr.is-rank-3 .result-rank-badge {
    background: #d6a375;
    color: #68401f;
}

.result-shooter-name {
    display: block;

    color: #1f2933;
    line-height: 1.3;
}

.result-club-name {
    color: #64748b;

    font-size: .88rem;
}

.result-series-cell {
    color: #475569;

    font-size: .88rem;
    font-weight: 700;
}

.result-total-cell strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 62px;
    padding: .38rem .6rem;

    border-radius: 999px;

    background: #1f3b57;
    color: #fff;

    font-size: 1rem;
    font-weight: 900;
}


/* =========================================================
   STATUTS
========================================================= */

.result-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .28rem .52rem;

    border-radius: 999px;

    background: #e8eef5;
    color: #475569;

    font-size: .7rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.result-status-badge.is-ok {
    background: #e8f7ee;
    color: #187545;
}

.result-status-badge.is-dns,
.result-status-badge.is-dnf,
.result-status-badge.is-abandon {
    background: #fff0f0;
    color: #a52a2a;
}


/* =========================================================
   CARTES RESPONSIVES
========================================================= */

.public-results-cards {
    display: none;
}

.public-result-card {
    position: relative;
    overflow: hidden;

    display: grid;
    gap: .7rem;

    padding: .85rem;

    border: 1px solid rgba(31, 59, 87, .15);
    border-radius: 18px;

    background: rgba(255, 255, 255, .97);
    color: #1f2933;

    box-shadow:
        0 8px 22px rgba(15, 23, 42, .10);
}

.public-result-card::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background: #1f3b57;
}

.public-result-card.is-rank-1::before {
    background: #d6a900;
}

.public-result-card.is-rank-2::before {
    background: #8b98a7;
}

.public-result-card.is-rank-3::before {
    background: #a86532;
}

.public-result-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
}

.public-result-rank {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #1f3b57;
    color: #fff;

    font-size: .92rem;
    font-weight: 900;
}

.public-result-card.is-rank-1 .public-result-rank {
    background: #f5d978;
    color: #705100;
}

.public-result-card.is-rank-2 .public-result-rank {
    background: #d9e0e7;
    color: #4b5563;
}

.public-result-card.is-rank-3 .public-result-rank {
    background: #d6a375;
    color: #68401f;
}

.public-result-rank i {
    margin: 0;

    font-size: 1.05rem;
}

.public-result-main {
    min-width: 0;
}

.public-result-main strong {
    display: block;

    overflow: hidden;

    color: #1f2933;

    font-size: .98rem;
    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-result-main span {
    display: flex;
    align-items: center;
    gap: .3rem;

    margin-top: .16rem;

    overflow: hidden;

    color: #64748b;

    font-size: .78rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-result-main span i {
    margin: 0;

    font-size: .7rem;
}

.public-result-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    min-width: 66px;
}

.public-result-score small {
    margin-bottom: .08rem;

    color: #94a3b8;

    font-size: .62rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.public-result-score strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 64px;
    padding: .38rem .55rem;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #1f3b57,
            #711818
        );

    color: #fff;

    font-size: 1.12rem;
    font-weight: 900;
}

/* =========================================================
   SECTIONS DISCIPLINES / CATÉGORIES — RÉSULTATS
========================================================= */

.public-results-section {
    margin: 1.15rem 0;
    padding: 1.1rem;

    border: 1px solid rgba(31, 59, 87, .14);
    border-radius: 22px;

    background: rgba(255, 255, 255, .96);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, .10);
}

.public-results-section > h2 {
    display: flex;
    align-items: center;
    gap: .55rem;

    margin: 0 0 .85rem;
    padding: .8rem 1rem;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #1f3b57 0%,
            #263952 72%,
            #711818 100%
        );

    color: #fff;

    font-size: 1.15rem;
    line-height: 1.3;
}

.public-results-section > h2::before {
    content: none;

    font-family: "bootstrap-icons";
    font-size: 1rem;
}

.public-results-section > h3 {
    margin: 1rem 0 .6rem;
    padding: .48rem .7rem;

    border-left: 4px solid #711818;

    background: #f4f7fa;
    color: #1f3b57;

    font-size: .92rem;
    font-weight: 900;
}

.public-results-empty-section {
    color: #64748b;
}

.public-results-empty-section p {
    margin: 0;
}

.public-results-section > h2 {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.public-results-section > h2 i {
    margin: 0;
    font-size: 1rem;
}

/* Smartphone */

@media (max-width: 900px) {
    .public-results-section {
        margin: .85rem 0;
        padding: .65rem;

        border: none;
        border-radius: 18px;

        background: transparent;

        box-shadow: none;
    }

    .public-results-section > h2 {
        margin-bottom: .65rem;
        padding: .7rem .8rem;

        border-radius: 14px;

        font-size: 1rem;
    }

    .public-results-section > h3 {
        margin: .75rem 0 .45rem;
        padding: .42rem .6rem;

        border-radius: 0 10px 10px 0;

        font-size: .82rem;
    }
}


/* =========================================================
   SÉRIES — UNE LIGNE COMPACTE
========================================================= */

.public-series-row {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(44px, 1fr));

    gap: .28rem;

    width: 100%;
}

.public-series-item {
    min-width: 0;
    padding: .32rem .25rem;

    border: 1px solid #e1e8ee;
    border-radius: 9px;

    background: #f4f7fa;

    text-align: center;
}

.public-series-item small {
    display: block;

    overflow: hidden;

    color: #7b8794;

    font-size: .6rem;
    font-weight: 900;

    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;

    text-transform: uppercase;
}

.public-series-item strong {
    display: block;

    margin-top: .12rem;

    color: #1f2933;

    font-size: .82rem;
    line-height: 1.1;
}


/* =========================================================
   PIED DE CARTE
========================================================= */

.public-result-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;

    min-height: 24px;
}

.public-result-card-footer:empty {
    display: none;
}

.public-result-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    color: #9b1c1c;

    font-size: .68rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.public-result-live-badge > span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d82a2a;

    box-shadow:
        0 0 0 0 rgba(216, 42, 42, .45);

    animation: result-live-pulse 1.7s infinite;
}

@keyframes result-live-pulse {
    70% {
        box-shadow:
            0 0 0 7px rgba(216, 42, 42, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(216, 42, 42, 0);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .public-results-table {
        display: none;
    }

    .public-results-cards {
        display: grid;
        grid-template-columns:
            repeat(auto-fit, minmax(280px, 1fr));

        gap: .7rem;
    }
}

@media (max-width: 600px) {
    .public-results-cards {
        grid-template-columns: 1fr;
    }

    .public-result-card {
        padding: .78rem;
        border-radius: 16px;
    }

    .public-result-card-head {
        gap: .55rem;
    }

    .public-result-rank {
        width: 34px;
        height: 34px;
    }

    .public-series-row {
        grid-template-columns:
            repeat(auto-fit, minmax(38px, 1fr));

        gap: .22rem;
    }

    .public-series-item {
        padding: .28rem .18rem;
    }

    .public-series-item strong {
        font-size: .75rem;
    }
}

@media (max-width: 380px) {
    .public-result-main strong {
        font-size: .9rem;
    }

    .public-result-score strong {
        min-width: 58px;
        padding: .34rem .42rem;

        font-size: 1rem;
    }

    .public-series-row {
        grid-template-columns:
            repeat(auto-fit, minmax(34px, 1fr));
    }

    .public-series-item small {
        font-size: .54rem;
    }

    .public-series-item strong {
        font-size: .7rem;
    }
}

/* =========================
PUBLIC_HERO
========================= */

.public-hero {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 1.75rem;
    padding: 2.2rem;

    border-radius: 26px;

    background:
        radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, #1f3b57, #711818);

    color: #fff;

    box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.public-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;

    width: 260px;
    height: 260px;

    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.public-hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.public-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;

    margin-bottom: .75rem;
    padding: .35rem .7rem;

    border-radius: 999px;
    background: rgba(255,255,255,.16);

    font-size: .9rem;
    font-weight: 800;
}

.public-hero h1 {
    margin: 0;
    max-width: 760px;

    color: #fff;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.05;
}

.public-hero p {
    margin: .8rem 0 0;

    color: rgba(255,255,255,.88);
    font-size: 1.05rem;
}

.public-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;

    margin-top: 1.1rem;
}

.public-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .45rem .7rem;

    border-radius: 999px;
    background: rgba(255,255,255,.12);

    color: rgba(255,255,255,.92);
    font-weight: 700;
    font-size: .92rem;
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;

    margin-top: 1.25rem;
}

.public-hero-actions .btn {
    background: rgba(255,255,255,.95);
    color: #1f2933;
}

.public-hero-actions .btn:hover {
    background: #fff;
    color: #711818;
}

.public-hero-logo {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;

    opacity: .9;
}

.public-hero-logo img {
    display: block;
    width: auto;
    height: 92px;
    object-fit: contain;
}

@media (max-width: 768px) {
    

    .public-hero {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 1rem;

        padding: 1.25rem;
        border-radius: 22px;
    }

    .public-hero-logo {
        display: flex;
        justify-content: flex-start;
    }

    .public-hero-logo img {
        height: 65px;
    }

    .public-hero h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .public-hero p {
        font-size: .98rem;
    }

    .public-hero-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .public-hero-meta span {
        width: 100%;
        justify-content: flex-start;
        border-radius: 14px;
    }

    .public-hero-timeline {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
        width: 100%;
    }

    .public-hero-step {
        border-radius: 16px;
        padding: .65rem;
    }

    .public-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: .6rem;
        width: 100%;
    }

    .public-hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .public-hero-timeline {
        grid-template-columns: 1fr;
    }
}

.public-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .7rem;

    margin-top: 1.25rem;
    max-width: 760px;
}

.public-hero-stat {
    display: flex;
    align-items: center;
    gap: .6rem;

    padding: .7rem .8rem;

    border-radius: 16px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
}

.public-hero-stat i {
    font-size: 1.25rem;
}

.public-hero-stat strong {
    font-size: 1.15rem;
    line-height: 1;
}

.public-hero-stat span {
    color: rgba(255,255,255,.82);
    font-size: .85rem;
    font-weight: 700;
}

/* =========================================================
   PUBLIC HOME HERO
========================================================= */

.hero1 {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 2rem;

    margin-bottom: 2rem;
    padding: 2.4rem;

    border-radius: 28px;

    background:
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(135deg, #1f3b57 0%, #711818 100%);

    color: #fff;

    box-shadow: 0 20px 50px rgba(0,0,0,.28);
}

.hero1::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;

    width: 310px;
    height: 310px;

    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.hero1-content {
    position: relative;
    z-index: 1;
}

.hero1-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;

    margin-bottom: .85rem;
    padding: .38rem .75rem;

    border-radius: 999px;
    background: rgba(255,255,255,.16);

    font-size: .9rem;
    font-weight: 800;
}

.hero1 h1 {
    margin: 0;

    max-width: 780px;

    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
}

.hero1 p {
    margin: 1rem 0 0;

    max-width: 650px;

    color: rgba(255,255,255,.9);
    font-size: 1.12rem;
}

.hero1-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;

    margin-top: 1.5rem;
}

.hero1-actions .btn {
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
}

.hero1-actions .btn:hover {
    background: #fff;
    color: #711818;
}

.hero1-visual {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: center;
}

.hero1-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 220px;
    height: 220px;

    border-radius: 32px;

    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.hero1-logo-card img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 150px;
    object-fit: contain;
}

.hero1-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;

    margin-top: 1.5rem;
}

.hero1-stat {
    display: inline-flex;
    align-items: center;
    gap: .55rem;

    padding: .6rem .8rem;
}

.hero1-stat i {
    margin: 0;
}

p.hero1-comment{
    font-size:0.75rem;
    padding: 5px;
}

.h1-smartphone{display: none;}

@media (max-width: 768px) {
    .hero1 {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        border-radius: 24px;
    }

    .hero1-visual {
         order: -1;
        justify-content: flex-start;
        border: none;
    }

    .hero1-actions {
        flex-direction: column;
    }

    .hero1-actions .btn {
        width: 100%;
    }

    .hero1-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .hero1-stat {
        border-radius: 18px;
    }

    .hero1-logo-card {
    
        width: 100%;
        height: auto;

        background: none;
        border-style: none;
        box-shadow: none;
    }

    .h1-smartphone{display: block;}
    .h1-PC{display: none;}

    
}



/* =========================================================
   PUBLIC CONCOURS CARD
   DESKTOP : FLIP 3D
   MOBILE  : CARTE UNIQUE
========================================================= */


/* =========================================================
   WRAPPER / FLIP
========================================================= */

.concours-card-wrapper {
    perspective: 1800px;
    perspective-origin: center;
    min-height: 380px;
}

.concours-card-flip {
    position: relative;

    min-height: 380px;
    height: 100%;

    transform-style: preserve-3d;

    transition:
        transform .75s cubic-bezier(.2, .75, .2, 1);

    border-radius: 24px;
}

.concours-card-wrapper:hover .concours-card-flip {
    transform: rotateY(180deg);
}


/* =========================================================
   FACES COMMUNES
========================================================= */

.concours-card-face {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    padding: 1.25rem;

    overflow: hidden;

    border-radius: 24px;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    box-shadow:
        0 14px 36px rgba(0,0,0,.18);
}


/* =========================================================
   FRONT
   Gradient bleu → rouge
========================================================= */

.concours-card-front {
    color: #fff;

    background-image:
        radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 34%),
        linear-gradient(135deg, #071a2e 0%, #263952 60%, #711818 100%);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.concours-card-front > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   BACK
   Gradient inversé rouge → bleu
========================================================= */

.concours-card-back {
    transform: rotateY(180deg);

    color: #fff;

    background-image:
        radial-gradient(
            circle at 85% 85%,
            rgba(255,255,255,.16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #711818,
            #1f3b57
        );

}


/* =========================================================
   GRADIENT CONTINU ENTRE LES CARTES
========================================================= */

.concours-card-front,
.concours-card-back {
    background-size: 320% 100%;
}

.grid .concours-card-wrapper:nth-child(3n+1) .concours-card-front,
.grid .concours-card-wrapper:nth-child(3n+1) .concours-card-back {
    background-position: 0% 50%;
}

.grid .concours-card-wrapper:nth-child(3n+2) .concours-card-front,
.grid .concours-card-wrapper:nth-child(3n+2) .concours-card-back {
    background-position: 50% 50%;
}

.grid .concours-card-wrapper:nth-child(3n+3) .concours-card-front,
.grid .concours-card-wrapper:nth-child(3n+3) .concours-card-back {
    background-position: 100% 50%;
}


/* =========================================================
   FRONT — TOP
========================================================= */

.concours-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: .75rem;

    margin-bottom: 1rem;
}


/* =========================================================
   KICKER
========================================================= */

.concours-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    color: rgba(255,255,255,.72);

    font-size: .78rem;
    font-weight: 900;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.concours-card-kicker i {
    margin: 0;

    color: rgba(255,255,255,.88);
}


/* =========================================================
   TITRE
========================================================= */

.concours-card-front h2 {
    margin: 0;

    color: #fff;

    font-size: 1.45rem;
    line-height: 1.12;
    letter-spacing: -0.02em;

    text-shadow:
        0 2px 8px rgba(0,0,0,.16);
}



/* =========================================================
   META
========================================================= */

.concours-card-meta {
    display: grid;

    gap: .55rem;

    margin-top: 1rem;
}

.concours-card-meta span {
    display: flex;
    align-items: flex-start;

    gap: .45rem;

    color: rgba(255,255,255,.88);

    font-weight: 700;
    line-height: 1.35;
}

.concours-card-meta strong {
    color: #fff;
}

.concours-card-meta i {
    flex: 0 0 auto;

    margin-top: .15rem;

    color: rgba(255,255,255,.90);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.concours-card-description {
    margin: 1rem 0 0;
    padding: .85rem;

    
    color: rgba(255,255,255,.92);
    line-height: 1.5;
    background: rgba(255,255,255,.11);
    

    border:
        1px solid rgba(255,255,255,.12);

    /*border-radius: 16px;*/

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   INDICATION FLIP
========================================================= */

.concours-card-hint {
    display: inline-flex;
    align-items: center;

    gap: .4rem;

    margin-top: auto;
    padding-top: 1rem;

    color: rgba(255,255,255,.68);

    font-size: .85rem;
    font-weight: 800;
}

.concours-card-hint i {
    margin: 0;

    color: rgba(255,255,255,.78);
}


/* =========================================================
   BADGE FRONT
========================================================= */

.concours-card-front .status-badge {
    color: #fff;

   
    background: rgba(255,255,255,.18);
    border:
        1px solid rgba(255,255,255,.18);

    box-shadow:
        0 6px 18px rgba(0,0,0,.10);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   BACK — CONTENU
========================================================= */

.concours-card-back-inner {
    display: flex;
    flex-direction: column;

    height: 100%;
}

.concours-card-back h3 {
    display: flex;
    align-items: center;

    gap: .45rem;

    margin: 0 0 1rem;

    color: #fff;

    font-size: 1.25rem;
}

.concours-card-back h3 i {
    margin: 0;
}


/* =========================================================
   ACTIONS
========================================================= */

.concours-card-actions {
    display: grid;

    gap: .75rem;

    margin-top: auto;
}

.concours-card-actions .btn {
    width: 100%;

    justify-content: flex-start;

    background:
        rgba(255,255,255,.95);

    color: #1f2933;

    border-color:
        rgba(255,255,255,.55);

    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease;
}

.concours-card-actions .btn:hover {
    transform: translateX(3px);

    background: #fff;

    color: #711818;
}


/* Variantes actions */

.concours-card-actions .btn-primary {
    background: #fff;
    color: #1f3b57;
}

.concours-card-actions .btn-info {
    background: #ebf8ff;
    color: #1f3b57;
}

.concours-card-actions .btn-success {
    background: #f0fff4;
    color: #166534;
}

/* Mise en valeur nextConcours */


.concours-card-featured-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .85rem;
    padding: .42rem .75rem;
    color: #fff;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.concours-card-featured-label i {
    margin: 0;
}

.concours-card-wrapper.is-live .concours-card-featured-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,.65);
    animation: concours-live-pulse 1.8s infinite;
}

@keyframes concours-live-pulse {
    70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (min-width: 769px) {
    .grid .concours-card-wrapper.is-featured {
        grid-column: span 2;
    }

    .concours-card-wrapper.is-featured .concours-card-face {
        border: 2px solid rgba(255,255,255,.45);
        box-shadow:
            0 0 0 4px rgba(255,255,255,.10),
            0 22px 52px rgba(0,0,0,.34);
    }

    .concours-card-wrapper.is-featured .concours-card-front,
    .concours-card-wrapper.is-featured .concours-card-back {
        background-image:
            radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 34%),
            linear-gradient(135deg, #1f3b57 0%, #263952 55%, #711818 100%);
    }
}

@media (max-width: 768px) {
    .concours-card-wrapper.is-featured {
        position: relative;
        z-index: 2;
    }

    .concours-card-wrapper.is-featured::before {
        content: "";
        position: absolute;
        inset: -4px;
        z-index: -1;

        border-radius: 28px;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,.75),
                rgba(49,95,89,.70),
                rgba(113,24,24,.72)
            );

        opacity: .85;
        filter: blur(2px);
    }
}


/* =========================================================
   MOBILE
   PAS DE FLIP
   WRAPPER = UNE SEULE CARTE
========================================================= */

@media (max-width: 768px) {

    .concours-card-wrapper {
        perspective: none;

        min-height: auto;

        overflow: hidden;

        border-radius: 24px;

        /*
         * Même gradient que le BACK desktop
         * Le wrapper porte tout le fond.
         */
        background:
            radial-gradient(
                circle at 85% 85%,
                rgba(255,255,255,.16),
                transparent 34%
            ),
            linear-gradient(
                135deg,
                #1f3b57,
                #711818
            );

        box-shadow:
            0 16px 38px rgba(0,0,0,.24);
    }


    /* Désactivation du flip */

    .concours-card-flip {
        display: flex;
        flex-direction: column;

        min-height: auto;
        height: auto;

        transform: none !important;

        border-radius: inherit;
    }

    .concours-card-wrapper:hover .concours-card-flip {
        transform: none;
    }


    /* Les faces deviennent de simples sections */

    .concours-card-face {
        position: relative;
        inset: auto;

        min-height: auto;

        padding: 1.15rem;

        overflow: visible;

        border: none;
        border-radius: 0;

        box-shadow: none;

        backface-visibility: visible;
        -webkit-backface-visibility: visible;
    }


    /*
     * IMPORTANT :
     * Front transparent.
     * Le gradient vient du wrapper.
     */

    .concours-card-front {
        background: transparent;

        color: #fff;

        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }


    /*
     * Back transparent aussi.
     * Même carte visuelle.
     */

    .concours-card-back {
        transform: none;

        background: transparent;

        color: #fff;


    }

    h3.actions{
        display: none;
    }


    /* Top */

    .concours-card-top {
        flex-direction: column;
        align-items: flex-start;

        gap: .65rem;
    }


    /* Textes */

    .concours-card-kicker {
        color: rgba(255,255,255,.72);
    }

    .concours-card-kicker i {
        color: rgba(255,255,255,.88);
    }

    .concours-card-front h2 {
        color: #fff;

        font-size: 1.3rem;
    }

    .concours-card-meta span {
        color: rgba(255,255,255,.88);
    }

    .concours-card-meta i {
        color: rgba(255,255,255,.90);
    }


    /* Description */

    .concours-card-description {
        color: rgba(255,255,255,.86);

        background:
            rgba(255,255,255,.08);

        border:
            1px solid rgba(255,255,255,.11);
    }


    /* Pas d'indication flip */

    .concours-card-hint {
        display: none;
    }


    /* Back / Actions */

    .concours-card-back h3 {
        margin-bottom: .75rem;

        color: #fff;
    }

    .concours-card-actions {
        margin-top: 0;
    }


    /* Boutons légèrement translucides sur mobile */

    .concours-card-actions .btn {
        background:
            rgba(255,255,255,.92);

        border:
            1px solid rgba(255,255,255,.20);
    }
}

/* =========================================================
   PUBLIC TOOL CARDS
========================================================= */

.public-tool-section {
    margin: 1.25rem 0;
}

.public-tool-card {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 1.15rem;

    padding: 1.25rem 1.4rem;

    color: #fff;
    text-decoration: none;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            rgba(31,59,87,.94) 0%,
            rgba(38,57,82,.92) 68%,
            rgba(113,24,24,.82) 100%
        );


    border-radius: 22px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.18);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.public-tool-card:hover {
    transform: translateY(-3px);

    color: #fff;

    border-color:
        rgba(255,255,255,.26);

    box-shadow:
        0 18px 38px rgba(0,0,0,.24);
}


/* =========================================================
   ICÔNE
========================================================= */

.public-tool-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 18px;

    background:
        rgba(255,255,255,.12);

    border:
        1px solid rgba(255,255,255,.16);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform .2s ease,
        background .2s ease;
}

.public-tool-icon i {
    margin: 0;

    color: #fff;

    font-size: 1.65rem;
}

.public-tool-card:hover .public-tool-icon {
    transform: scale(1.06);

    background:
        rgba(255,255,255,.18);
}


/* =========================================================
   CONTENU
========================================================= */

.public-tool-content {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.public-tool-eyebrow {
    margin-bottom: .2rem;

    color:
        rgba(255,255,255,.58);

    font-size: .72rem;
    font-weight: 900;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-tool-content strong {
    color: #fff;

    font-size: 1.15rem;
    line-height: 1.2;
}

.public-tool-content small {
    margin-top: .3rem;

    color:
        rgba(255,255,255,.72);

    font-size: .9rem;
    line-height: 1.4;
}


/* =========================================================
   FLÈCHE
========================================================= */

.public-tool-arrow {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #fff;

    background:
        rgba(255,255,255,.10);

    border:
        1px solid rgba(255,255,255,.14);

    transition:
        transform .2s ease,
        background .2s ease;
}

.public-tool-arrow i {
    margin: 0;
}

.public-tool-card:hover .public-tool-arrow {
    transform: translateX(4px);

    background:
        rgba(255,255,255,.18);
}


/* =========================================================
   VARIANTES SUBTILES
========================================================= */

.public-tool-results .public-tool-card {
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #1f3b57 0%,
            #263952 72%,
            #6b541d 100%
        );
}

.public-tool-photos .public-tool-card {
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #1f3b57 0%,
            #263952 68%,
            #711818 100%
        );
}

.public-tool-timer .public-tool-card {
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #1f3b57 0%,
            #263952 74%,
            #315f59 100%
        );
}

.public-tool-timer{
    display: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .public-tool-section {
        margin: 1rem 0;
    }

    .public-tool-card {
        grid-template-columns: auto 1fr auto;

        gap: .85rem;

        padding: 1rem;

        border-radius: 20px;
    }

    .public-tool-icon {
        width: 48px;
        height: 48px;

        border-radius: 15px;
    }

    .public-tool-icon i {
        font-size: 1.35rem;
    }

    .public-tool-content strong {
        font-size: 1rem;
    }

    .public-tool-content small {
        font-size: .82rem;
    }

    .public-tool-arrow {
        width: 36px;
        height: 36px;
    }

     .public-tool-timer {
        display: block;
    }
}

/* =========================================================
   PUBLIC INSCRIPTION — SHOW
========================================================= */

.public-registration {
    margin: 1.5rem 0 2rem;
    padding: 1.35rem;

    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 32%),
        linear-gradient(135deg, rgba(31,59,87,.94), rgba(38,57,82,.92) 65%, rgba(113,24,24,.78));

    box-shadow: 0 18px 44px rgba(0,0,0,.24);
    color: #fff;
}

.public-registration-header {
    margin-bottom: 1.25rem;
}

.public-registration-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    margin-bottom: .5rem;
    color: rgba(255,255,255,.72);

    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.public-registration-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.public-registration-header p {
    max-width: 780px;
    margin: .65rem 0 0;
    color: rgba(255,255,255,.82);
}

.public-registration-message {
    display: flex;
    gap: .85rem;
    align-items: flex-start;

    padding: 1rem;
    border-radius: 18px;

    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
}

.public-registration-message i {
    margin-top: .2rem;
    font-size: 1.35rem;
}

.public-registration-message p {
    margin: 0;
    color: rgba(255,255,255,.88);
}

/* Formulaire */

.public-registration-form {
    display: grid;
    gap: 1rem;
}

.registration-section {
    overflow: hidden;

    background:
        rgba(255,255,255,.96);

    color: #1f2933;

    border:
        1px solid rgba(31,59,87,.18);

    box-shadow:
        0 10px 28px rgba(0,0,0,.14),
        0 0 0 1px rgba(255,255,255,.35);
}

.registration-section-heading {
    position: relative;

    display: flex;
    align-items: center;
    gap: .85rem;

    padding: 1rem 1.1rem;

    background:
        linear-gradient(
            135deg,
            #1f3b57 0%,
            #263952 72%,
            #711818 100%
        );

    color: #fff;

    border-bottom:
        1px solid rgba(15,23,42,.18);
}

.registration-section-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
}

.registration-section-icon i {
    margin: 0;
    font-size: 1.25rem;
}

.registration-section-heading span {
    display: block;
    margin-bottom: .15rem;

    color: rgba(255,255,255,.68);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.registration-section-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.registration-section-body {
    padding: 1.15rem;
}

/* Champs */

.public-registration label {
    color: #1f2933;
}


.public-registration small {
    color: #64748b;
}

.public-registration .form-row {
    gap: 1rem;
    margin-bottom: 1rem;
}

.public-registration .form-row:last-child {
    margin-bottom: 0;
}

.registration-help {
    margin-top: 0;
    color: #64748b;
    font-weight: 700;
}

.public-registration input,
.public-registration select,
.public-registration textarea {
    width: 100%;

    border:
        1px solid rgba(31,59,87,.22);

    border-radius: 12px;

    background:
        rgba(248,250,252,.96);

}

.public-registration input:hover,
.public-registration select:hover,
.public-registration textarea:hover {
    border-color:
        rgba(31,59,87,.38);

    background: #fff;
}

.public-registration input:focus,
.public-registration select:focus,
.public-registration textarea:focus {
    outline: none;

    background: #fff;

    border-color: #1f3b57;

    box-shadow:
        0 0 0 3px rgba(31,59,87,.12);
}

/* Disciplines */

.public-registration .stand-title {
    margin: 1.1rem 0 .65rem;
    padding: .75rem 1rem;

    border-radius: 16px;
    background: #1f3b57;
    color: #fff;

    font-size: 1.05rem;
}

.public-registration .discipline-toggle {
    border-radius: 14px;
    background: #eef3f7;
    color: #1f3b57;
}

.public-registration .discipline-toggle:hover {
    background: #e2edf5;
}

.public-registration .serie-choice {
    border-radius: 16px;
    background: #fff;
    border: 1px solid #d8e0e8;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.public-registration .serie-choice:hover {
    border-color: #1f3b57;
    background: #f8fbfd;
}

.public-registration .serie-choice.disabled {
    opacity: .58;
}

.public-registration .series-subchoices {
    margin-top: .85rem;
}

/* Repas / autorisations */

.repas-row select {
    max-width: 110px;
}

.public-registration .consentements,
.public-registration .representant-block {
    background: #f8fafc;
    border: 1px solid #d8e0e8;
    border-radius: 18px;
}

.public-registration .checkbox-line {
    color: #475569;
}

.public-registration .important {
    color: #711818;
}

/* Barre validation */

.registration-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;

    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;

    margin-top: .5rem;
    padding: 1rem;

    border-radius: 20px;
    background: rgba(15,23,42,.86);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
}

.registration-submit-bar .btn {
    min-width: 220px;
}

/* =========================================================
   BARRE D'ACTIONS STICKY — PLEINE LARGEUR
========================================================= */

.registration-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;

    /*
     * Déborde du padding de .public-registration
     * pour reprendre toute la largeur du conteneur
     */
    margin:
        .75rem -1.35rem -1.35rem;

    padding:
        1rem 1.35rem;

    background:
        linear-gradient(
            90deg,
            rgba(20,39,58,.97) 0%,
            rgba(31,59,87,.97) 65%,
            rgba(75,27,35,.97) 100%
        );

    border: none;
    border-top:
        1px solid rgba(255,255,255,.18);

    border-radius: 0;

    box-shadow:
        0 -10px 28px rgba(0,0,0,.18);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.registration-submit-bar .btn {
    min-width: 220px;
}

/* Mobile */

@media (max-width: 768px) {
    .public-registration {
        padding: 1rem;
        border-radius: 22px;
    }

    .registration-section-heading {
        padding: .9rem;
    }

    .registration-section-body {
        padding: .9rem;
    }

    .registration-section-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .registration-submit-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
    }

    .registration-submit-bar .btn {
        width: 100%;
        min-width: 0;
    }

    .repas-row {
        grid-template-columns: 1fr;
    }

    .repas-row select {
        max-width: 100%;
    }

    .registration-submit-bar {
        flex-direction: column;
        align-items: stretch;

        margin:
            .75rem -1rem -1rem;

        padding:
            .85rem 1rem;

        border-radius: 0;
    }

    .registration-submit-bar .btn {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   INSCRIPTION — CONFIRMATION / GESTION
========================================================= */

.public-registration-summary {
    margin: 1.5rem 0 2rem;
    display: grid;
    gap: 1rem;
}

.registration-success-card,
.registration-detail-section,
.registration-notice {
    overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(31,59,87,.18);
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.registration-success-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.registration-success-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background: linear-gradient(135deg, #1f3b57, #711818);
    color: #fff;
}

.registration-success-icon i {
    margin: 0;
    font-size: 1.7rem;
}

.registration-success-eyebrow {
    color: #64748b;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.registration-success-content h2 {
    margin: .25rem 0 .65rem;
    color: #1f3b57;
}

.registration-success-content p {
    margin: .45rem 0;
    color: #475569;
}

.registration-notice {
    display: flex;
    gap: .85rem;
    padding: 1rem;
    background: #fff7e6;
    color: #7c4a03;
}

.registration-notice i {
    margin-top: .2rem;
    font-size: 1.35rem;
}

.registration-notice p {
    margin: .25rem 0 0;
}

.registration-detail-heading {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding: 1rem 1.1rem;

    background: linear-gradient(135deg, #1f3b57 0%, #263952 70%, #711818 100%);
    color: #fff;
}

.registration-detail-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
}

.registration-detail-icon i {
    margin: 0;
    font-size: 1.25rem;
}

.registration-detail-heading span {
    display: block;
    margin-bottom: .15rem;

    color: rgba(255,255,255,.68);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.registration-detail-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.registration-detail-body {
    padding: 1.1rem;
}

.registration-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
}

.registration-info-item {
    padding: .85rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #d8e0e8;
}

.registration-info-item span {
    display: block;
    margin-bottom: .25rem;
    color: #64748b;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.registration-info-item strong {
    color: #1f2933;
}

/* Tables */

.registration-responsive-table {
    width: 100%;
    overflow-x: auto;
}

.registration-table {
    width: 100%;
    border-collapse: collapse;
}

.registration-table th {
    background: #eef3f7;
    color: #1f3b57;
    font-weight: 900;
}

.registration-table th,
.registration-table td {
    padding: .75rem;
    border-bottom: 1px solid #d8e0e8;
    text-align: left;
}

.registration-table tr:hover {
    background: #f8fbfd;
}

.registration-table form {
    margin: 0;
}

.btn-small {
    padding: .45rem .7rem;
    font-size: .9rem;
}

/* Actions gestion */

.registration-inline-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.registration-management-action {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .85rem;

    padding: 1rem;
    margin: 5px  0;

    border-radius: 18px;
    border: 1px solid #d8e0e8;

    background: #f8fafc;
    color: #1f2933;

    text-decoration: none;
    cursor: pointer;

    text-align: left;

    font: inherit;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

/* Le texte occupe tout l'espace restant */
.registration-management-action > span {
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* Même comportement pour les vrais boutons */
button.registration-management-action {
    justify-content: flex-start;
    text-align: left;
}

/* Les formulaires prennent exactement la largeur du lien */
.registration-management-actions form {
    width: 100%;
    margin: 0;
}

.registration-management-action > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    border-radius: 14px;

    background:
        linear-gradient(135deg, #1f3b57, #711818);

    color: #fff;
}

.registration-management-actions form {
    margin: 0;
}

.registration-management-action {
    width: 100%;

    display: flex;
    align-items: center;
    gap: .85rem;

    padding: 1rem;

    border-radius: 18px;
    border: 1px solid #d8e0e8;

    background: #f8fafc;
    color: #1f2933;

    text-decoration: none;
    cursor: pointer;
    text-align: left;

    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.registration-management-action:hover {
    transform: translateY(-2px);
    border-color: #1f3b57;
    background: #fff;
}

.registration-management-action i {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    border-radius: 14px;

    background: linear-gradient(135deg, #1f3b57, #711818);
    color: #fff;
}

.registration-management-action strong {
    display: block;
    color: #1f2933;
}

.registration-management-action small {
    display: block;
    margin-top: .2rem;
    color: #64748b;
}

.registration-management-action.is-danger {
    border-color: rgba(197,48,48,.28);
    background: #fff5f5;
}

.registration-management-action.is-danger i {
    background: linear-gradient(135deg, #711818, #c53030);
}

/* Mobile : tables en cartes */

@media (max-width: 768px) {
    .registration-success-card {
        flex-direction: column;
    }

    .registration-detail-body {
        padding: .9rem;
    }

    .registration-table,
    .registration-table thead,
    .registration-table tbody,
    .registration-table tr,
    .registration-table td {
        display: block;
        width: 100%;
    }

    .registration-table thead {
        display: none;
    }

    .registration-table tr {
        padding: .85rem;
        margin-bottom: .75rem;

        border: 1px solid #d8e0e8;
        border-radius: 18px;
        background: #f8fafc;
    }

    .registration-table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;

        padding: .45rem 0;
        border-bottom: 1px solid #e5ebf1;
    }

    .registration-table td:last-child {
        border-bottom: none;
    }

    .registration-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-weight: 900;
        text-transform: uppercase;
        font-size: .72rem;
        letter-spacing: .05em;
    }

    .registration-table td form,
    .registration-table td .btn {
        width: 100%;
    }

    .registration-inline-actions {
        justify-content: stretch;
    }

    .registration-inline-actions .btn {
        width: 100%;
    }
}

/* =========================================================
   random PHOTOS - HOME 
========================================================= */

.home-random-photo {
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(0,0,0,.18);
}

.home-random-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {

    .home-random-photo {display: none;}
}

/* =========================================================
   LISTE PUBLIQUE DES RÉSULTATS
========================================================= */

.public-results-list {
    margin: 1.5rem 0 2rem;
}

.public-results-list-hero .public-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 130px;
    height: 130px;

    border-radius: 30px;

    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
}

.public-results-hero-icon {
    margin: 0;

    color: rgba(255,255,255,.92);

    font-size: 4rem;
}



.public-results-list-table {
    overflow: hidden;

    border: 1px solid rgba(31,59,87,.16);
    border-radius: 22px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 14px 34px rgba(15,23,42,.12);
}

.public-results-list-table table {
    width: 100%;
    margin: 0;

    border-collapse: collapse;
}

.public-results-list-table th {
    padding: .9rem 1rem;

    background:
        linear-gradient(
            135deg,
            #1f3b57 0%,
            #263952 75%,
            #711818 100%
        );

    color: #fff;

    font-size: .78rem;
    font-weight: 900;

    text-align: left;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.public-results-list-table td {
    padding: 1rem;

    border-bottom: 1px solid #e3e9ef;

    color: #334155;

    vertical-align: middle;
}

.public-results-list-table tbody tr:last-child td {
    border-bottom: none;
}

.public-results-list-row {
    cursor: pointer;

    transition:
        background .18s ease,
        box-shadow .18s ease;
}

.public-results-list-row:hover,
.public-results-list-row:focus-visible {
    outline: none;

    background: #f5f8fb;

    box-shadow:
        inset 4px 0 0 #711818;
}

.public-results-list-title {
    display: flex;
    align-items: center;
    gap: .75rem;

    min-width: 220px;
}

.public-results-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #1f3b57,
            #711818
        );

    color: #fff;
}

.public-results-list-icon i {
    margin: 0;
}

.public-results-list-title strong {
    color: #1f2933;

    font-size: .98rem;
    line-height: 1.35;
}

.public-results-list-meta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    color: #64748b;

    line-height: 1.4;
}

.public-results-list-meta i {
    flex: 0 0 auto;

    margin: 0;

    color: #1f3b57;
}

.public-results-list-action {
    text-align: right;
}

.public-results-list-action .btn {
    white-space: nowrap;
}



.public-results-list-cards {
    display: none;
}

.public-results-list-card {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;

    padding: 1rem;

    border-radius: 20px;

    color: #fff;
    text-decoration: none;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.13),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #1f3b57 0%,
            #263952 68%,
            #711818 100%
        );

    box-shadow:
        0 12px 30px rgba(15,23,42,.20);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.public-results-list-card:hover {
    transform: translateY(-2px);

    color: #fff;

    box-shadow:
        0 17px 38px rgba(15,23,42,.25);
}

.public-results-list-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border-radius: 16px;

    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
}

.public-results-list-card-icon i {
    margin: 0;

    font-size: 1.35rem;
}

.public-results-list-card-content {
    min-width: 0;
}

.public-results-list-card-eyebrow {
    display: block;

    margin-bottom: .22rem;

    color: rgba(255,255,255,.62);

    font-size: .68rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.public-results-list-card h2 {
    margin: 0;

    color: #fff;

    font-size: 1.05rem;
    line-height: 1.25;
}

.public-results-list-card-meta {
    display: grid;
    gap: .3rem;

    margin-top: .55rem;
}

.public-results-list-card-meta span {
    display: flex;
    align-items: flex-start;
    gap: .4rem;

    color: rgba(255,255,255,.78);

    font-size: .84rem;
    line-height: 1.35;
}

.public-results-list-card-meta i {
    flex: 0 0 auto;

    margin-top: .1rem;
}

.public-results-list-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
}

.public-results-list-card-arrow i {
    margin: 0;
}


.public-results-empty {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1.25rem;

    border: 1px solid #d8e0e8;
    border-radius: 20px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 12px 30px rgba(15,23,42,.10);
}

.public-results-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 56px;

    width: 56px;
    height: 56px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #1f3b57,
            #711818
        );

    color: #fff;
}

.public-results-empty-icon i {
    margin: 0;

    font-size: 1.5rem;
}

.public-results-empty h2 {
    margin: 0;

    color: #1f2933;

    font-size: 1.15rem;
}

.public-results-empty p {
    margin: .3rem 0 0;

    color: #64748b;
}


/* Texte uniquement destiné aux lecteurs d’écran */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}


@media (max-width: 768px) {
    .public-results-list-hero .public-hero-logo {
        width: auto;
        height: auto;

        justify-content: flex-start;

        background: transparent;
        border: none;
    }

    .public-results-hero-icon {
        font-size: 2.7rem;
    }

    .public-results-list-table {
        display: none;
    }

    .public-results-list-cards {
        display: grid;
        gap: .8rem;
    }

    .public-results-empty {
        align-items: flex-start;
    }
}

@media (max-width: 460px) {
    .public-results-list-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .public-results-list-card-arrow {
        display: none;
    }

    .public-results-empty {
        flex-direction: column;
    }
}

/* =========================================================
   PHOTOS — HERO
========================================================= */

.public-photos-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 130px;
    height: 130px;

    border-radius: 30px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
}

.public-photos-hero-visual i {
    margin: 0;
    color: #fff;
    font-size: 4rem;
}


/* =========================================================
   LISTE DES ALBUMS
========================================================= */

.public-photos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.15rem;

    margin: 1.5rem 0 2rem;
}

.public-photo-album-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border-radius: 24px;
    border: 1px solid rgba(31,59,87,.15);

    background: rgba(255,255,255,.97);

    box-shadow:
        0 14px 34px rgba(15,23,42,.14);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.public-photo-album-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 20px 44px rgba(15,23,42,.20);
}

.public-photo-album-cover {
    position: relative;
    overflow: hidden;

    display: block;
    aspect-ratio: 16 / 10;

    background:
        linear-gradient(135deg, #1f3b57, #711818);
}

.public-photo-album-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.public-photo-album-card:hover .public-photo-album-cover img {
    transform: scale(1.045);
}

.public-photo-album-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(8,15,25,.58),
            transparent 65%
        );
}

.public-photo-album-count {
    position: absolute;
    right: .8rem;
    bottom: .8rem;

    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .4rem .65rem;

    border-radius: 999px;

    background: rgba(8,15,25,.72);
    color: #fff;

    font-size: .82rem;
    font-weight: 900;

    backdrop-filter: blur(8px);
}

.public-photo-album-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: rgba(255,255,255,.85);
}

.public-photo-album-placeholder i {
    font-size: 4rem;
}

.public-photo-album-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 1rem;
}

.public-photo-album-eyebrow {
    color: #64748b;

    font-size: .7rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.public-photo-album-content h2 {
    margin: .3rem 0 .65rem;

    color: #1f2933;

    font-size: 1.15rem;
    line-height: 1.3;
}

.public-photo-album-content p {
    display: flex;
    align-items: center;
    gap: .4rem;

    margin: 0 0 1rem;

    color: #64748b;
}

.public-photo-album-content .btn {
    margin-top: auto;
}


/* =========================================================
   PHOTO VEDETTE
========================================================= */

.public-featured-photo {
    overflow: hidden;

    margin: 1.4rem 0;

    border-radius: 24px;
    border: 1px solid rgba(31,59,87,.15);

    background: #fff;

    box-shadow:
        0 16px 40px rgba(15,23,42,.16);
}

.public-featured-photo-button {
    position: relative;
    overflow: hidden;

    display: block;

    width: 100%;
    padding: 0;

    border: 0;
    background: #0f172a;

    cursor: zoom-in;
}

.public-featured-photo-button img {
    display: block;

    width: 100%;
    max-height: 620px;

    object-fit: cover;

    transition: transform .35s ease;
}

.public-featured-photo-button:hover img {
    transform: scale(1.025);
}

.public-photo-zoom,
.public-gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(8,15,25,.18);
    color: #fff;

    opacity: 0;

    transition:
        opacity .2s ease,
        background .2s ease;
}

.public-photo-zoom i,
.public-gallery-overlay i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: rgba(8,15,25,.68);

    font-size: 1.25rem;
}

.public-featured-photo-button:hover .public-photo-zoom,
.public-gallery-item:hover .public-gallery-overlay {
    opacity: 1;
    background: rgba(8,15,25,.32);
}

.public-featured-photo-caption {
    padding: 1rem 1.15rem;
}

.public-featured-photo-caption h2 {
    margin: 0;
    color: #1f2933;
}

.public-featured-photo-caption p {
    margin: .45rem 0 0;
    color: #64748b;
}


/* =========================================================
   GRILLE DE PHOTOS
========================================================= */

.public-gallery-section {
    margin: 1.5rem 0 2rem;
}

.public-gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: .85rem;
}

.public-gallery-heading span {
    color: #64748b;

    font-size: .72rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.public-gallery-heading h2 {
    margin: .2rem 0 0;
    color: #1f2933;
}

.public-gallery-heading > strong {
    padding: .38rem .65rem;

    border-radius: 999px;

    background: #e8eef5;
    color: #1f3b57;

    font-size: .8rem;
}

.public-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .75rem;
}

.public-gallery-item {
    position: relative;
    overflow: hidden;

    display: block;

    width: 100%;
    padding: 0;

    aspect-ratio: 4 / 3;

    border: 0;
    border-radius: 17px;

    background: #e8eef5;

    cursor: zoom-in;

    box-shadow:
        0 8px 22px rgba(15,23,42,.13);
}

.public-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .28s ease;
}

.public-gallery-item:hover img {
    transform: scale(1.06);
}


/* =========================================================
   ÉTAT VIDE
========================================================= */

.public-photos-empty {
    display: flex;
    align-items: center;
    gap: 1rem;

    margin: 1.4rem 0;
    padding: 1.15rem;

    border: 1px solid #d8e0e8;
    border-radius: 20px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 12px 28px rgba(15,23,42,.10);
}

.public-photos-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    border-radius: 17px;

    background:
        linear-gradient(135deg, #1f3b57, #711818);

    color: #fff;
}

.public-photos-empty-icon i {
    margin: 0;
    font-size: 1.45rem;
}

.public-photos-empty h2 {
    margin: 0;
    color: #1f2933;
}

.public-photos-empty p {
    margin: .3rem 0 0;
    color: #64748b;
}


/* =========================================================
   LIGHTBOX — TOUJOURS CENTRÉE DANS LE VIEWPORT
========================================================= */

html.lightbox-open,
body.lightbox-open {
    overflow: hidden;
}

.public-lightbox[hidden] {
    display: none !important;
}

.public-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100dvh;

    padding: 1rem;
}

.public-lightbox-backdrop {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background: rgba(8,15,25,.96);

    cursor: zoom-out;
}

.public-lightbox-dialog {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    width: min(1100px, 94vw);
    max-height: calc(100dvh - 2rem);

    overflow: hidden;

    border-radius: 20px;

    background: #0f172a;

    box-shadow:
        0 28px 80px rgba(0,0,0,.65);
}

.public-lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 0;

    background: #080f19;
}

.public-lightbox-image {
    display: block;

    max-width: 100%;
    max-height: calc(100dvh - 150px);

    width: auto;
    height: auto;

    object-fit: contain;
}

.public-lightbox-caption {
    padding: .85rem 1rem;

    background: rgba(15,23,42,.98);
    color: #fff;
}

.public-lightbox-caption h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
}

.public-lightbox-caption p {
    margin: .3rem 0 0;

    color: rgba(255,255,255,.72);

    font-size: .88rem;
}

.public-lightbox-close {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;

    background: rgba(8,15,25,.72);
    color: #fff;

    cursor: pointer;

    backdrop-filter: blur(8px);
}

.public-lightbox-close i {
    margin: 0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .public-photos-hero-visual {
        width: auto;
        height: auto;

        justify-content: flex-start;

        border: 0;
        background: transparent;
    }

    .public-photos-hero-visual i {
        font-size: 2.7rem;
    }

    .public-photos-list {
        grid-template-columns: 1fr;
    }

    .public-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    .public-gallery-item {
        aspect-ratio: 1 / 1;
        border-radius: 13px;
    }

    .public-featured-photo {
        border-radius: 18px;
    }

    .public-lightbox {
        padding: .5rem;
    }

    .public-lightbox-dialog {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);

        border-radius: 15px;
    }

    .public-lightbox-image {
        max-height: calc(100dvh - 125px);
    }

    .public-lightbox-caption {
        padding: .7rem .8rem;
    }

    .public-lightbox-close {
        top: .45rem;
        right: .45rem;

        width: 38px;
        height: 38px;
    }
}

@media (max-width: 420px) {
    .public-photo-album-cover {
        aspect-ratio: 16 / 9;
    }

    .public-gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .4rem;
    }

    .public-photos-empty {
        align-items: flex-start;
    }
}



