/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #183240;
    font-family: Arial, sans-serif;
    color: #ffffff;
}

/* =========================
   ACCESSIBILITÉ
========================= */

.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;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #161416;
    border-bottom: 1px solid #2d2b2d;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #a8c0d0;
    border: 2px solid #d5a53a;
    color: #161416;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0;
    overflow: hidden;
    margin-top: -15px;
    margin-bottom: -15px;
}
.site-logo:hover {
    opacity: 0.92;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 62px;
    padding: 16px 24px;
    background-color: #a8c0d0;
    border: 2px solid #d5a53a;
    color: #1d1b1d;
    text-decoration: none;
    font-size: 1rem;
}

.header-button:hover {
    opacity: 0.92;
}

.header-search-form {
    display: flex;
    align-items: center;
    background-color: #a8c0d0;
    border: 2px solid #d5a53a;
    padding: 10px 16px;
    min-height: 62px;
}

.header-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #000000;
    width: 180px;
}

.header-search-input::placeholder {
    color: #000000;
    opacity: 1;
}

.header-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 0 10px;
    display: flex;
    align-items: center;
    color: #1d1b1d;
}

.header-search-btn:hover {
    color: #000000;
}

/* =========================
   MAIN
========================= */

.site-main {
    flex: 1;
    width: 100%;
    padding: 20px 32px;
    overflow-y: auto;
    overflow-x: hidden;
}
/* =========================
   FOOTER
========================= */

.site-footer {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background-color: #161416;
    border-top: 1px solid #2d2b2d;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.site-footer a {
    color: #d5a53a;
    text-decoration: none;
    font-size: 1rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

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

.alert-success {
    background: #6CBE8D;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 12px 20px;
    color: #1D1F24;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.alert-error {
    background: #c0392b;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 12px 20px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

/* =========================
   PAGE D'ACCUEIL
========================= */

.home-page {
    max-width: 1600px;
    margin: 0 auto;
}

.home-search-title {
    font-size: 1.2rem;
    color: #EDBF61;
    margin-bottom: 20px;
    padding: 0 8px;
}

.home-empty {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 18px;
    padding: 24px;
    color: #1D1F24;
}

/* =========================
   GRILLE ANNONCES
========================= */

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

.annonce-card {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 18px;
    padding: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    height: 340px;
    overflow: hidden;
    position: relative;
}

.annonce-card:hover {
    border-color: #EDBF61;
    transform: translateY(-2px);
}

.annonce-visual {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 14px;
    height: 100%;
    align-items: start;
}

.annonce-left {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 8px;
    overflow: hidden;
}

.annonce-big-image-wrap {
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #000000;
    background: #000000;
    height: 175px;
    padding: 0;
}

.annonce-big-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.annonce-title-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    height: 28px;
    overflow: hidden;
}

.annonce-title {
    font-size: 0.80rem;
    font-weight: 700;
    margin: 0;
    color: #1D1F24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.annonce-description-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    height: 85px;
    overflow: hidden;
}

.annonce-description {
    font-size: 0.80rem;
    line-height: 1.3;
    margin: 0;
    color: #1D1F24;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.annonce-right {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 8px;
    overflow: hidden;
}

.annonce-small-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 175px;
    overflow: hidden;
}

.annonce-small-image-wrap {
    flex: 1;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #000000;
    background: #000000;
    padding: 0;
}

.annonce-small-image-wrap--empty {
    display: none;
}

.annonce-small-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.annonce-price-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    height: 28px;
    overflow: hidden;
}

.annonce-price {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1D1F24;
    white-space: nowrap;
}

.annonce-button-box {
    background: transparent;
    border: none;
    padding: 0;
}

.annonce-detail-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6CBE8D;
    border: 2px solid #000000;
    border-radius: 10px;
    color: #1D1F24;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.80rem;
    padding: 6px 12px;
    height: 85px;
}

.annonce-detail-button:hover {
    opacity: 0.9;
}

.annonce-detail-button--disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.7;
}

.annonce-card--vendue {
    opacity: 0.75;
}

.annonce-vendu-bandeau {
    position: absolute;
    top: 16px;
    left: -6px;
    background: #e53935;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 6px 18px;
    z-index: 10;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    border-radius: 0 4px 4px 0;
}

.annonce-vendu-bandeau::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border-left: 6px solid #b71c1c;
    border-bottom: 6px solid transparent;
}

/* =========================
   PAGE DÉTAIL
========================= */

.detail-page {
    max-width: 1100px;
    margin: 0 auto;
}

.detail-card {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 18px;
    padding: 20px;
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 16px;
}

.detail-breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #a8c0d0;
}

.detail-breadcrumb ol li + li::before {
    content: "›";
    margin-right: 8px;
    color: #6E768A;
}

