/* ============================================ */
/* PAGE JEU CONCOURS 5 ANS */
/* ============================================ */

.birthday-wrapper {
    display: flex;
    gap: 25px;
    align-items: center;   /* Centre verticalement l'image et le texte */
}

.birthday-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.birthday-image img {
    width: auto;
    max-height: 270px;
    height: auto;
    object-fit: contain;
}

.birthday-text {
    text-align: justify;
    flex: 1;
}

.birthday-cgv-text {
    color: #777;
    font-style: italic;
}

/* Responsive intro */
@media (max-width: 768px) {
    .birthday-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .birthday-image img {
        height: auto;
        width: 100%;
        max-width: 300px;
        max-height: none;
    }
}

/* ============================================ */
/* FORMULAIRE */
/* ============================================ */

.birthday-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    font-family: 'Highway Gothic Narrow', sans-serif;
    font-size: 18px;
}

.birthday-container .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.birthday-container label {
    margin-bottom: 5px;
    font-weight: bold;
}

.birthday-container input[type="text"],
.birthday-container input[type="email"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    font-family: inherit;
    font-size: inherit;
}

.birthday-container input[readonly] {
    background-color: #f7f7f7;
    color: #555;
}

.birthday-container input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

.birthday-container button {
    background: #007BFF;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    font-weight: bold;
}

.birthday-container button:hover {
    background: #0056b3;
}

.birthday-container button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.birthday-container button:disabled:hover {
    background: #aaa;
}

/* ============================================ */
/* MESSAGES */
/* ============================================ */

.birthday-success,
.birthday-errors,
.birthday-warning {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: 'Highway Gothic Narrow', sans-serif;
    font-size: 18px;
    line-height: 1.4;
}

.birthday-success {
    background: #d4edda;
    color: #155724;
    font-weight: bold;
}

.birthday-errors {
    background: #f8d7da;
    color: #721c24;
}

.birthday-errors p {
    margin: 0 0 6px 0;
}

.birthday-errors p:last-child {
    margin-bottom: 0;
}

.birthday-warning {
    background: #fff3cd;
    color: #856404;
    font-weight: bold;
}

/* ============================================ */
/* CGV */
/* ============================================ */

.birthday-container .cgv-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.birthday-container .cgv-group input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0;
}

.birthday-container .cgv-group label {
    display: inline;
    margin: 0;
    line-height: 1.4;
    font-family: inherit;
    font-size: inherit;
}

.birthday-container .cgv-group label a {
    white-space: nowrap;
}

/* Responsive formulaire */
@media(max-width: 500px) {
    .birthday-container {
        margin: 30px auto;
        padding: 15px;
        font-size: 16px;
    }

    .birthday-success,
    .birthday-errors,
    .birthday-warning {
        font-size: 16px;
    }
}

/* ============================================ */
/* ADMIN / STATS */
/* ============================================ */

.birthday-admin-container {
    width: 100%;
    margin: 30px auto;
    font-family: 'Highway Gothic Narrow', sans-serif;
}

.birthday-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.birthday-stat-card {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    padding: 18px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #007BFF;
}

/* ============================================ */
/* RECHERCHE ADMIN */
/* ============================================ */

.birthday-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-family: 'Highway Gothic Narrow', sans-serif;
    font-size: 16px;
}

.birthday-search-form label {
    font-weight: bold;
}

.birthday-search-form input[type="text"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 240px;
    font-family: inherit;
    font-size: inherit;
}

.birthday-search-form button,
.birthday-reset-search {
    background: #007BFF;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    display: inline-block;
}

.birthday-search-form button:hover,
.birthday-reset-search:hover {
    background: #0056b3;
    color: #fff;
}

/* ============================================ */
/* LISTING COUPONS */
/* ============================================ */

.birthday-listing-container {
    width: 100%;
    margin: 30px auto;
    overflow-x: auto;
}

.birthday-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Highway Gothic Narrow', sans-serif;
    font-size: 16px;
}

.birthday-table th,
.birthday-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    white-space: nowrap;
    text-align: center;
}

.birthday-table th {
    background-color: #f0f0f0;
}

.birthday-table td.status-active {
    color: #007bff;
    font-weight: bold;
}

.birthday-table td.status-used {
    color: #28a745;
    font-weight: bold;
}

.birthday-table td.status-associated {
    color: #fd7e14;
    font-weight: bold;
}

.birthday-table td[colspan] {
    font-style: italic;
    background: #fafafa;
}

