/* ============================================================
   MON PRODUCTEUR -- Section Styles
   ============================================================ */

/* Grands titres en police « display » (script de marque, ex. Kaushan Script),
   comme l'ancien site + le logo. La nav, les boutons, les cartes et les
   formulaires gardent la police d'interface (--font-heading, lisible). */
h1, h2,
.block-slider__title,
.block-cta__title {
    font-family: var(--font-display, var(--font-heading));
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.15;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: var(--color-text);
    color: var(--color-bg);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg img,
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Radial mask that follows the cursor.
   --mx / --my are updated in JS as mouse moves. Default = center.
   The spotlight is a dark layer with a transparent "hole" over the cursor,
   so the video appears brighter around the mouse and darker everywhere else. */
.hero__spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 22%,
        rgba(0, 0, 0, 0.82) 55%,
        rgba(0, 0, 0, 0.92) 100%
    );
    transition: background 120ms linear;
}

@media (hover: none), (pointer: coarse) {
    /* No mouse/trackpad on touch devices, so the cursor-follow halo can't
       animate and just reads as a dead vignette. Drop the radial "halo" and
       keep a flat, even tint purely for text legibility over the video. */
    .hero__spotlight {
        background: rgba(0, 0, 0, 0.42);
        transition: none;
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: var(--space-lg);
}

.hero__logo {
    width: 280px;
    max-width: 60vw;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
    filter: brightness(0) invert(1);
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
    max-width: 500px;
    margin-inline: auto;
    line-height: 1.5;
    /* Hero toujours sur fond sombre → texte clair fixe (indépendant du thème) */
    color: #fff;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: #fff;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    text-decoration: none;
}

.hero__scroll:hover {
    opacity: 1;
    color: #fff;
}

.hero__scroll-text {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background-color: currentColor;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50%      { transform: scaleY(0.5); opacity: 1; }
}

/* ----------------------------------------------------------
   Concept
   ---------------------------------------------------------- */
.concept {
    background-color: var(--color-bg);
}

.section__intro {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.section__intro p {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-muted);
}

.concept__highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    text-align: center;
}

.concept__highlight {
    padding: var(--space-lg);
}

