/*
Theme Name: dayone
Author: 
Description: Your description goes here
Version: 1.0
Template: kadence

This is the child theme for Kadence theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* Styles principaux */

/* Amélioration de la fluidité du scroll */
html {
    scroll-behavior: auto !important;
}

body {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimisation des transitions */
.hero-section,
.hero-logo,
.hero-title,
.hero-slogan,
.hero-excellence,
.scroll-down-btn,
.glass-card,
.offer-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Accélération matérielle pour les animations */
.hero-section {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.site-main {
    padding-top: 0;
}

/* Menu principal */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 30px;
}

.menu-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-logo-img {
    height: 45px;
    width: auto;
}

.menu-site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    font-family: 'Playfair Display', serif;
}

.menu-right-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-right-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.menu-right-links li a:hover {
    color: #70d5a5;
}

/* Footer */
.site-footer {
    background: #1a1c21;
    padding: 30px 20px;
    border-top: 1px solid rgba(112, 213, 165, 0.2);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.footer-slogan {
    font-size: 0.9rem;
    color: #70d5a5;
}

.footer-email {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.footer-email:hover {
    color: #70d5a5;
}

/* Section 1 - Hero (sans position fixed) */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 130px 20px 40px 20px;
    position: relative;
    z-index: 1;
    background-color: #212329;
    
    /* Transition pour le fade et zoom */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    
    /* État initial visible */
    opacity: 1;
    transform: scale(1);
}

/* Conteneur du logo */
.hero-logo {
    position: relative;
    margin-bottom: 30px;
    display: inline-block;
}

/* Lueur externe pulsante derrière le logo */
.hero-logo-img {
    width: 250px !important;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(112, 213, 165, 0.4)) drop-shadow(0 0 15px rgba(112, 213, 165, 0.2));
    animation: externalGlow 3s ease-in-out infinite;
}

/* Pour le logo personnalisé WordPress */
.hero-section .custom-logo {
    width: 250px !important;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(112, 213, 165, 0.4)) drop-shadow(0 0 15px rgba(112, 213, 165, 0.2));
    animation: externalGlow 3s ease-in-out infinite;
}

/* Animation de pulsation */
@keyframes externalGlow {
    0% {
        filter: drop-shadow(0 0 4px rgba(112, 213, 165, 0.3)) drop-shadow(0 0 8px rgba(112, 213, 165, 0.15));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(112, 213, 165, 0.5)) drop-shadow(0 0 20px rgba(112, 213, 165, 0.25));
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(112, 213, 165, 0.3)) drop-shadow(0 0 8px rgba(112, 213, 165, 0.15));
    }
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin: 20px 0 10px 0;
    font-family: 'Playfair Display', serif;
}

.hero-slogan {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 30px;
	margin-top: 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.hero-excellence {
    font-size: .875rem;
    letter-spacing: 3px;
    color: #d4af37;
    margin: 0px 0 20px 0;
	font-family: 'Manrope', sans-serif;
}

/* Bouton scroll down */
.scroll-down-btn {
    display: inline-block;
    animation: bounce 2s infinite;
    cursor: pointer;
    margin-top: 30px;
    background: transparent;
    border: none;
    padding: 10px 20px;
}

.scroll-down-btn i {
    color: #70d5a5;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.scroll-down-btn span {
    display: block;
    color: #70d5a5;
    font-family: 'PT Serif', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 5px;
}

.scroll-down-btn:hover i {
    transform: translateY(5px);
    color: #8de0b5;
}

.scroll-down-btn:hover span {
    color: #8de0b5;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Section 2 - Image luxe */
.luxury-section {
    position: relative;
    min-height: 100vh;
    background-image: url('https://dayone.mg/wp-content/uploads/2026/04/location-vehicule-madagascar.jpg?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    z-index: 2;
}

.luxury-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33,35,41,0.6), rgba(33,35,41,0.4));
}
#masthead {
	background: rgba(66, 66, 66, 0.25)!important;
    backdrop-filter: blur(15px)!important;
	border-bottom: 1px solid rgba(64,67, 75, 0.9);
    transition: transform 0.2s ease-out;
}
.site-branding .site-title {
  color: #f4f4f4!important;
}

.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px;
    max-width: 700px;
    text-align: center;
    border: 1px solid rgba(255,255, 255, 0.3);
    transition: transform 0.2s ease-out;
}

.glass-card h2 {
    color: white;
    font-size: 2.9rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
	line-height: 46px;
	font-weight: 500;
}

.glass-card p {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-family: 'Manrope', sans-serif;
}
.highlight{
    color: #47d7a6;
}

/* Section 3 - Offres */
.offers-section {
    background: #212329;
    padding: 80px 20px;
    position: relative;
    z-index: 3;
    margin-top: -2px;
    overflow: visible;
}

/* Dégradé gris qui se superpose à l'image de la section 2 */
.offers-section::before {
    content: '';
    position: absolute;
    top: -250px;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, 
                rgba(33, 35, 41, 0) 0%,
                rgba(33, 35, 41, 0.1) 10%,
                rgba(33, 35, 41, 0.25) 20%,
                rgba(33, 35, 41, 0.45) 35%,
                rgba(33, 35, 41, 0.65) 50%,
                rgba(33, 35, 41, 0.85) 65%,
                #212329 80%);
    pointer-events: none;
    z-index: 10;
}

/* Dégradé supplémentaire pour une transition plus douce */
.offers-section::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, 
                rgba(33, 35, 41, 0.2) 0%,
                rgba(33, 35, 41, 0.4) 30%,
                rgba(33, 35, 41, 0.7) 60%,
                rgba(33, 35, 41, 0) 100%);
    pointer-events: none;
    z-index: 10;
}

