/* =========================
   RESET + VARIABLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bleu-fonce: #1A2947;
    --bleu: #01A7E0;
    --turquoise: #2bbcd3;
    --blanc: #ffffff;
    --gris: #f4f4f4;
}
html,
body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background: white;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-top: 95px;
}

img {
    max-width: 100%;
    height: auto;
}

.contact-float {
    position: fixed;
    right: 25px;
    bottom: 105px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #10284a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    z-index: 99998;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    transition: .3s ease;
}

.contact-float:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--bleu);
}

.contact-float span {
    position: absolute;
    right: 78px;
    background: white;
    color: var(--bleu-fonce);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.contact-float:hover span {
    opacity: 1;
    visibility: visible;
}


/* =========================
   BUTTONS
========================= */
.btn {
    background: var(--bleu-fonce);
    color: white;
    padding: 14px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: 0.2s;
}

.btn:hover {
    background: var(--turquoise);
    transform: scale(1.05);
}

.admin-edit-button {
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: right;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 18px;
    background: #eef5fb;
    border-radius: 12px;
}

.admin-row strong {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.admin-row span {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.save-container{
    margin:50px 0;
    display:flex;
    justify-content:center;
}

.btn-save-all{
    background:#1ca7e0;
    color:#fff;
    border:none;
    border-radius:12px;
    padding:18px 60px;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
    box-shadow:0 10px 25px rgba(28,167,224,.35);
}

.btn-save-all:hover{
    background:#158fc1;
    transform:translateY(-2px);
}

.admin-floating-menu{
    position:fixed;
    top:115px;
    right:25px;

    z-index:99999;

    background:white;

    border-radius:16px;

    padding:18px;

    width:220px;

    box-shadow:0 15px 35px rgba(0,0,0,.18);

    display:flex;
    flex-direction:column;
    gap:12px;
}

.admin-role{

    font-size:14px;
    color:var(--bleu-fonce);
    font-weight:700;
    text-align:center;

    padding-bottom:12px;
    border-bottom:1px solid #e6edf5;
}

.admin-mini-btn{

    text-decoration:none;

    background:var(--bleu);

    color:white;

    padding:12px;

    border-radius:10px;

    text-align:center;

    font-weight:700;

    transition:.2s;
}

.admin-mini-btn:hover{

    background:var(--bleu-fonce);

    transform:translateY(-2px);

}

.admin-mini-btn.logout{

    background:#d62828;

}

.admin-mini-btn.logout:hover{

    background:#b71c1c;

}

/* =========================================
   ADMIN FAQ
========================================= */

.admin-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 25px 80px;
}


/* =========================================
   EN-TÊTE DE PAGE
========================================= */

.admin-page-header {
    margin-bottom: 35px;
}

.admin-page-subtitle {
    display: block;
    margin-bottom: 8px;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;

    opacity: 0.6;
}

.admin-page-header h1 {
    margin: 0 0 10px;

    font-size: 2.2rem;
}

.admin-page-header p {
    margin: 0;

    opacity: 0.7;
}


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

.faq-add-card,
.faq-admin-card,
.faq-empty-state {
    margin-bottom: 30px;
    padding: 30px;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08);
}


/* =========================================
   HEADER DES CARTES
========================================= */

.admin-card-header {
    margin-bottom: 25px;
    padding-bottom: 20px;

    border-bottom: 1px solid #e5e5e5;
}

.admin-card-header h2 {
    margin: 0 0 6px;

    font-size: 1.4rem;
}

.admin-card-header p {
    margin: 0;

    font-size: 0.95rem;

    opacity: 0.65;
}


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

.faq-admin-form {
    width: 100%;
}

.faq-form-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(120px, 1fr);

    gap: 20px;
}


.faq-admin-form .form-group {
    margin-bottom: 20px;
}

.faq-admin-form label {
    display: block;

    margin-bottom: 8px;

    font-size: 0.9rem;
    font-weight: 600;
}


.faq-admin-form input[type="text"],
.faq-admin-form input[type="number"],
.faq-admin-form select,
.faq-admin-form textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d8d8d8;
    border-radius: 6px;

    font-size: 0.95rem;

    background: #ffffff;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.faq-admin-form textarea {
    min-height: 130px;

    resize: vertical;
}