.concept__highlight-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.concept__highlight h3 {
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.concept__highlight p {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .concept__highlights {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------
   Menu
   ---------------------------------------------------------- */
.menu-section {
    background-color: var(--color-surface);
}

.menu-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.menu-section__item {
    text-align: center;
    padding: var(--space-lg);
}

.menu-section__item h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.menu-section__item p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    font-style: italic;
}

.menu-section__cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ----------------------------------------------------------
   Boutique
   ---------------------------------------------------------- */
.boutique {
    background-color: var(--color-bg);
}

.boutique__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* ----------------------------------------------------------
   Ambiance
   ---------------------------------------------------------- */
.ambiance {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.ambiance .section__label {
    color: var(--color-accent);
}

.ambiance h2 {
    color: var(--color-bg);
}

/* Fond sombre → l'intro doit rester lisible (sinon hérite de --color-text foncé) */
.ambiance .section__intro p,
.ambiance .section__intro p:first-of-type {
    color: var(--color-bg);
}

.ambiance__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.ambiance__photo {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.ambiance__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.ambiance__photo:hover img {
    transform: scale(1.05);
}

/* Feature photo spans 2 columns */
.ambiance__photo--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

@media (max-width: 768px) {
    .ambiance__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .ambiance__photo--wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .ambiance__gallery {
        grid-template-columns: 1fr;
    }

    .ambiance__photo--wide {
        grid-column: span 1;
        aspect-ratio: 16 / 9;
    }
}

/* ----------------------------------------------------------
   Info (Opening Hours & Location)
   ---------------------------------------------------------- */
.info {
    background-color: var(--color-surface);
}

.info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.info__hours-table {
    width: 100%;
    border-collapse: collapse;
}

.info__hours-table tr {
    border-bottom: 1px solid var(--color-border);
}

.info__hours-table td {
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
}

.info__hours-table td:first-child {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--text-xs);
}

.info__hours-table td:last-child {
    text-align: right;
    color: var(--color-muted);
}

.info__hours-table .is-closed td:last-child {
    color: var(--color-accent);
}

.info__location {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info__address {
    font-size: var(--text-lg);
    line-height: 1.6;
}

.info__map {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-border);
}

.info__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .info__grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------
   Contact
   ---------------------------------------------------------- */
.contact {
    background-color: var(--color-bg);
    text-align: center;
}

.contact__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.contact__item {
    font-size: var(--text-lg);
}

.contact__item a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.contact__item a:hover {
    color: var(--color-accent);
}

.contact__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.contact__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.contact__social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.contact__social-link svg {
    width: 20px;
    height: 20px;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding-top: var(--space-2xl, 4rem);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.site-footer__logo {
    height: 48px;
    width: auto;
    margin-bottom: var(--space-md);
}

.site-footer__tagline {
    font-size: var(--text-sm);
    line-height: 1.6;
    opacity: 0.7;
    max-width: 34ch;
}

.site-footer__title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
    margin-bottom: var(--space-md);
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: var(--text-sm);
}

.site-footer a {
    color: var(--color-bg);
    opacity: 0.85;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.site-footer a:hover {
    opacity: 1;
    color: var(--color-accent-dark, #9CCB3E);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-2xl, 4rem);
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--text-xs);
    opacity: 0.7;
}

.site-footer__langs a { margin: 0 0.15em; }

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ----------------------------------------------------------
   Section générique (sections créées depuis l'admin)
   ---------------------------------------------------------- */
.section--generic .section__generic-body > * + * {
    margin-top: var(--space-md);
}

/* ----------------------------------------------------------
   Slider (carrousel plein largeur) — bloc « slider »
   ---------------------------------------------------------- */
.block-slider {
    position: relative;
    /* Pleine largeur, même à l'intérieur d'un conteneur (« full-bleed »). */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-size: cover;
    background-position: center;
    background-color: var(--color-text);
    color: #fff;
    overflow: hidden;
}

.block-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        rgba(15, 18, 11, var(--slider-overlay, 0.45)) 0%,
        rgba(15, 18, 11, calc(var(--slider-overlay, 0.45) * 0.45)) 60%,
        rgba(15, 18, 11, calc(var(--slider-overlay, 0.45) * 0.15)) 100%);
    z-index: 0;
}

.block-slider__track {
    position: relative;
    z-index: 1;
    min-height: clamp(440px, 72vh, 640px);
    display: grid;
}

.block-slider__slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
    padding-block: var(--space-2xl, 4rem);
}

.block-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.block-slider__inner {
    max-width: 720px;
}

.block-slider__title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.block-slider__text {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    margin-top: var(--space-md);
    max-width: 46ch;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.block-slider__btn { margin-top: var(--space-lg); }

.block-slider__dots {
    position: absolute;
    bottom: var(--space-lg);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    z-index: 2;
}

.block-slider__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.block-slider__dot.is-active { background: #fff; transform: scale(1.15); }

/* En mobile : position du fond réglable (défaut = gauche, la zone utile de la photo). */
@media (max-width: 768px) {
    .block-slider { background-position: var(--slider-pos-mobile, left center) !important; }
}

/* Une section qui ne contient qu'un slider : pas de padding (le slider gère tout). */
.section--hero-slider {
    padding-block: 0 !important;
}

/* ----------------------------------------------------------
   Carrousel de témoignages (bloc « testimonials »)
   ---------------------------------------------------------- */
.block-carousel {
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}
.block-carousel__track { display: grid; }
.block-carousel__item {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}
.block-carousel__item.is-active { opacity: 1; visibility: visible; }
.block-carousel__item blockquote {
    margin: 0;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    line-height: 1.55;
    font-style: italic;
    color: var(--color-text);
    quotes: "«\00a0" "\00a0»";
}
.block-carousel__item blockquote::before { content: open-quote; color: var(--color-accent); }
.block-carousel__item blockquote::after { content: close-quote; color: var(--color-accent); }
.block-carousel__item figcaption {
    margin-top: var(--space-md);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
}
.block-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-lg);
}
.block-carousel__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    background: transparent;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.block-carousel__dot.is-active { background: var(--color-accent); }

/* ----------------------------------------------------------
   Fond photo de section (sections.bg_image) — cover + overlay
   ---------------------------------------------------------- */
.section--bg {
    background-size: cover;
    background-position: center;
    position: relative;
}
.section--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    opacity: 0.82;
    z-index: 0;
}
/* Tous les enfants directs (en-tête + lignes) passent au-dessus de l'overlay. */
.section--bg > * { position: relative; z-index: 1; }

/* Fonctionnalités : pastille verte (PNG blancs), à cheval sur le bord haut de la carte. */
#fonctions .block-card {
    overflow: visible;
    margin-top: 44px; /* place pour la moitié haute de la pastille qui déborde */
}
#fonctions .block-card__image {
    width: 88px;
    height: 88px;
    margin: -44px auto var(--space-md); /* -44 = moitié de la pastille au-dessus de la carte */
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
#fonctions .block-card__image img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Badges d'installation de l'app : 3 colonnes centrées. */
.app-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}
.app-badges a { display: inline-flex; }
.app-badges img { height: 56px; width: auto; }


/* ----------------------------------------------------------
   Lignes & grille de colonnes (sections génériques par lignes)
   Les ratios `fr` d'une ligne sont posés en inline via la propriété perso
   --cols (par le gabarit générique). grid-template-columns vit ICI dans la
   feuille de style → les media queries le surchargent SANS !important :
   le responsive (breakpoints + redistribution fluide) est piloté en CSS.
   ---------------------------------------------------------- */
.section-row + .section-row { margin-top: var(--space-lg); }
.section-row__inner { width: 100%; }   /* width_mode = 'full' : pleine largeur écran */

.section-cols {
    display: grid;
    grid-template-columns: var(--cols, 1fr);
    gap: var(--space-lg);
    align-items: start;
}
.section-col { min-width: 0; }

/* Tablette : redistribution FLUIDE — les colonnes se réorganisent selon la place
   disponible (auto-fit), au lieu de conserver des ratios rigides. */
@media (max-width: 900px) {
    .section-cols {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }
}

/* Mobile : une seule colonne, avec inversion d'ordre optionnelle (mobile_reverse). */
@media (max-width: 560px) {
    .section-cols { grid-template-columns: 1fr; }
    .section-cols.section-row--mobile-reverse {
        display: flex;
        flex-direction: column-reverse;
    }
}
