/* === Cinzel local (évite le CLS) === */
@font-face {
  font-family: 'CinzelLocal';
  src: url('/static/fonts/cinzel/Cinzel-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;

  /* Calage métriques pour éviter le saut quand la police arrive */
  ascent-override: 86%;
  descent-override: 14%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

@font-face {
  font-family: 'CinzelLocal';
  src: url('/static/fonts/cinzel/Cinzel-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;

  ascent-override: 86%;
  descent-override: 14%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* Empêche les synthèses qui peuvent bouger la mise en page */
html { font-synthesis-weight: none; font-synthesis-style: none; }


/* Variables Globales */
:root {
    --main-color: #39b58a;
    --secondary-color: #2d9e73;
    --danger-color: #d9534f;
    --warning-color: #f0ad4e;
    --light-gray: #f8f8f8; /* Blanc cassé */
    --dark-gray: #333;
    --font-main: 'CinzelLocal', serif;
    --font-alt: 'Roboto', sans-serif;
}

/* Corps de la page */

body {
    font-family: var(--font-main);
    background-color: var(--light-gray);
    background: var(--light-gray); /* fond de base uni */

    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--dark-gray);
    margin: 0;
    padding: 0;
}
h1 {
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color) 85%);
    border-radius: 1.1rem;
    border: none;
    font-size: 2.1rem;
    letter-spacing: 7px;
    text-shadow: 1px 2px 9px #197f5c27;
    font-family: var(--font-main);
    margin-bottom: 2.5rem !important;
    padding: 8px 10px;
}
.main-wrapper {
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 20px auto;
    padding: 20px;
    max-width: 1300px;
}

/* Header */
.navbar {
    background-color: rgba(248, 248, 240, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-gray);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    max-height: 50px;
    border-radius: 5px;
}

.nav-link {
    color: var(--dark-gray);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: var(--main-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-item.active .nav-link {
    background-color: var(--main-color);
    color: #fff;
    font-weight: bold;
}

/* Carousel */
.carousel-item img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out;
}

.carousel-item img:hover {
    transform: scale(1.05);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: rgba(248, 248, 240, 0.9);
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: var(--main-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark-gray);
    font-weight: bold;
}

/* Cartes */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
           /* le reste de ton style reste inchangé */
    animation: fadeInUp 0.7s cubic-bezier(.32,.72,.36,1) both;
    /* Pour éviter que tout s'affiche exactement au même moment */
    animation-delay: var(--fadein-delay, 0s);

}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.menu-card {
    border: 1px solid rgba(57, 181, 138, 0.3);
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
       /* le reste de ton style reste inchangé */
    animation: fadeInUp 0.7s cubic-bezier(.32,.72,.36,1) both;
    /* Pour éviter que tout s'affiche exactement au même moment */
    animation-delay: var(--fadein-delay, 0s);
}

.card.encart {
    border: 2px solid var(--main-color);
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
}
/* --- CARTES PIZZAS SUR-MESURE --- */
.item-card {
    border-radius: 1.8rem;
    border: none;
    box-shadow: 0 2px 18px 0 rgba(41, 120, 86, 0.10), 0 1.5px 4px rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.96);
    margin-bottom: 2.5rem;
    transition: transform 0.16s cubic-bezier(.45,.05,.55,.95), box-shadow 0.18s;
    overflow: hidden;
    border-top: 5px solid var(--main-color);
     /* le reste de ton style reste inchangé */
    animation: fadeInUp 0.7s cubic-bezier(.32,.72,.36,1) both;
    /* Pour éviter que tout s'affiche exactement au même moment */
    animation-delay: var(--fadein-delay, 0s);
}

.item-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 8px 28px 0 rgba(41, 120, 86, 0.17), 0 2px 10px rgba(0,0,0,0.13);
}

.item-card-img {
    border-radius: 1.5rem 0 0 1.5rem;
    box-shadow: 0 2px 12px 0 rgba(41, 120, 86, 0.08);
    min-height: 180px;
    max-height: 300px;
    object-fit: cover;
    background: #f8f8f8;
}

@media (max-width: 767px) {
    .item-card-img {
        border-radius: 1.5rem 1.5rem 0 0;
        min-height: 120px;
        max-height: 160px;
    }
}
/* bandeau pizzas */

