/* =============================================
   Daily Food - Styles personnalisés
   ============================================= */

/* Défilement fluide */
html {
    scroll-behavior: smooth;
}

/* Fond à motifs hero et contact */
.bg-pattern {
    background-color: #F5F0EB;
    background-image: url('../images/hero-pattern.png');
    background-size: 1200px auto;
    background-position: center;
    background-repeat: repeat;
}

/* Grille de photos en mosaïque */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    max-width: 420px;
}

.photo-grid .photo-item:first-child {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.photo-grid .photo-item:nth-child(2) {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    align-self: end;
}

.photo-grid .photo-item:nth-child(3) {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
    justify-self: center;
    max-width: 70%;
}

/* Animation d'apparition progressive au défilement */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de survol des cartes marques */
.brand-card {
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

/* Focus des champs de formulaire */
.form-input:focus {
    outline: none;
    border-color: #D4A853;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2);
}

/* Animation du menu mobile */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 300px;
}

/* Style des guillemets */
.quote-icon {
    font-size: 1.5rem;
    color: #D4A853;
    font-family: 'Playfair Display', serif;
}

/* Ajustements responsive */
@media (max-width: 768px) {
    .photo-grid {
        max-width: 100%;
    }

    .photo-grid .photo-item:nth-child(3) {
        max-width: 100%;
    }
}

/* Liens de contact */
.contact-link {
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #D4A853;
}

/* Effet de survol du bouton */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.3);
}

/* Bandes défilantes du hero */
.hero-band {
    width: 200%;
    height: 100%;
    background-image: url('../images/hero-pattern.png');
    background-size: 1200px auto;
    background-repeat: repeat;
}

.hero-band-left {
    animation: scroll-left 60s linear infinite;
}

.hero-band-right {
    animation: scroll-right 60s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Cercle hero qui s'agrandit */
#hero-circle {
    will-change: width, height;
}

/* Indicateur de défilement */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Notification toast */
.toast-box {
    animation: toast-in 0.4s ease-out, toast-out 0.4s ease-in 4s forwards;
}

@keyframes toast-in {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes toast-out {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* Logo Conexel en pied de page : bascule estompé → pleine couleur au survol */
.conexel-credit:hover .conexel-faded {
    opacity: 0;
}

.conexel-credit:hover .conexel-color {
    opacity: 1;
}
