/* ============================================================
   APP.CSS — La Fauchonnerie
   Organisé en sections :
   1.  Base & Body
   2.  Layout (conteneur, main)
   3.  Header & Navigation
   4.  Langues / Drapeaux
   5.  Footer
   6.  Boutons & Formulaires génériques
   7.  Tables (Admin)
   8.  Page Accueil (textes + carrousel)
   9.  Mini-calendrier Accueil
   10. Page Chambres (cards + volet latéral)
   11. Page Slow Tourisme
   12. Page Disponibilités (FullCalendar)
   13. Page Réservation
   14. Page Contact
   15. Page Mentions légales / CGV / Données
   16. Admin (dashboard, édition, médias)
   17. RESPONSIVE — tablette (< 1024px)
   18. RESPONSIVE — mobile (< 768px)
============================================================ */


/* ============================================================
   1. BASE & BODY
============================================================ */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f8f8f8;
    color: #222;
    min-height: 100vh;
}


/* ============================================================
   2. LAYOUT — CONTENEUR CENTRAL
============================================================ */

.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0;
    flex: 1;
}

.main-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}


/* ============================================================
   3. HEADER & NAVIGATION
============================================================ */

.site-header {
    background-color: #2f5d50;
    color: #eefaf4;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Logo */
.site-logo {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
}

/* Nav principale */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-links a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500;
    padding: 0 0.3rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-links a:hover {
    text-decoration: underline !important;
}

/* Hamburger — caché sur desktop, visible sur mobile */
.nav-hamburger {
    display: none;
}

/* Barre admin (2ème ligne du header) */
.admin-bar {
    background-color: #2f5d50;
    width: 100%;
    padding: 0.3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.admin-bar-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.admin-bar-label {
    color: #fcd34d;
    font-size: 0.78rem;
    font-weight: bold;
    padding-right: 0.8rem;
    border-right: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.admin-bar a {
    color: #fcd34d;
    text-decoration: none;
    font-size: 0.8rem;
    font-style: italic;
    white-space: nowrap;
    transition: color 0.15s;
}

.admin-bar a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Nom + déconnexion à droite de la barre admin */
.admin-bar-user {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-bar-username {
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.admin-bar-logout {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.admin-bar-logout:hover {
    background: rgba(255,255,255,0.3);
}

/* Liens admin dans nav (style différencié) */
.nav-links a.admin-link {
    color: #fcd34d !important;
    font-style: italic;
}

.nav-links a.admin-link:hover {
    color: #fbbf24 !important;
}


/* ============================================================
   4. LANGUES / DRAPEAUX
============================================================ */

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-switch form {
    margin: 0;
}

.lang-switch button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    opacity: 0.6;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.lang-switch button img {
    display: block;
    width: 24px;
    height: auto;
}

.lang-switch button:hover {
    transform: scale(1.1);
    opacity: 1;
}

.lang-inactive img {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.lang-inactive img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-active img {
    border: 2px solid white;
    border-radius: 4px;
    opacity: 1;
}


/* ============================================================
   5. FOOTER
============================================================ */

footer,
.site-footer-bar {
    background-color: #f9fafb;
    color: #666;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.footer-copy {
    color: #888;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #2f5d50;
    text-decoration: underline;
}

.footer-sep {
    color: #ccc;
    font-size: 0.8rem;
}


/* ============================================================
   6. BOUTONS & FORMULAIRES GÉNÉRIQUES
============================================================ */

button {
    cursor: pointer;
}

button.danger {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
}


/* ============================================================
   7. TABLES (Admin)
============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

th {
    background-color: #f0f4f3;
    text-align: left;
}

td.actions {
    text-align: center;
    width: 100px;
}


/* ============================================================
   8. PAGE ACCUEIL — Textes & Carrousel
============================================================ */

.home-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* Bloc texte */
.home-texte {
    padding: 1rem 1.5rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.home-texte h1 {
    font-size: 2rem;
    color: #4a7c59;
    margin-bottom: 1rem;
}

.home-texte p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

/* Carrousel */
.home-carrousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 0;
}

.carrousel-inner {
    position: relative;
    width: 100%;
}

.carrousel-slide {
    display: none;
    width: 100%;
}

.carrousel-slide.active {
    display: block;
}

.carrousel-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

/* Légende carrousel */
.carrousel-legende {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.4);
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

/* Flèches carrousel */
.carrousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 0.2rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
}

.carrousel-nav:hover {
    background: rgba(0,0,0,0.7);
}

.carrousel-nav.gauche { left: 10px; }
.carrousel-nav.droite { right: 10px; }

/* Dots carrousel */
.carrousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carrousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.carrousel-dot.actif {
    background: #fff;
}


/* ============================================================
   9. MINI-CALENDRIER DISPONIBILITÉS — Page Accueil
============================================================ */

.home-calendrier {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.home-cal-titre {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #2f5d50;
    margin-bottom: 1.5rem;
}

.home-cal-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.home-cal-mois {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.home-cal-mois-titre {
    text-align: center;
    font-weight: bold;
    color: #2f5d50;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-transform: capitalize;
}

.home-cal-semaine {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.home-cal-entete {
    text-align: center;
    font-size: 0.72rem;
    font-weight: bold;
    color: #888;
    padding: 0.2rem 0;
}

.home-cal-jours {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.home-cal-jour {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 500;
}

.home-cal-jour.vide    { background: transparent; }
.home-cal-jour.passe   { color: #ccc; background: #fafafa; }
.home-cal-jour.libre   { background: #dcfce7; color: #15803d; font-weight: bold; }
.home-cal-jour.partiel { background: #ffedd5; color: #c2410c; font-weight: bold; }
.home-cal-jour.complet { background: #fee2e2; color: #b91c1c; }

/* Footer légende + bouton */
.home-cal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-cal-legende {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.home-cal-leg-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #555;
}

.home-cal-leg-couleur {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.home-cal-leg-couleur.libre   { background: #dcfce7; border: 1px solid #15803d; }
.home-cal-leg-couleur.partiel { background: #ffedd5; border: 1px solid #c2410c; }
.home-cal-leg-couleur.complet { background: #fee2e2; border: 1px solid #b91c1c; }

.home-cal-btn {
    display: inline-block;
    background: #2f5d50;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
    white-space: nowrap;
}

.home-cal-btn:hover {
    background: #4a7c59;
}


/* ============================================================
   10. PAGE CHAMBRES — Cards & Volet latéral
============================================================ */

.chambres-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.chambres-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chambres-header h1 {
    font-size: 2rem;
    color: #4a7c59;
}

.chambres-header p {
    color: #666;
}

.chambres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Cards */
.chambre-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chambre-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.chambre-card-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.chambre-card-body {
    padding: 1rem;
}

.chambre-card-body h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.chambre-card-type  { color: #888; font-size: 0.85rem; margin-bottom: 0.5rem; }
.chambre-card-prix  { color: #4a7c59; font-size: 0.95rem; margin-bottom: 0.8rem; }
.chambre-card-btn   { display: inline-block; font-size: 0.85rem; color: #4a7c59; font-weight: bold; }

/* Overlay (fond sombre) */
.volet-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100;
}

.volet-overlay.visible {
    display: block;
}

/* Volet latéral */
.volet {
    position: fixed;
    top: 0; right: -520px;
    width: 500px;
    height: 100%;
    background: #fff;
    z-index: 101;
    overflow-y: auto;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.volet.ouvert {
    right: 0;
}

.volet-fermer {
    position: sticky;
    top: 0;
    width: 100%;
    background: #f9fafb;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.8rem 1rem;
    text-align: right;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    z-index: 10;
}

.volet-fermer:hover {
    background: #f3f4f6;
}

/* Carrousel dans le volet */
.volet-carrousel {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f3f4f6;
}

.volet-carrousel img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.carrousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.2rem 0.7rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
}

.carrousel-btn:hover { background: rgba(0,0,0,0.7); }
.carrousel-btn.gauche { left: 8px; }
.carrousel-btn.droite { right: 8px; }

/* Contenu du volet */
.volet-content { padding: 1.5rem; }

.volet-content h2 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.volet-type        { color: #888; font-size: 0.9rem; margin-bottom: 1rem; }
.volet-description { color: #555; line-height: 1.6; margin-bottom: 1.2rem; }

/* Encart "Le saviez-vous" */
.volet-saviez {
    background: #fefce8;
    border-left: 4px solid #eab308;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
}

.volet-saviez-label {
    font-weight: bold;
    color: #854d0e;
    display: block;
    margin-bottom: 0.3rem;
}

.volet-saviez p {
    color: #713f12;
    font-style: italic;
    margin: 0;
}

/* Tarifs dans le volet */
.volet-tarifs { margin-bottom: 1.5rem; }

.volet-tarifs h4 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.volet-tarifs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.volet-tarifs-grid div {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.volet-tarifs-grid strong { color: #333; font-size: 0.9rem; }
.volet-tarifs-grid small  { color: #888; font-size: 0.78rem; }
.volet-tarifs-grid span   { color: #4a7c59; font-size: 1.1rem; font-weight: bold; margin-top: 0.3rem; }

/* Vérification dispo dans le volet */
.volet-dispo {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.2rem;
}

.volet-dispo h4 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.volet-dispo-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.volet-dispo-dates label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.volet-dispo-dates input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

.volet-dispo-btn {
    width: 100%;
    padding: 0.7rem;
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background 0.2s;
    margin-bottom: 0.8rem;
}

.volet-dispo-btn:hover { background: #3a6347; }

.volet-dispo-resultat {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 0.8rem;
    min-height: 1rem;
}

.dispo-ok { background: #dcfce7; color: #15803d; }
.dispo-ko { background: #fee2e2; color: #b91c1c; }

.volet-reserver {
    display: block;
    text-align: center;
    background: #4a7c59;
    color: #fff;
    padding: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s;
}

.volet-reserver:hover { background: #3a6347; }

/* Photo simple (sans carrousel) */
.volet-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Image générique */
.gite-photo {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}


/* ============================================================
   11. PAGE SLOW TOURISME
============================================================ */

.slow-header {
    text-align: center;
    padding: 1rem 1rem 2rem;
}

.slow-header h1 {
    font-size: 2rem;
    color: #4a7c59;
}

.slow-header p {
    font-size: 1.1rem;
    color: #666;
}

.activites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Carte activité */
.activite-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
}

.activite-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Titre visible au survol */
.activite-titre-hover {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 0.6rem 1rem;
    font-weight: bold;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activite-card:hover .activite-titre-hover {
    opacity: 1;
}

/* Overlay texte au clic */
.activite-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.activite-card.active .activite-overlay {
    opacity: 1;
    pointer-events: auto;
}

.activite-card.active .activite-titre-hover {
    opacity: 0;
}


/* ============================================================
   12. PAGE DISPONIBILITÉS — FullCalendar
============================================================ */

.dispo-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.dispo-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dispo-header h1 {
    font-size: 2rem;
    color: #4a7c59;
}

.dispo-selector {
    margin-bottom: 1rem;
}

.dispo-legende {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legende-couleur {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
}

/* FullCalendar — personnalisation */
.fc .fc-toolbar.fc-header-toolbar {
    align-items: center;
}

.fc-toolbar-chunk {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    min-width: 160px;
    text-align: center;
    margin: 0 0.3rem;
    white-space: nowrap;
}

.fc .fc-prev-button,
.fc .fc-next-button {
    padding: 0.2rem 0.5rem !important;
}

/* Forcer le chunk central en ligne */
.fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
}

.fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:nth-child(2) * {
    display: inline-flex !important;
    flex-direction: row !important;
}

.dispo-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #4a7c59;
    border-radius: 6px;
    background: #fff;
    color: #4a7c59;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.dispo-btn.actif {
    background: #4a7c59;
    color: #fff;
}


/* ============================================================
   13. PAGE RÉSERVATION
============================================================ */

.resa-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.resa-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resa-header h1 {
    font-size: 2rem;
    color: #4a7c59;
}

.resa-header p {
    color: #666;
}

.resa-erreurs {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    color: #991b1b;
}

.resa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.resa-champ {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.resa-champ.full {
    grid-column: 1 / -1;
}

.resa-champ label {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.resa-champ input,
.resa-champ select {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.resa-champ input:focus,
.resa-champ select:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15);
}

/* Bloc devis estimatif */
.resa-devis {
    background: #f0fdf4;
    border-left: 4px solid #4a7c59;
    padding: 1.2rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    color: #333;
}

.resa-devis h3 {
    color: #4a7c59;
    margin-bottom: 0.8rem;
}

.resa-devis p {
    margin: 0.3rem 0;
}

.devis-info {
    margin-top: 0.8rem !important;
    font-style: italic;
    color: #555;
}

/* Case CGV obligatoire */
.resa-cgv {
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    background: #f0fdf4;
    border-left: 4px solid #4a7c59;
    border-radius: 6px;
}

.resa-cgv-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
}

.resa-cgv-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    accent-color: #4a7c59;
}

.resa-cgv-label a {
    color: #4a7c59;
    font-weight: bold;
    text-decoration: underline;
}

.resa-cgv-label a:hover {
    color: #2f5d50;
}

/* Bouton submit */
.resa-submit button {
    background: #4a7c59;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.resa-submit button:hover {
    background: #3a6347;
}


/* ============================================================
   14. PAGE CONTACT
============================================================ */

.contact-header {
    text-align: center;
    padding: 1rem 1rem 2rem;
}

.contact-header h1 {
    font-size: 2rem;
    color: #4a7c59;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: #666;
    font-size: 1.05rem;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

/* Coordonnées */
.contact-coordonnees {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.contact-coord-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.contact-coord-item a {
    color: #2f5d50;
    text-decoration: none;
    font-weight: 500;
}

.contact-coord-item a:hover {
    text-decoration: underline;
}

.contact-coord-icon {
    font-size: 1.2rem;
}

.contact-success {
    background: #dcfce7;
    border-left: 4px solid #4a7c59;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    color: #15803d;
    font-weight: 500;
}

.contact-form-titre {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-champ {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-champ label {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.contact-champ input,
.contact-champ textarea {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: Arial, sans-serif;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.contact-champ input:focus,
.contact-champ textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15);
}

.contact-submit button {
    background: #4a7c59;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}

.contact-submit button:hover {
    background: #2f5d50;
}

/* Carte contact */
.contact-carte {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

#carte-gite {
    position: relative;
    z-index: 1;
}

/* ============================================================
   15. PAGE LÉGALE — Mentions, CGV, Données personnelles
============================================================ */

.mentions-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.mentions-container h1 {
    font-size: 2rem;
    color: #4a7c59;
    margin-bottom: 2rem;
}

.mentions-section {
    margin-bottom: 2rem;
}

.mentions-section h2 {
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.4rem;
    margin-bottom: 0.8rem;
}

.mentions-section p {
    color: #555;
    line-height: 1.6;
}

/* Barre de navigation rapide entre les 3 sections */
.legal-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding: 1rem 1.2rem;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.legal-nav a {
    color: #2f5d50;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.legal-nav a:hover {
    background: #dcfce7;
    text-decoration: none;
}

/* Sections de la page légale */
.legal-section {
    padding-top: 1rem;
    margin-bottom: 3rem;
    border-top: 2px solid #e5e7eb;
    scroll-margin-top: 120px; /* compense le header sticky */
}

.legal-section:first-of-type {
    border-top: none;
}

.legal-section h1 {
    font-size: 1.8rem;
    color: #2f5d50;
    margin-bottom: 1.5rem;
}

.legal-section .mentions-section ul {
    margin: 0.5rem 0 0.8rem 1.5rem;
    color: #555;
    line-height: 1.7;
}

.legal-section .mentions-section ul li {
    margin-bottom: 0.3rem;
}

/* Lien retour haut de page */
.legal-top-link {
    text-align: right;
    margin-top: 1.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f3f4f6;
}

.legal-top-link a {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
}

.legal-top-link a:hover {
    color: #2f5d50;
}


/* ============================================================
   16. ADMIN — Dashboard, édition, médias
============================================================ */

/* Tableau de bord — cartes statistiques */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.dash-card {
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dash-card.orange { background: #fff7ed; border-left: 4px solid #f97316; }
.dash-card.vert   { background: #f0fdf4; border-left: 4px solid #4a7c59; }
.dash-card.bleu   { background: #eff6ff; border-left: 4px solid #3b82f6; }
.dash-card.violet { background: #faf5ff; border-left: 4px solid #8b5cf6; }

.dash-card-icon   { font-size: 2rem; }

.dash-card-info {
    display: flex;
    flex-direction: column;
}

.dash-card-valeur {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.dash-card-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
}

/* Sections du dashboard */
.dash-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.dash-section h2 {
    color: #4a7c59;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.dash-section h2 small {
    color: #888;
    font-size: 0.85rem;
    font-weight: normal;
}

.dash-occupation {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dash-occ-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.dash-occ-item:last-child { border-bottom: none; }
.dash-occ-nom { font-weight: bold; color: #333; }

/* Tableau d'occupation */
.dash-occ-table th,
.dash-occ-table td {
    text-align: center;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
}

.dash-occ-table td:first-child {
    text-align: left;
    white-space: nowrap;
}

.dash-mois-courant {
    background: #f0fdf4 !important;
    border-left: 2px solid #4a7c59 !important;
    border-right: 2px solid #4a7c59 !important;
}

.dash-mois-suivant {
    background: #eff6ff !important;
    border-left: 2px solid #3b82f6 !important;
    border-right: 2px solid #3b82f6 !important;
}

.dash-mois-apres {
    background: #faf5ff !important;
    border-left: 2px solid #8b5cf6 !important;
    border-right: 2px solid #8b5cf6 !important;
}

.dash-mois-cumul {
    background: #fefce8 !important;
    border-left: 2px solid #eab308 !important;
    border-right: 2px solid #eab308 !important;
    color: #854d0e;
}

.dash-occ-active              { font-weight: bold; color: #4a7c59; }
.dash-occ-table th.dash-mois-courant { color: #4a7c59; }
.dash-occ-table th.dash-mois-suivant { color: #3b82f6; }
.dash-occ-table th.dash-mois-apres   { color: #8b5cf6; }

/* Formulaires d'édition admin */
.admin-edit-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-edit-section h3 {
    color: #4a7c59;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.admin-edit-hint {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.admin-edit-photos {
    display: flex;
    gap: 1rem;
}

.admin-edit-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.admin-edit-photo img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.admin-edit-photo small {
    color: #888;
    font-size: 0.8rem;
}

.admin-edit-tarifs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-edit-section textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: Arial, sans-serif;
    resize: vertical;
    box-sizing: border-box;
}

.admin-edit-section textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15);
}

.admin-edit-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Upload photos */
.admin-edit-photos-upload {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

.admin-edit-photo-bloc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 170px;
}

.admin-edit-photo-preview {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.admin-edit-photo-label {
    font-weight: bold;
    color: #555;
    font-size: 0.85rem;
}

.admin-edit-photo-bloc input[type="file"] {
    font-size: 0.82rem;
    width: 100%;
}

.admin-edit-form {
    max-width: 800px;
    margin: 0 auto;
}


/* ============================================================
   17. RESPONSIVE — Tablette (< 1024px)
============================================================ */

@media (max-width: 1024px) {

    /* Navigation — texte plus petit */
    .header-nav a {
        font-size: 0.85rem;
        padding: 0 0.4rem;
    }

    /* Grilles 3 colonnes → 2 colonnes */
    .chambres-grid,
    .activites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Formulaire réservation — 1 colonne */
    .resa-grid {
        grid-template-columns: 1fr;
    }

    .resa-champ.full {
        grid-column: 1;
    }

    /* Dashboard — 2 colonnes */
    .dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   18. RESPONSIVE — Mobile (< 768px)
============================================================ */

@media (max-width: 768px) {

    /* --- Header --- */
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-top {
        flex-wrap: wrap;
        padding: 0.5rem 0.8rem;
    }

    .header-left {
        flex: 1;
    }

    .header-right {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        padding: 0.3rem 0;
        border-top: 1px solid #e5e7eb;
    }

    /* Barre admin mobile */
    .admin-bar {
        padding: 0.4rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .admin-bar-links {
        gap: 0.7rem;
        font-size: 0.75rem;
    }

    .admin-bar-user {
        position: static;
        transform: none;
        padding-top: 0.3rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    /* Hamburger visible */
    .nav-hamburger {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.6rem;
        cursor: pointer;
        color: white;
        padding: 0.3rem 0.5rem;
    }

    /* Menu caché par défaut, visible quand .ouvert */
    .nav-links {
        display: none !important;
        flex-direction: column;
        width: 100%;
        order: 4;
        background: #2f5d50;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding: 0.5rem 0;
    }

    .nav-links.ouvert {
        display: flex !important;
    }

    .nav-links a {
        padding: 0.7rem 1.5rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem !important;
        white-space: normal;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* --- Footer --- */
    footer,
    .site-footer-bar {
        flex-direction: column;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .footer-links {
        justify-content: center;
    }

    /* --- Accueil carrousel --- */
    .carrousel-media {
        aspect-ratio: 1 / 1;
        max-height: 180px;
    }

    .home-texte h1 {
        font-size: 1.5rem;
    }

    /* --- Mini-calendrier accueil --- */
    .home-cal-grille {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-calendrier {
        padding: 1rem;
        margin: 1rem;
    }

    .home-cal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .home-cal-legende {
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-cal-btn {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.82rem;
        padding: 0.5rem 0.8rem;
        white-space: normal;
        line-height: 1.3;
    }

    /* --- Chambres --- */
    .chambres-grid,
    .activites-grid {
        grid-template-columns: 1fr;
    }

    /* Volet latéral plein écran */
    .volet {
        width: 100%;
        right: -100%;
    }

    .volet-carrousel,
    .volet-carrousel img {
        height: 200px;
    }

    .volet-tarifs-grid,
    .volet-dispo-dates {
        grid-template-columns: 1fr;
    }

    /* --- Disponibilités --- */
    .dispo-container {
        padding: 0 0.5rem;
    }

    .dispo-legende {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    /* FullCalendar mobile */
    .fc .fc-toolbar.fc-header-toolbar {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .fc .fc-toolbar-chunk {
        justify-content: center;
    }

    .fc .fc-toolbar-title {
        font-size: 1rem;
        min-width: 120px;
    }

    .fc .fc-button {
        font-size: 0.78rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    /* --- Réservation --- */
    .resa-container {
        padding: 0 1rem;
        margin: 1rem;
    }

    .resa-grid,
    .volet-dispo-dates {
        grid-template-columns: 1fr;
    }

    .resa-champ.full {
        grid-column: 1;
    }

    /* --- Contact --- */
    .contact-coordonnees {
        flex-direction: column;
        gap: 0.8rem;
    }

    .contact-submit button {
        width: 100%;
    }

    /* --- Pages légales --- */
    .legal-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* --- Admin --- */
    .admin-table {
        font-size: 0.78rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.4rem 0.5rem;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }
}