.pizza-banner-wrapper {
  overflow: hidden;
  width: 100%;
  background-color: gainsboro;
  border-radius: 16px;
  box-sizing: border-box;
  position: relative;
}


.pizza-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: defile 28s linear infinite;
  will-change: transform;
}
.pizza-banner:hover { animation-play-state: paused; }
.pizza-banner a { display: block; height: 100%; }

.pizza-container {
  position: relative;
  display: inline-block;
}

.pizza-banner img {
  height: 100px;
  width: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  border: 2px solid #fff;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  display: block;
}

.pizza-banner img:hover {
  transform: scale(1.11) rotate(-2deg);
  border-color: #b6411d;
  box-shadow: 0 4px 24px rgba(182,65,29,0.12);
  cursor: pointer;
}

/* Etiquette au survol */
.pizza-label {
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
  position: absolute;
  left: 50%;
  bottom: 110px; /* Plus haut sur l'image (modifie la valeur selon l'effet voulu) */
  transform: translateX(-50%) translateY(8px);
  background: rgba(34, 34, 34, 0.86);
  color: #fff;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 1rem;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.pizza-container:hover .pizza-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@keyframes defile {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.pizza-banner {
  width: max-content;
}


/* Titres et prix bien visibles */
.card-title {
    font-family: var(--font-main);
    font-size: 1.45rem;
    color: var(--secondary-color);
    letter-spacing: 2.5px;
    font-weight: bold;
    margin-bottom: .35rem;
    text-transform: capitalize;
}
.card-text {
    font-size: 1.07rem;
    color: #323;
    margin-bottom: .4rem;
}
.card-text strong {
    color: var(--danger-color);
    font-size: 1.13rem;
    letter-spacing: 1.5px;
    font-family: var(--font-main);
}

/* Boutons "Voir les détails" et "Commander" plus attractifs */
.btn-primary {
    background: var(--main-color);
    border-radius: 1.1rem;
    border: none;
    padding: .45rem 1.3rem;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 1.04rem;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    box-shadow: 0 2px 7px rgba(41, 120, 86, 0.10);
}
.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-success {
    background: var(--secondary-color);
    border-radius: 1.1rem;
    padding: .45rem 1.2rem;
    font-size: 1.08rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(41, 120, 86, 0.11);
}
.btn-success:hover {
    filter: brightness(1.07);
    background: var(--main-color);
    color: #fff;
}

/* Responsive ajusté */
@media (max-width: 767px) {
    .item-card { border-radius: 1.1rem; }
    .card-body { padding: 1.2rem 0.7rem 1rem 0.7rem; }
    .card-title { font-size: 1.12rem; }
    .btn-primary, .btn-success { font-size: .99rem; padding: .37rem 1rem; }
}

/* Images */
.card-img-top,
.menu-image,
.detail-image,
.category-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.menu-image,
.card-img-top {
    height: 300px;
}

.about-img-top {
    max-height: 1484px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.category-image {
    height: 400px;
}

.detail-image {
    max-width: 600px;
    height: 800px;
    margin: 0 auto;
    border-radius: 10px;
}

/* Boutons */
.btn {
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--main-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* Footer */
footer {
    background-color: var(--main-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-image, .carousel-image, .category-image {
        height: auto;
    }

    .detail-image {
        max-width: 100%;
    }
}

.social-icons a img {
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}
.encart.full-width {
    width: 100%;
}

.encart.half-width {
    width: 48%;
    display: inline-block;
}

#encarts-title {
    background-color:#198754;
    padding: 5px;
    border-radius: 10px;
    border-color: #ffffff;
    border-bottom: groove;
    text-shadow: -2px -1px black;
    color: white;
}

#caption{
    background-color: white;
    opacity: 0.8;
    color: #000;
    border-radius: 10px;
    text-align: center;
    padding: 5px;
}

h5{
font-size: 1.75rem;
}

p {
    margin-top: 15px;
    margin-bottom: 1.25rem;
}
.my-btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    flex-direction: column; /* pile en colonne */
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
}
/* ==== ANIMATION FOND VIVANT + BRISE MARQUÉE ==== */

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background: url('/static/images/tropical-leaves-bg.webp') no-repeat center center;
    background-size: cover;
    will-change: transform;
    z-index: -10;
    pointer-events: none;
}