/* Responsive listing */
@media(max-width: 600px) {
    .birthday-table th,
    .birthday-table td {
        font-size: 14px;
        padding: 6px 8px;
    }

    .birthday-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .birthday-search-form input[type="text"],
    .birthday-search-form button,
    .birthday-reset-search {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================ */
/* ENCART INFORMATIONS */
/* ============================================ */

.birthday-cgv-text-box{
    max-width:900px;
    margin:20px auto;
    padding:15px 20px;
    background:#f8f9fa;
    border-left:5px solid #224D90;
    border-radius:8px;
    font-family:'Highway Gothic Narrow',sans-serif;
    font-size:14px;
    color:#444;
    line-height:1.5;
}

.birthday-cgv-text-box i{
    color:#224D90;
    margin-right:6px;
}

@media(max-width:768px){

    .birthday-cgv-text-box{
        font-size:16px;
        margin:12px auto;
    }

}

.birthday-admin-container h2,
.birthday-listing-container h2 {
    font-family: 'Highway Gothic Narrow', sans-serif;
    font-size: 24px;
    font-weight: normal !important;
    line-height: 1.3;
}

/* ============================================ */
/* Responsive tableau */
/* ============================================ */

.birthday-table-wrapper{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    width:100%;
}

.birthday-table-scroll{
    margin:0 0 6px 0;
    text-align:center;
    color:#777;
    font-size:12px;
    font-family:'Highway Gothic Narrow',sans-serif;
}

/* Sur ordinateur on masque le message */

@media (min-width:768px){

    .birthday-table-scroll{
        display:none;
    }

}

.firework-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: firework-burst 900ms ease-out forwards;
}

@keyframes firework-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0.2);
        opacity: 0;
    }
}

.birthday-image img {
    animation: birthday-logo-pop 1.2s ease-out;
}

.birthday-image img.no-birthday-animation {
    animation: none !important;
}

@keyframes birthday-logo-pop {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }
    60% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes birthdayHighlight {

    0%   { box-shadow:0 0 0 rgba(0,0,0,0); }

    50%  { box-shadow:0 0 18px rgba(34,77,144,.35); }

    100% { box-shadow:0 0 0 rgba(0,0,0,0); }

}

.birthday-highlight{

    animation:birthdayHighlight .9s ease;

}

/* ============================================ */
/* PAGE TEASER 5 ANS */
/* ============================================ */

.birthday-announcement {
    max-width: 1000px;
    min-height: 75vh;
    margin: 10px auto 40px auto;
    padding: 40px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        radial-gradient(circle at center, rgba(34,77,144,.22) 0%, rgba(0,0,0,0) 45%),
        linear-gradient(145deg,#02060d 0%,#071527 60%,#000 100%);

    border-radius:20px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.25);

    color:#fff;

    overflow:hidden;
    position:relative;
}

.birthday-announcement-5 {
    font-size: clamp(120px, 24vw, 320px);
    line-height: 0.85;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 4px #f7c56a;
    text-shadow:
        0 0 12px rgba(247,197,106,.85),
        0 0 30px rgba(182,34,51,.35),
        0 0 55px rgba(34,77,144,.55);
    animation: birthdayPulse5 2.2s ease-in-out infinite;
}

.birthday-announcement h1 {
    margin: 20px 0 10px 0;
    font-size: clamp(34px, 6vw, 72px);
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(247,197,106,.45);
}

.birthday-announcement-subtitle {
    margin: 8px 0 35px 0;
    font-size: clamp(18px, 2.8vw, 32px);
    color: rgba(255,255,255,.82);
}

.birthday-countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(10px, 2vw, 28px);
    flex-wrap: nowrap;
}

.birthday-countdown-item {
    min-width: clamp(64px, 12vw, 140px);
}

.birthday-countdown-item span {
    display: block;
    font-size: clamp(34px, 8vw, 92px);
    line-height: 1;
    color: #f7c56a;
    text-shadow:
        0 0 10px rgba(247,197,106,.85),
        0 0 28px rgba(247,197,106,.35);
}

.birthday-countdown-item small {
    display: block;
    margin-top: 10px;
    font-size: clamp(11px, 1.7vw, 20px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
}

.birthday-countdown-separator {
    font-size: clamp(34px, 8vw, 90px);
    line-height: 1;
    color: rgba(247,197,106,.85);
    text-shadow: 0 0 12px rgba(247,197,106,.45);
}

@keyframes birthdayPulse5 {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.045);
        filter: brightness(1.25);
    }
}

