/* ===== VARIABLES GLOBALES ===== */

:root {
    --color-red: #e0001a;
    --color-dark: #222;
    --color-grey: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --max-width: 1100px;
	--header-height-desktop: 120px;
    --header-height-mobile: 80px;
}

/* ===== RESET LIGHT ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    color: var(--color-text);
    background-color: #fafafa;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== LAYOUT DE BASE ===== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* Barre principale : 3 zones (gauche / centre / droite) */
.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Logo + titre */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo img {
    height: 60px;
    width: auto;
}

.header-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-dark);
}

/* Panneau central */
.header-panel {
    height: 70px;
    width: auto;
}

/* Téléphone */
.header-contact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--color-red);
}

.header-phone {
    color: var(--color-red);
    text-decoration: none;
}

.header-phone:hover {
    text-decoration: underline;
}

/* Bouton menu (burger) */
.header-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}

/* NAVIGATION */
.main-nav {
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background-color: var(--color-dark);
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0 1.5rem;
    gap: 1.5rem;
}

.main-nav a {
    display: block;
    padding: 0.8rem 0;
    text-decoration: none;
    color: #f0f0f0;
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--color-red);
}


/* ===== HERO ===== */

/* HERO : zone du camion */
.hero {
    position: relative;
    /* hauteur suffisante pour bien voir l'image */
    min-height: 420px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Image de fond du camion */
.hero-background {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
            to bottom,
            rgba(0,0,0,0.20),
            rgba(0,0,0,0.30)
        ),
        url("img/hero-camion.png");
    background-size: cover;

    /* centre l'image, ni trop haut ni trop bas */
    background-position: center 40%;

    z-index: -1;
}

/* Hero spécifique pour la page Joy's Diner */
.page-joys .hero-background {
    background-image: linear-gradient(
            to bottom,
            rgba(0,0,0,0.20),
            rgba(0,0,0,0.30)
        ),
        url("img/joys-hero.png");
    background-size: cover;
    background-position: center 40%;
}


/* On descend le titre pour qu'il ne soit pas caché par le header */
.hero-content {
    padding: 6rem 1.5rem 3rem;
}


.hero h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin: 0 0 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero p {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: var(--color-red);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
    background: #c30015;
}

/* ===== SECTIONS ===== */

.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: var(--color-grey);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.section-header p {
    margin: 0;
    color: #666;
}

/* ===== GRIDS ===== */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ===== TUILES ACCÈS RAPIDE ===== */

.section-tiles {
    padding-top: 2.2rem;
    padding-bottom: 2.5rem;
}

.tiles-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 1.3rem 1.4rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-soft);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.tile-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #ffffff, #eeeeee);
}

.tile-media {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.tile-media img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tile-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--color-red);
}

.tile-title {
    margin: 0;
    font-size: 1.1rem;
}

.tile-text {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* ===== CARTES ===== */

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.card h3 {
    margin-top: 0;
}

.card-quote {
    position: relative;
    padding-top: 2.2rem;
}

.card-quote::before {
    content: "“";
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    font-size: 2.5rem;
    color: rgba(0,0,0,0.12);
}

.card-author {
    margin-top: 1rem;
    font-weight: 600;
    color: #555;
}

/* ===== JOY'S DINER : CARTES & PRESSE ===== */

/* --- Cartes & menus (les 3 petites cartes jaunes en haut) --- */

.joys-cards {
    justify-items: center; /* centre les cartes dans la grille */
}

.joys-cards .card {
    padding: 0.75rem;
}

.joys-cards .gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
    background: var(--color-white);
}

/* même hauteur pour toutes les cartes menus */
.joys-cards .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* --- "On parle de nous" : cartes sans fond blanc, images cliquables --- */

.joys-press {
    gap: 1.5rem;
}

.joys-press .card {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* toute la carte (image + texte) est cliquable */
.joys-press .press-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* cadre de la photo */
.joys-press .gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* ratio fixe pour que toutes les photos aient la même taille */
.joys-press .gallery-item::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16/9 */
}

/* image qui remplit le cadre sans blanc */
.joys-press .gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* texte "Lire l'article complet" sous la photo */
.joys-press .card p {
    margin: 0.4rem 0 0.1rem;
}

/* Carte Google Maps dans la page contact */
.contact-map .map-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* format 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-note {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #666;
}


/* ===== GALERIE ===== */

.gallery {
    display: grid;
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.gallery-item:hover img {
    transform: scale(1.03);
}


/* ===== SLIDER / DIAPORAMA JOY'S DINER ===== */

.slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* On force un ratio (16/9) pour donner une hauteur au slider */
.slider::before {
    content: "";
    display: block;
    padding-bottom: 75%; /* tu peux essayer 70%, 80%, etc. */
}

.slider-track {
    position: absolute;
    inset: 0;
}

/* Chaque slide occupe tout l'espace du slider */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* on montre toute l'image */
}