/* Couches animées */
.layer1 {
    animation: calm1 12s ease-in-out infinite alternate, gust1 40s ease-in-out infinite;
    opacity: 0.6;
    z-index: -3;
}

.layer2 {
    animation: calm2 18s ease-in-out infinite alternate, gust2 60s ease-in-out infinite;
    opacity: 0.4;
    z-index: -4;
}

.layer3 {
    animation: calm3 24s ease-in-out infinite alternate, gust3 80s ease-in-out infinite;
    opacity: 0.3;
    z-index: -5;
}

/* 🌿 Mouvements calmes mais bien visibles */
@keyframes calm1 {
    0% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    50% { transform: translate(5px, -3px) scale(1.01) rotate(0.3deg); }
    100% { transform: translate(-4px, 2px) scale(1.008) rotate(-0.2deg); }
}

@keyframes calm2 {
    0% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    50% { transform: translate(-3px, 3px) scale(1.005) rotate(0.2deg); }
    100% { transform: translate(2px, -2px) scale(1.006) rotate(-0.1deg); }
}

@keyframes calm3 {
    0% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    50% { transform: translate(2px, -1px) scale(1.003) rotate(0.1deg); }
    100% { transform: translate(-1px, 1px) scale(1.002) rotate(-0.05deg); }
}

/* 💨 BRISE VISIBLE toutes les 40-80 secondes */
@keyframes gust1 {
    0%, 97%, 100% { transform: none; }
    48% { transform: translate(18px, -10px) scale(1.04) rotate(1.5deg); }
    50% { transform: translate(-15px, 6px) scale(1.045) rotate(-1.3deg); }
    52% { transform: translate(10px, -4px) scale(1.03) rotate(0.8deg); }
}

@keyframes gust2 {
    0%, 98%, 100% { transform: none; }
    49% { transform: translate(-12px, 8px) scale(1.03) rotate(-1.2deg); }
    51% { transform: translate(10px, -6px) scale(1.035) rotate(1deg); }
}