.detail-breadcrumb a {
    color: #87ABBF;
    text-decoration: none;
    font-weight: 600;
}

.detail-breadcrumb a:hover {
    text-decoration: underline;
}

.detail-top {
    display: grid;
    grid-template-columns: 2fr 0.6fr 1.4fr;
    gap: 12px;
    align-items: start;
}

.detail-top--no-thumbs {
    grid-template-columns: 2fr 1.4fr;
}

.detail-main-image-wrap {
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #000000;
    background: #000000;
    height: 220px;
    cursor: pointer;
    padding: 0;
}

.detail-main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.2s;
}

.detail-main-image:hover {
    opacity: 0.85;
}

.detail-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 220px;
}

.detail-thumbs--hidden {
    display: none;
}

.detail-thumb-wrap {
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #000000;
    background: #000000;
    flex: 1;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.detail-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.2s;
}

.detail-thumb-wrap:hover .detail-thumb {
    opacity: 0.85;
}

.detail-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 10px;
}

.detail-infos {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    gap: 8px;
    height: 220px;
}

.detail-label {
    font-weight: 700;
    color: #1D1F24;
}

.detail-title-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 8px 12px;
    color: #1D1F24;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-poids-box,
.detail-livraison-box,
.detail-paiement-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 8px 12px;
    color: #1D1F24;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-price-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 8px 12px;
    color: #1D1F24;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.detail-description-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 14px;
    color: #1D1F24;
    font-size: 0.90rem;
    line-height: 1.6;
    min-height: 80px;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.detail-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8C98A;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px 16px;
    color: #1D1F24;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
}

.detail-contact-btn:hover {
    opacity: 0.9;
}

.detail-stock-disponible {
    font-size: 0.82rem;
    color: #a8c0d0;
    text-align: center;
    white-space: nowrap;
    padding: 0 4px;
}

.detail-stock-disponible strong {
    color: #6CBE8D;
}

.detail-buy-wrap {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 0;
}

.detail-quantite-btn {
    background: #4a5a6a;
    border: 2px solid #000;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-quantite-btn:first-child {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.detail-quantite-btn:last-child {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.detail-quantite-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.detail-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6CBE8D;
    border: 2px solid #000000;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 12px 16px;
    color: #1D1F24;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.detail-buy-btn:hover {
    opacity: 0.9;
}

.detail-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================
   PAGE PANIER
========================= */

.panier-container {
    max-width: 900px;
    margin: 0 auto;
}

.panier-title {
    font-size: 1.8rem;
    color: #EDBF61;
    margin-bottom: 24px;
}

.panier-vide {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
}

.panier-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.panier-item {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
}

.panier-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panier-item-titre {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.panier-item-prix {
    font-weight: 800;
    font-size: 0.95rem;
    color: #EDBF61;
}

.panier-item-quantite {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panier-qte-btn {
    background: #4a5a6a;
    border: 2px solid #000;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.panier-qte-btn:hover {
    background: #6E768A;
}

.panier-qte-btn--delete {
    background: #c0392b;
}

.panier-qte-btn--delete:hover {
    background: #e74c3c;
}

.panier-qte-btn--disabled {
    background: #4a5a6a;
    border: 2px solid #000;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    cursor: not-allowed;
}

.panier-qte-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.panier-item-supprimer {
    background: #c0392b;
    border: 2px solid #000000;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 0.9rem;
}

.panier-item-supprimer:hover {
    opacity: 0.85;
}

.panier-total {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 1.2rem;
    color: #ffffff;
    text-align: right;
    margin-bottom: 20px;
}

.panier-total strong {
    color: #EDBF61;
    font-size: 1.4rem;
}

.panier-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panier-section {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panier-section--hidden {
    display: none;
}

.panier-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #EDBF61;
    margin-bottom: 4px;
}

.panier-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
}

.panier-radio input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6CBE8D;
}

.panier-info {
    color: #a8c0d0;
    font-size: 0.9rem;
}

.panier-stripe-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a8c0d0;
    font-size: 0.9rem;
}

.panier-adresse-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panier-adresse-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

.panier-input {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 10px 14px;
    color: #1D1F24;
    font-size: 0.90rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.panier-input::placeholder {
    color: #1D1F24;
    opacity: 0.7;
}

.panier-input:hover,
.panier-input:focus {
    border-color: #d5a53a;
}

.panier-error {
    color: #e74c3c;
    font-size: 0.8rem;
    display: none;
    margin-top: 2px;
}

.panier-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    margin-top: 8px;
}

.panier-btn-vider {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 14px 20px;
    color: #1D1F24;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.panier-btn-vider:hover {
    opacity: 0.9;
}

.panier-btn-commander {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6CBE8D;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 14px 20px;
    color: #1D1F24;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.panier-btn-commander:hover {
    opacity: 0.9;
}