.offers-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 15;
}

.offers-subtitle {
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 15;
	font-size: .875rem;
    color: #d4af37;
	font-family: 'Manrope', sans-serif;
}

	

.offers-title {
    color: white;
    font-size: 3.6rem;
    margin: 15px 0;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 15;
}

.offers-description {
    color: #b0b0b0;
    max-width: 750px;
    margin: 0 auto 50px;
    font-family: 'Manrope', sans-serif;
    position: relative;
    z-index: 15;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 15;
}

/* Offre Card - Version cliquable avec zoom sur l'image */
.offer-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 450px;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

/* Conteneur de l'image avec zoom progressif */
.offer-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 0;
}

/* Zoom plus prononcé de l'image au survol */
.offer-card:hover .offer-card-image {
    transform: scale(1.12);
}

/* Overlay avec alignement à gauche */
.offer-card-overlay {
    background: linear-gradient(to top, rgba(33,35,41,0.85), rgba(33,35,41,0.5));
    padding: 30px 25px 25px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.offer-card:hover .offer-card-overlay {
    background: linear-gradient(to top, rgba(33,35,41,0.95), rgba(33,35,41,0.7));
}

/* Icône alignée à gauche */
.offer-card-icon {
    background: #70d5a5;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: auto;
    transition: all 0.3s ease;
}

.offer-card-icon i {
    color: #212329;
    font-size: 1.6rem;
}

/* Effet de survol sur l'icône */
.offer-card:hover .offer-card-icon {
    background: #8de0b5;
    transform: scale(1.05);
}

/* Titre aligné à gauche */
.offer-card h3 {
    color: white;
    font-size: 1.5rem;
    margin: 10px 0;
    font-family: 'Playfair Display', serif;
    text-align: left;
}

/* Description alignée à gauche */
.offer-card p {
    color: #d0d0d0;
    line-height: 1.5;
    font-family: 'Manrope', sans-serif;
    text-align: left;
    margin-bottom: 15px;
}

/* Lien Devis - aligné à gauche (le texte ne bouge pas et ne scintille pas) */
.offer-card .devis-link {
    margin-top: 10px;
    color: #70d5a5;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Apparition du lien au survol */
.offer-card:hover .devis-link {
    opacity: 1;
}

/* La flèche seule est animée (scintillement ralenti) */
.offer-card .devis-link .arrow {
    display: inline-block;
    font-size: 1rem;
}

.offer-card:hover .devis-link .arrow {
    animation: arrowShimmer 0.8s ease-in-out infinite;
}

.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a {
  color: #edf2f7!important;
}
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a:hover {
  color: #47d7a6!important;
}

@keyframes arrowShimmer {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(6px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Style du menu glassmorphisme */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(33, 35, 41, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(112, 213, 165, 0.15);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-hidden {
    opacity: 0;
    visibility: hidden;
}

.menu-visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-right-links {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
    }
    
    .hero-excellence {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .hero-logo-img,
    .hero-section .custom-logo {
        width: 180px !important;
    }
    
    .glass-card {
        padding: 30px 20px;
    }
    
    .glass-card h2 {
        font-size: 1.8rem;
    }
    
    .glass-card p {
        font-size: 1rem;
    }
    
    .offers-title {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-left {
        flex-direction: column;
    }
    
    /* Ajustement du dégradé pour mobile */
    .offers-section::before {
        top: -180px;
        height: 220px;
        background: linear-gradient(to bottom, 
                    rgba(33, 35, 41, 0) 0%,
                    rgba(33, 35, 41, 0.2) 15%,
                    rgba(33, 35, 41, 0.45) 30%,
                    rgba(33, 35, 41, 0.7) 50%,
                    rgba(33, 35, 41, 0.9) 65%,
                    #212329 75%);
    }
    
    .offers-section::after {
        top: -80px;
        height: 120px;
    }
    
    /* Ajustements des cartes offres pour mobile */
    .offer-card {
        min-height: 400px;
    }
    
    .offer-card-overlay {
        padding: 25px 20px 20px 20px;
    }
    
    .offer-card-icon {
        width: 45px;
        height: 45px;
    }
    
    .offer-card-icon i {
        font-size: 1.3rem;
    }
    
    .offer-card h3 {
        font-size: 1.3rem;
    }
    
    .offer-card p {
        font-size: 0.9rem;
    }
    
    .offer-card .devis-link {
        font-size: 0.85rem;
    }
}

/* Responsive tablette */
@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-logo-img,
    .hero-section .custom-logo {
        width: 220px !important;
    }
    
    /* Ajustement du dégradé pour tablette */
    .offers-section::before {
        top: -220px;
        height: 260px;
    }
    
    .offers-section::after {
        top: -90px;
        height: 140px;
    }
}

/* Petit écran desktop */
@media (min-width: 1025px) and (max-width: 1280px) {
    .main-navigation,
    .offers-container,
    .footer-container {
        max-width: 1100px;
    }
}

/* Animations supplémentaires */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #212329;
    font-family: 'PT Serif', 'Times New Roman', serif;
    overflow-x: hidden;
}

a, .icon, i, .fa, .fas, .far {
    color: #70d5a5;
    transition: all 0.3s ease;
}

a:hover {
    color: #8de0b5;
}

/* Suppression du titre par défaut de Kadence */
.site-title a, .site-description {
    display: none;
}

/* Variables CSS globales */
:root {
    --dayone-bg: #212329;
    --dayone-emerald: #70d5a5;
    --dayone-glass-bg: rgba(33, 35, 41, 0.2);
    --dayone-glass-border: rgba(112, 213, 165, 0.15);
}