.faq-admin-form input:focus,
.faq-admin-form select:focus,
.faq-admin-form textarea:focus {
    outline: none;

    border-color: #222;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.08);
}


/* =========================================
   CHECKBOX
========================================= */

.checkbox-group {
    margin-top: 5px;
}

.checkbox-group label {
    display: flex;

    align-items: center;

    gap: 10px;

    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;

    cursor: pointer;
}


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

.faq-form-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 10px;
}


/* =========================================
   HEADER LISTE QUESTIONS
========================================= */

.faq-list-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin:
        50px 0
        20px;
}

.faq-list-header h2 {
    margin: 0 0 5px;

    font-size: 1.6rem;
}

.faq-list-header p {
    margin: 0;

    opacity: 0.65;
}


/* =========================================
   COMPTEUR DE QUESTIONS
========================================= */

.faq-count {
    padding:
        8px 14px;

    border-radius: 50px;

    font-size: 0.85rem;
    font-weight: 600;

    background: #eeeeee;

    white-space: nowrap;
}


/* =========================================
   LISTE DES FAQ
========================================= */

.faq-admin-list {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


/* =========================================
   HEADER QUESTION
========================================= */

.faq-card-header {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 25px;
    padding-bottom: 20px;

    border-bottom: 1px solid #e5e5e5;
}


.faq-card-number {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    font-weight: 700;

    background: #eeeeee;
}


.faq-card-title {
    flex: 1;
}


.faq-card-title h3 {
    margin:
        0
        0
        8px;

    font-size: 1.1rem;

    line-height: 1.4;
}


/* =========================================
   BADGE CATÉGORIE
========================================= */

.faq-category-badge {
    display: inline-block;

    padding:
        5px 10px;

    border-radius: 20px;

    font-size: 0.75rem;
    font-weight: 600;

    background: #f0f0f0;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* =========================================
   STATUT ACTIVE / INACTIVE
========================================= */

.faq-status {
    flex-shrink: 0;

    padding:
        6px 12px;

    border-radius: 20px;

    font-size: 0.75rem;
    font-weight: 700;
}


.status-active {
    background: #dff5e5;

    color: #227a3a;
}


.status-inactive {
    background: #f8dddd;

    color: #a52a2a;
}


/* =========================================
   ACTIONS CARTE
========================================= */

.faq-card-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 10px;
}


.faq-delete-form {
    display: flex;

    justify-content: flex-end;

    margin-top: 15px;
    padding-top: 20px;

    border-top: 1px solid #e5e5e5;
}


/* =========================================
   BOUTON DANGER
========================================= */

.btn-danger {
    padding:
        11px 18px;

    border: none;
    border-radius: 6px;

    cursor: pointer;

    font-size: 0.8rem;
    font-weight: 700;

    background: #c62828;
    color: white;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.btn-danger:hover {
    opacity: 0.9;

    transform:
        translateY(-1px);
}


/* =========================================
   AUCUNE QUESTION
========================================= */

.faq-empty-state {
    text-align: center;

    padding:
        50px 30px;
}

.faq-empty-state h3 {
    margin-top: 0;
}

.faq-empty-state p {
    margin-bottom: 0;

    opacity: 0.65;
}


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

@media (max-width: 768px) {

    .admin-section {
        padding:
            25px 15px
            60px;
    }


    .admin-page-header h1 {
        font-size: 1.8rem;
    }


    .faq-add-card,
    .faq-admin-card {
        padding: 20px;
    }


    .faq-form-grid {
        grid-template-columns: 1fr;
    }


    .faq-list-header {
        flex-direction: column;

        align-items: flex-start;
    }


    .faq-card-header {
        flex-wrap: wrap;
    }


    .faq-card-title {
        min-width: 0;
    }


    .faq-status {
        margin-left: 53px;
    }


    .faq-form-actions,
    .faq-card-actions,
    .faq-delete-form {
        justify-content: stretch;
    }


    .faq-form-actions .btn-primary,
    .faq-card-actions .btn-primary,
    .faq-delete-form .btn-danger {
        width: 100%;
    }

}

/* =========================================
   ADMIN - POPUP ANNOUNCEMENT
========================================= */

.admin-popup-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 25px 60px;
}


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

.admin-popup-header {
    margin-bottom: 30px;
}

.admin-popup-header h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
}

.admin-popup-header p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}


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

.admin-popup-form {
    background: #ffffff;

    padding: 35px;

    border-radius: 12px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}