@keyframes gust3 {
    0%, 99%, 100% { transform: none; }
    49.5% { transform: translate(6px, -3px) scale(1.02) rotate(0.5deg); }
    50.5% { transform: translate(-5px, 2px) scale(1.018) rotate(-0.4deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.encart h3 {
  font-family: var(--font-main), serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--main-color);
  text-shadow: -2px -1px 3px rgba(0,0,0,0.07);
  background: linear-gradient(90deg, #19875411 50%, transparent 100%);
  border-radius: 7px;
  letter-spacing: 0.12em;
  padding: 8px 0 6px 0;
  text-transform: uppercase;
  text-align: center;
  margin-top: 1.2em !important;
  margin-bottom: .7em;
  border-bottom: 2px groove #e0e0e0;
}
.encart-promo h3 {
  font-family: var(--font-main), serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--main-color);
  text-shadow: -2px -1px 3px rgba(0,0,0,0.09);
  background: linear-gradient(90deg, #f0ad4e20 60%, transparent 100%);
  border-radius: 7px;
  letter-spacing: 0.10em;
  padding: 8px 0 6px 0;
  text-transform: uppercase;
  text-align: center;
  margin-top: 1.1em !important;
  margin-bottom: .7em;
  border-bottom: 2px groove #ffc10744;
}
@media (max-width: 991px) {
  .encart-promo .col-md-4 {
    margin-bottom: 1.5em;
  }
}
.toast-cart-img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 1px 6px #0002;
}
.item-inactive {
    filter: grayscale(1) brightness(0.92);
    opacity: 0.65;
}
.img-inactive {
    filter: grayscale(1) brightness(0.85);
    opacity: 0.7;
}
.disabled,
[aria-disabled="true"] {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

 
.indispo-bandeau {
    position: absolute;
    top: 18px;
    left: -48px;
    background: #b71c1c;
    color: #fff;
    padding: 8px 56px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transform: rotate(-24deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    letter-spacing: 1px;
    z-index: 10;
    border-radius: 6px;
    opacity: 0.95;
    text-shadow: 1px 1px 3px #3338;
    pointer-events: none;
}
 .indispo-bandeau2 {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(90deg, #b71c1c 60%, #f44336 100%);
    color: #fff;
    padding: 6px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.14);
    z-index: 10;
    opacity: 0.97;
    pointer-events: none;
    text-shadow: 1px 1px 3px #3336;
}
.bg-light-subtle {
  background-color: #f8f9fa !important;
  opacity: 0.8;
}
/* Réserve l'espace avant chargement */
.carousel-item { aspect-ratio: 1260 / 500; }
.carousel-item img { width: 100%; height: auto; display: block; }
/* Réserve l'espace des médias pour éviter les sauts (CLS) */
img, iframe { display:block; }

/* Carrousel : hauteur réservée + ratio constant */
.carousel-image {
  aspect-ratio: 1260 / 500;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .carousel-image { aspect-ratio: 1024 / 406; }
}
@media (max-width: 768px) {
  .carousel-image { aspect-ratio: 768 / 305; }
}
@media (max-width: 576px) {
  .carousel-image { aspect-ratio: 480 / 190; }
}

/* Encarts : réserve de place (portrait) */
.card-img-top.encart-thumb {
  aspect-ratio: 3 / 4;   /* 300x400 */
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 300px; /* garde ton design */
}

/* Bandeau "planning du jour" : évite le reflow du titre */
.card .card-title { margin: 0; }
.brand-title{font-family:'CinzelLocal',serif;font-size:1.3rem}

.navbar .dropdown-menu { margin-top: .4rem; border-radius: .75rem; }
@media (hover:hover) and (pointer:fine) {
  .dropdown-hover:hover > .dropdown-menu { display: block; }
}

 
/* La navbar au-dessus de tout */
header.navbar, .navbar { z-index: 1055 !important; }

/* Stabilise tous les dropdowns “hover” */
@media (min-width: 992px) {
  .navbar .dropdown-hover .dropdown-menu {
    margin-top: 0; /* évite le trou */
  }
  /* Pont anti-trou : augmente si besoin (8→12px) */
  .navbar .dropdown-hover .dropdown-menu::before{
    content:""; position:absolute; left:0; right:0; top:-12px; height:12px;
  }
}


.tripadvisor-logo {
  height: 40px;
  width: auto;
  display: none;
}

.light-footer .tripadvisor-logo.light {
  display: inline-block;
}

.dark-footer .tripadvisor-logo.dark {
  display: inline-block;
}



:root {
  --main-color: #B6411D;   /* Rouge tomate */
  --secondary-color: #39B58A; /* Vert basilic */
  --accent-color: #D9A441; /* Doré */
  --bg-light: #FDF5E6; /* Beige sable */
  --dark: #2B2B2B;
  
 
}

/* === Global === */
html { scroll-behavior: smooth; }
body {
 
  color: var(--dark);
  margin: 0; padding: 0;
}



/* === Carousel === */
.carousel-item img {
  width: 100%; height: auto;
  object-fit: cover;
  border-radius: 10px;
  filter: brightness(0.95);
  transition: transform .6s ease;
}
.carousel-item img:hover { transform: scale(1.04); }


/* === Cards === */
.card {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}
.card-title {
  font-family: var(--font-main);
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: .5rem;
}
.card-text { font-size: 1.05rem; color: #444; }

/* Encarts façon polaroid */
.card.encart img {
  border: 8px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: rotate(-1deg);
  transition: transform .2s ease;
}
.card.encart img:hover { transform: rotate(1deg) scale(1.03); }

/* === Buttons style bistrot === */
.btn {
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 1.5rem;
  padding: .5rem 1.3rem;
  letter-spacing: 1px;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: var(--main-color);
  transform: translateY(-2px) scale(1.05);
}
.btn-success {
  background: var(--secondary-color);
  color: #fff;
}
.btn-success:hover {
  background: var(--main-color);
  color: #fff;
}

/* === Planning du jour === */
.card-header {
  background: var(--dark);
  color: var(--accent-color);
  font-family: var(--font-main);
  text-shadow: 0 0 6px rgba(217,164,65,0.8);
}
.card-body ul li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* === Footer === */
footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 20px;
}
footer a {
  color: var(--accent-color);
  font-weight: 600;
}
footer a:hover { color: var(--secondary-color); }

/* === Responsive === */
@media (max-width: 768px) {
  .navbar-brand { font-size: 1.2rem; }
  .btn { font-size: .9rem; padding: .4rem 1rem; }
  .card-title { font-size: 1.1rem; }
}
.video-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: -100; /* derrière tout */
}
.video-background video {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45); /* filtre sombre pour lisibilité */
}