/* =========================
   OVERLAY STRIPE
========================= */

.stripe-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.stripe-overlay--active {
    display: flex;
}

.stripe-overlay-box {
    background: #6E768A;
    border: 2px solid #000;
    border-radius: 18px;
    padding: 40px 60px;
    text-align: center;
    color: #fff;
    max-width: 400px;
}

.stripe-overlay-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.stripe-overlay-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.stripe-overlay-text {
    color: #a8c0d0;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.stripe-overlay-pulse-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stripe-overlay-pulse {
    width: 12px;
    height: 12px;
    background: #6CBE8D;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.stripe-overlay-label {
    color: #a8c0d0;
    font-size: 0.85rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* =========================
   MODALE
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 18px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-width: 320px;
}

.modal-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.modal-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #a8c0d0;
}

.modal-actions {
    display: flex;
    gap: 16px;
}

.modal-btn-continuer {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px 20px;
    color: #1D1F24;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
}

.modal-btn-continuer:hover {
    opacity: 0.9;
}

.modal-btn-panier {
    background: #6CBE8D;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px 20px;
    color: #1D1F24;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-btn-panier:hover {
    opacity: 0.9;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #d5a53a;
    display: block;
    margin: auto;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10000;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

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

.lightbox-counter {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 14px;
    border-radius: 20px;
    z-index: 10000;
}

/* =========================
   PAGE CONTACT
========================= */

.contact-page {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: #6E768A;
    border: 2px solid #000000;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease;
}

.contact-card:hover {
    border-color: #d5a53a;
}

.contact-title-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 8px 16px;
    color: #1D1F24;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-input {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 8px 12px;
    color: #1D1F24;
    font-size: 0.90rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.contact-input::placeholder {
    color: #1D1F24;
    opacity: 0.7;
}

.contact-input:hover,
.contact-input:focus {
    border-color: #d5a53a;
}

.contact-select {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 8px 12px;
    color: #1D1F24;
    font-size: 0.90rem;
    outline: none;
    width: 100%;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.2s ease;
}

.contact-select:hover,
.contact-select:focus {
    border-color: #d5a53a;
}

.contact-textarea {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 8px 12px;
    color: #1D1F24;
    font-size: 0.90rem;
    outline: none;
    width: 100%;
    resize: none;
    height: 80px;
    font-family: Arial, sans-serif;
    transition: border-color 0.2s ease;
}

.contact-textarea::placeholder {
    color: #1D1F24;
    opacity: 0.7;
}

.contact-textarea:hover,
.contact-textarea:focus {
    border-color: #d5a53a;
}

.contact-error {
    color: #e74c3c;
    font-size: 0.80rem;
    display: none;
    margin-top: 2px;
}

.contact-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.contact-btn-envoyer {
    background: #6CBE8D;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 10px 32px;
    color: #1D1F24;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.contact-btn-envoyer:hover {
    border-color: #d5a53a;
}

/* =========================
   PAGE CONFIRMATION
========================= */

.confirmation-page {
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-card {
    background: #6E768A;
    border: 2px solid #000;
    border-radius: 18px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.confirmation-header {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
}

.confirmation-header--succes { background: #3a7a4a; }
.confirmation-header--echec  { background: #7a3a3a; }

.confirmation-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.confirmation-header h1 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
}

.confirmation-header p {
    color: #a8c0d0;
    font-size: 0.95rem;
}

.confirmation-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.confirmation-meta-item {
    background: #87ABBF;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confirmation-label {
    font-size: 0.75rem;
    color: #1D1F24;
    font-weight: 700;
    text-transform: uppercase;
}

.confirmation-value {
    font-size: 0.9rem;
    color: #1D1F24;
}

.confirmation-section-title {
    color: #EDBF61;
    font-size: 1rem;
    font-weight: 700;
}

.confirmation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.confirmation-table th {
    background: #87ABBF;
    color: #1D1F24;
    padding: 10px 8px;
    text-align: left;
    border: 2px solid #000;
}

.confirmation-table th:nth-child(2),
.confirmation-table th:nth-child(3),
.confirmation-table th:nth-child(4) { text-align: right; }

.confirmation-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #4a5568;
    color: #fff;
}

.confirmation-table .text-center { text-align: center; }
.confirmation-table .text-right  { text-align: right; }

.confirmation-total td {
    font-weight: 700;
    color: #EDBF61;
    font-size: 1rem;
    border-top: 2px solid #EDBF61;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirmation-btn-print {
    background: #87ABBF;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 12px 20px;
    color: #1D1F24;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

.confirmation-btn-retour {
    background: #6CBE8D;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 12px 20px;
    color: #1D1F24;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.confirmation-echec-text {
    color: #fff;
    margin-bottom: 8px;
}

.confirmation-echec-list {
    color: #a8c0d0;
    padding-left: 20px;
    line-height: 1.8;
}

/* =========================
   PAGE MENTIONS LÉGALES
========================= */

.mentions-page {
    max-width: 900px;
    margin: 0 auto;
}

.mentions-card {
    background: #6E768A;
    border: 2px solid #000;
    border-radius: 18px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mentions-header {
    text-align: center;
    padding: 20px;
    background: #4a5568;
    border: 2px solid #000;
    border-radius: 12px;
}

.mentions-title {
    font-size: 1.6rem;
    color: #EDBF61;
    margin-bottom: 8px;
}

.mentions-subtitle {
    color: #a8c0d0;
    font-size: 0.85rem;
}

.mentions-section {
    background: #87ABBF;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mentions-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1D1F24;
}

.mentions-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #1D1F24;
    line-height: 1.6;
}

.mentions-content ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mentions-content a {
    color: #183240;
    font-weight: 700;
    text-decoration: underline;
}

.mentions-content a:hover {
    opacity: 0.8;
}

.mentions-footer {
    text-align: center;
    color: #a8c0d0;
    font-size: 0.85rem;
    padding-top: 10px;
    border-top: 1px solid #4a5568;
}

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

@media (max-width: 1199px) and (min-width: 768px) {
    .site-main            { padding: 16px; }
    .header-container     { padding: 8px 16px; }
    .header-search-form   { min-height: 50px; padding: 6px 10px; }
    .header-search-input  { width: 120px; }
    .header-button        { min-width: 90px; min-height: 50px; padding: 8px 12px; font-size: 0.9rem; }
    .annonces-grid        { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .annonce-card         { height: 260px; }
    .annonce-big-image-wrap  { height: 120px; }
    .annonce-small-images    { height: 120px; }
    .annonce-description-box { height: 60px; }
    .annonce-detail-button   { height: 60px; }
    .detail-main-image-wrap  { height: 180px; }
    .detail-thumbs           { height: 180px; }
    .detail-infos            { height: 180px; }
    .panier-actions          { grid-template-columns: 1fr; }
    .contact-page            { max-width: 100%; }
}

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

@media (max-width: 767px) {
    .site-main              { padding: 10px; }
    .header-container       { padding: 6px 10px; gap: 8px; }
    .header-search-form     { min-height: 40px; padding: 4px 8px; }
    .header-search-input    { width: 80px; font-size: 0.85rem; }
    .header-button          { min-width: 60px; min-height: 40px; padding: 6px 8px; font-size: 0.8rem; }
    .footer-container       { padding: 10px 16px; gap: 10px; }
    .site-footer a          { font-size: 0.8rem; }
    .annonces-grid          { grid-template-columns: 1fr; }
    .annonce-card           { height: 220px; }
    .annonce-big-image-wrap { height: 100px; }
    .annonce-small-images   { height: 100px; }
    .annonce-title-box,
    .annonce-price-box      { height: 24px; }
    .annonce-description-box { height: 50px; }
    .annonce-detail-button  { height: 50px; font-size: 0.75rem; }
    .detail-top             { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
    .detail-main-image-wrap { grid-column: 1 / -1; height: 200px; }
    .detail-thumbs          { flex-direction: row; height: 80px; }
    .detail-thumb-wrap      { flex: 1; }
    .detail-infos           { grid-column: 1 / -1; height: auto; }
    .panier-item            { grid-template-columns: 1fr auto auto; }
    .panier-actions         { grid-template-columns: 1fr; }
    .modal-box              { padding: 24px 20px; min-width: 280px; }
    .modal-actions          { flex-direction: column; width: 100%; }
    .modal-btn-continuer,
    .modal-btn-panier       { width: 100%; text-align: center; }
    .contact-card           { padding: 12px; }
    .contact-page           { max-width: 100%; }
    .confirmation-meta      { grid-template-columns: 1fr; }
    .confirmation-actions   { flex-direction: column; }
    .stripe-overlay-box     { padding: 30px 20px; }
}

/* =========================
   PRINT
========================= */

@media print {
    .no-print               { display: none !important; }
    .site-header,
    .site-footer            { display: none !important; }
    .confirmation-page      { padding: 0; }
    .confirmation-card      { background: white !important; color: black !important; border: 1px solid #ccc !important; border-radius: 0 !important; }
    .confirmation-table th,
    .confirmation-table td  { color: black !important; }
    .confirmation-header--succes { background: #e8f5e9 !important; color: #2e7d32 !important; }
}
/* =========================
   CARTE CLIQUABLE
========================= */

.annonce-detail-button::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lightbox-trigger {
    position: relative;
    z-index: 2;
}