/* =========================================
   SECTIONS
========================================= */

.admin-popup-form .form-section {
    margin-bottom: 28px;
}

.admin-popup-form .form-section:last-of-type {
    margin-bottom: 0;
}


/* =========================================
   LABELS
========================================= */

.admin-popup-form label {
    display: block;

    margin-bottom: 8px;

    font-weight: 700;

    color: #333;

    font-size: 0.95rem;
}


/* =========================================
   INPUTS
========================================= */

.admin-popup-form input[type="text"],
.admin-popup-form textarea {

    width: 100%;

    padding: 13px 15px;

    border: 1px solid #d6d6d6;

    border-radius: 8px;

    font-size: 1rem;

    font-family: inherit;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.admin-popup-form textarea {
    resize: vertical;

    min-height: 150px;

    line-height: 1.5;
}


/* FOCUS */

.admin-popup-form input[type="text"]:focus,
.admin-popup-form textarea:focus {

    outline: none;

    border-color: #8b6b45;

    box-shadow:
        0 0 0 3px rgba(139, 107, 69, 0.15);
}


/* =========================================
   ACTIVATION TOGGLE
========================================= */

.toggle-label {

    display: flex !important;

    align-items: center;

    gap: 12px;

    padding: 18px 20px;

    background: #f5f5f5;

    border-radius: 8px;

    cursor: pointer;

    transition:
        background 0.2s ease;
}


.toggle-label:hover {
    background: #eeeeee;
}


.toggle-label input[type="checkbox"] {

    width: 20px;

    height: 20px;

    cursor: pointer;

    accent-color: #8b6b45;
}


.toggle-label span {

    font-weight: 600;

    color: #333;
}


/* =========================================
   FILE INPUT
========================================= */

.admin-popup-form input[type="file"] {

    display: block;

    width: 100%;

    padding: 12px;

    border: 2px dashed #ccc;

    border-radius: 8px;

    background: #fafafa;

    cursor: pointer;

    box-sizing: border-box;
}


.admin-popup-form input[type="file"]:hover {

    border-color: #8b6b45;

    background: #fdfbf8;
}


.admin-popup-form small {

    display: block;

    margin-top: 8px;

    color: #777;

    font-size: 0.85rem;
}


/* =========================================
   IMAGE ACTUELLE
========================================= */

.current-popup-image {

    margin-bottom: 20px;
}


.current-popup-image p {

    font-weight: 600;

    margin-bottom: 10px;

    color: #444;
}


.current-popup-image img {

    display: block;

    width: 100%;

    max-width: 500px;

    max-height: 350px;

    object-fit: cover;

    border-radius: 10px;

    border: 1px solid #ddd;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.12);
}


/* =========================================
   ACTIONS
========================================= */

.form-actions {

    display: flex;

    justify-content: flex-end;

    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid #e5e5e5;
}


/* =========================================
   BOUTON SAUVEGARDE
========================================= */

.admin-save-button {

    border: none;

    padding: 14px 25px;

    border-radius: 8px;

    background: #8b6b45;

    color: white;

    font-size: 1rem;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.admin-save-button:hover {

    background: #6f5436;

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);
}


.admin-save-button:active {

    transform: translateY(0);
}


/* =========================================
   MESSAGE SUCCESS
========================================= */

.admin-success-message {

    margin-bottom: 25px;

    padding: 15px 20px;

    background: #eaf7ee;

    color: #26733f;

    border-left: 4px solid #38a169;

    border-radius: 6px;

    font-weight: 600;
}


/* =========================================
   MESSAGE ERROR
========================================= */

.admin-error-message {

    margin-bottom: 25px;

    padding: 15px 20px;

    background: #fdeaea;

    color: #a83232;

    border-left: 4px solid #d9534f;

    border-radius: 6px;

    font-weight: 600;
}


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

@media (max-width: 768px) {

    .admin-popup-page {

        margin-top: 25px;

        padding:
            0 15px
            40px;
    }


    .admin-popup-form {

        padding: 22px;

    }


    .admin-popup-header h1 {

        font-size: 1.6rem;

    }


    .form-actions {

        justify-content: stretch;

    }


    .admin-save-button {

        width: 100%;

    }

}

/* =========================
   BANNIÈRE COOKIES
========================= */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 999999;

    display: flex;
    justify-content: center;
}