@media(max-width: 650px) {
    .birthday-countdown {
        display: grid;
        grid-template-columns: repeat(2, minmax(110px, 1fr));
        gap: 22px 16px;
        width: 100%;
        max-width: 360px;
    }

    .birthday-countdown-separator {
        display: none;
    }

    .birthday-countdown-item {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .birthday-announcement-5 {
        animation: none;
    }
}

@media(max-width: 650px) {
    .birthday-announcement {
        margin: 5px auto 25px auto;
        padding: 30px 20px;
    }

    .birthday-countdown {
        display: grid;
        grid-template-columns: repeat(2, minmax(110px, 1fr));
        gap: 22px 16px;
        width: 100%;
        max-width: 360px;
    }

    .birthday-countdown-separator {
        display: none;
    }

    .birthday-countdown-item {
        min-width: 0;
    }
}
/* ============================================ */
/* ACCÈS ADMIN */
/* ============================================ */

.birthday-admin-access {

    align-self: flex-end;
    margin-top: 35px;

    padding: 8px 14px;

    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;

    color: #ffffff;
    text-decoration: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: normal;

    transition: all .25s ease;
}

.birthday-admin-access:hover {

    background: #224D90;
    border-color: #224D90;
    color: #ffffff;
    text-decoration: none;
}

.birthday-admin-access i {
    margin-right: 6px;
}

@media (max-width: 650px) {

    .birthday-admin-access {

        align-self: center;
        margin-top: 25px;

        padding: 7px 12px;

        font-size: 13px;
    }

}

/* ============================================ */
/* BANNIÈRE ACCUEIL 5 ANS */
/* ============================================ */

.birthday-home-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;

    max-width: 760px;
    margin: 18px auto 22px auto;
    padding: 12px 22px;

    background: linear-gradient(145deg,#02060d,#071527);
    border-radius: 14px;

    text-decoration: none;
    color: #fff;

    transition: .25s;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.birthday-home-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
    color: #fff;
    text-decoration: none;
}

.birthday-home-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.birthday-home-5 {
    font-family: 'Highway Gothic Narrow', Arial, sans-serif;
    font-size: 72px;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 3px #f7c56a;
    text-shadow:
        0 0 8px rgba(247,197,106,.8),
        0 0 18px rgba(34,77,144,.6);
    animation: birthdayPulse5 2.2s infinite;
}

.birthday-home-title {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
    color: #fff;
}

.birthday-home-subtitle {
    font-size: 17px;
    line-height: 1.2;
    color: #d5d5d5;
}

.birthday-home-countdown {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.birthday-home-countdown div {
    width: 46px;
    text-align: center;
}

.birthday-home-countdown span {
    display: block;
    width: 46px;
    font-size: 34px;
    line-height: 1;
    color: #f7c56a;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.birthday-home-countdown small {
    font-size: 12px;
    color: #ddd;
    text-transform: uppercase;
}

.birthday-home-sep {
    width: auto !important;
    font-size: 30px;
    color: #f7c56a;
}

.birthday-home-mobile {
    display: none;
}

.birthday-home-title-mobile {
    display: none;
}

@media(max-width:900px) {

    .birthday-home-desktop {
        display: none;
    }

    .birthday-home-mobile {
        display: block;
    }

    .birthday-home-title-desktop {
        display: none;
    }

    .birthday-home-title-mobile {
        display: block;
        font-size: 20px;
        margin-bottom: 4px;
    }

}

@media(max-width:900px) {

    .birthday-home-banner {
        max-width: calc(92% - 20px);
        margin: 14px auto 18px auto;
        padding: 12px 14px;
        gap: 10px;
    }

    .birthday-home-left {
        gap: 10px;
    }

    .birthday-home-5 {
        font-size: 54px;
    }

    .birthday-home-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .birthday-home-subtitle {
        font-size: 14px;
    }

    .birthday-home-countdown div,
    .birthday-home-countdown span {
        width: 36px;
    }

    .birthday-home-countdown span {
        font-size: 26px;
    }

    .birthday-home-countdown small {
        font-size: 11px;
    }
}

/* ============================================ */
/* ACTUALITÉ 5 ANS */
/* ============================================ */

.birthday-news-banner {
    background: #071527;
    color: #ffffff;
    border-left: 8px solid #224D90;
    padding: 18px 22px;
    border-radius: 10px;
}

.birthday-news-banner a {
    color: #f7c56a;
    display: inline !important;
}

.birthday-news-link {
    color: inherit !important;
    text-decoration: none !important;
}

.birthday-news-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.birthday-news-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.birthday-news-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.birthday-news-5 {
    font-size: 90px;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 3px #f7c56a;
    text-shadow:
        0 0 8px rgba(247,197,106,.8),
        0 0 20px rgba(34,77,144,.5);
    animation: birthdayPulse5 2.2s infinite;
}

.birthday-news-title {
    font-size: 32px;
    color: #ffffff;
}

.birthday-news-subtitle {
    font-size: 18px;
    color: #d8d8d8;
}

@media(max-width:900px) {
    .birthday-news-row {
        flex-direction: column;
        text-align: center;
    }

    .birthday-news-left {
        flex-direction: column;
        gap: 10px;
    }

    .birthday-news-5 {
        font-size: 60px;
    }

    .birthday-news-title {
        font-size: 24px;
    }

    .birthday-news-subtitle {
        font-size: 16px;
    }
}