/* Slide visible */
.slide.is-active {
    opacity: 1;
}

/* Fallback : si jamais le JS ne tourne pas,
   on montre quand même la première slide */
.js-slider .slide:first-child {
    opacity: 1;
}

/* Boutons de navigation du slider */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev {
    left: 0.75rem;
}

.slider-next {
    right: 0.75rem;
}

.slider-nav:hover {
    background: rgba(0,0,0,0.7);
}

/* ===== TABLEAU TARIFS CHALETS ===== */
.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tarifs-table th,
.tarifs-table td {
    border: 1px solid #e5e5e5;
    padding: 0.6rem 0.9rem;
}

.tarifs-table thead th {
    background-color: #f7f7f7;
    text-align: center;
    font-weight: 600;
}

.tarifs-sous-titre {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.tarifs-table tbody tr:nth-child(even) td {
    background-color: #fafafa;
}

.tarifs-separateur th {
    background-color: #fff4e6;
    text-align: center;
}

.tarifs-petitdej {
    background-color: #f1f8ff;
    text-align: center;
    font-weight: 600;
}

/* Bloc infos sous le tableau */
.tarifs-info {
    margin-top: 1.75rem;
    font-size: 0.95rem;
}

.tarifs-info h3 {
    margin-bottom: 0.75rem;
    color: var(--color-red);
}

.tarifs-info p {
    margin: 0.25rem 0;
}

.tarifs-important {
    color: var(--color-red);
    font-weight: 600;
}

/* CTA sous le tableau */
.tarifs-cta {
    margin-top: 1.75rem;
    text-align: center;
}

.tarifs-cta .btn-primary {
    min-width: 260px;
}

/* Spécifique au tableau du gîte : aligner les prix à droite */
.tarifs-table-gite td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* ===== FORMULAIRE CONTACT ===== */

.contact-form label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    margin-top: 0.25rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-red);
    border-color: var(--color-red);
}

.contact-form button {
    margin-top: 0.5rem;
}

.form-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #777;
}

/* ===== AVIS GOOGLE ===== */

.avis-global {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.avis-global-note {
    text-align: center;
}

.avis-note {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.avis-etoiles {
    font-size: 1.4rem;
    color: #f5a623; /* jaune étoiles */
}

.avis-global-texte p {
    margin: 0.25rem 0;
}

/* Chaque carte remplit la hauteur disponible */
.avis-list .card-quote {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.avis-cta {
    margin-top: 2rem;
    text-align: center;
}

/* Grille des avis Google : toutes les cartes s'étirent pareil */
.avis-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}

/* Texte d'avis tronqué par défaut */
.avis-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;       /* nombre de lignes visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Quand la carte est ouverte, on montre tout */
.card-quote.is-expanded .avis-text {
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Bouton "Lire la suite" */
.avis-more {
    margin-top: 0.75rem;
    align-self: flex-start;
    border: none;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--color-red);
    cursor: pointer;
    text-decoration: underline;
}

/* Optionnel : un peu d'espace avant la signature */
.card-quote .card-author {
    margin-top: 0.5rem;
}

/* ===== FOOTER ===== */

.site-footer {
    background: #111;
    color: #bbb;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

/* ===== LIGHTBOX ===== */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.75);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0;
    z-index: 1;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* Bandeau compact et centré sur mobile */
    .header-bar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.5rem 1rem;
    }

    .header-left,
    .header-center,
    .header-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .header-logo img {
        height: 48px;
    }

    .header-title {
        font-size: 0.85rem;
        text-align: center;
    }

    .header-panel {
        height: 56px;
        margin-top: 0.15rem;
    }

    .header-contact {
        justify-content: center;
        font-size: 0.95rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .header-toggle {
        display: block;
    }

    /* Menu mobile replié */
    .main-nav {
        display: none;
        border-top: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.5rem 1rem 0.8rem;
    }

    .main-nav a {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* Grilles en une colonne */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
	
	.tiles-grid {
	 grid-template-columns: 1fr;
    }
	
	.tile-media img {
     height: 170px; /* un poil plus haut sur mobile */
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== SLIDER / DIAPORAMA JOY'S DINER ===== */
@media (max-width: 768px) {
    .slider {
        max-width: 100%;
    }
}

/* ===== AVIS GOOGLE ===== */
@media (max-width: 768px) {
    .avis-global {
        flex-direction: column;
        align-items: flex-start;
    }
	
	
@media (max-width: 768px) {
    .slider {
        max-width: 100%;
    }

/* ===== TABLEAU TARIFS CHALETS ===== */
    .tarifs-table th,
    .tarifs-table td {
        font-size: 0.9rem;
        padding: 0.5rem 0.6rem;
    }
}
}