.cookie-banner-content {
    width: 100%;
    max-width: 700px;

    background: #ffffff;
    color: #222222;

    padding: 25px 30px;

    border-radius: 15px;

    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.30);

    box-sizing: border-box;
}

.cookie-banner-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cookie-banner-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    display: inline-block;

    padding: 12px 24px;

    border: none;
    border-radius: 6px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.cookie-btn-accept {
    background: #005baa;
    color: white;
}

.cookie-btn-accept:hover {
    background: #004b8d;
}

.cookie-btn-refuse {
    background: #e5e5e5;
    color: #222222;
}

.cookie-btn-refuse:hover {
    background: #d5d5d5;
}

@media (max-width: 600px) {

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner-content {
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* =========================================================
   GESTION DES PRIX
========================================================= */

.price-admin-header {
    margin-bottom: 25px;
}

.price-admin-header h1 {
    margin-bottom: 5px;
}

.price-admin-header p {
    margin-top: 0;
    color: #666;
}


/* =========================================================
   FORMULAIRE D'AJOUT
========================================================= */

.price-add-box {
    background: #ffffff;
    border: 1px solid #dce5ec;
    border-radius: 10px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-add-box h2 {
    margin: 0;
    padding: 12px 18px;

    background: #08a6d5;
    color: #092f52;

    font-size: 26px;
    font-weight: 800;
}


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

.price-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px 25px;

    padding: 25px;
}

.price-form .form-group {
    display: flex;
    flex-direction: column;
}

.price-form .form-group label {
    margin-bottom: 7px;

    color: #163b5c;

    font-size: 14px;
    font-weight: 700;
}

.price-form input[type="text"],
.price-form input[type="number"] {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    border: 1px solid #cfdbe5;
    border-radius: 6px;

    background: #f7fafc;

    color: #1d3448;

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

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.price-form input[type="text"]:focus,
.price-form input[type="number"]:focus {
    border-color: #08a6d5;

    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(8, 166, 213, 0.12);
}


/* =========================================================
   CHECKBOX
========================================================= */

.price-form .checkbox-group {
    display: flex;
    align-items: center;

    gap: 8px;

    padding-top: 25px;
}

.price-form input[type="checkbox"] {
    width: 17px;
    height: 17px;

    cursor: pointer;
}

.price-form .checkbox-group label {
    margin: 0;

    cursor: pointer;
}


/* =========================================================
   BOUTON AJOUTER
========================================================= */

.price-form button[type="submit"] {
    grid-column: 1 / -1;

    justify-self: start;

    margin-top: 5px;

    padding: 12px 22px;

    border: none;
    border-radius: 6px;

    background: #08a6d5;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.price-form button[type="submit"]:hover {
    background: #078fb8;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(8, 166, 213, 0.25);
}


/* =========================================================
   LISTE DES PRIX EXISTANTS
========================================================= */

.price-list {
    display: grid;

    grid-template-columns: repeat(
        auto-fill,
        minmax(300px, 1fr)
    );

    gap: 18px;

    margin-top: 20px;
}


/* =========================================================
   CARTE DE PRIX
========================================================= */

.price-card {
    background: #edf3f8;

    border: 1px solid #d9e3eb;
    border-radius: 8px;

    padding: 18px;

    box-sizing: border-box;
}

.price-card h3 {
    margin: 0 0 18px;

    color: #173b5b;

    font-size: 17px;
    font-weight: 800;
}

.price-card .form-group {
    margin-bottom: 14px;
}

.price-card label {
    display: block;

    margin-bottom: 6px;

    color: #173b5b;

    font-size: 13px;
    font-weight: 700;
}

.price-card input {
    width: 100%;
    box-sizing: border-box;

    padding: 10px 12px;

    border: 1px solid #d3dee7;
    border-radius: 5px;

    background: #ffffff;

    font-family: inherit;
}


/* =========================================================
   ACTIF
========================================================= */

.price-card .active-group {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 10px;
}

.price-card .active-group label {
    margin: 0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .price-form {
        grid-template-columns: 1fr;

        padding: 20px;
    }

    .price-form button[type="submit"] {
        grid-column: 1;
        width: 100%;
    }

    .price-list {
        grid-template-columns: 1fr;
    }

    .price-add-box h2 {
        font-size: 22px;
    }

}