/* =========================================================
   34 TERRASSEMENT - Feuille de style principale
   Style optimisé : 1 bloc = 1 ligne
   ========================================================= */

@font-face { font-family: 'Skranji'; src: url('../Skranji-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; color: #7D3200; font-family: Helvetica, Arial, sans-serif; font-size: 20px; background-color: #FFF; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: #3D272A; text-decoration: none; }
a:hover { color: #000; }
.section { margin-bottom: 30px; }

/* TYPOGRAPHIE */
h1 { font-size: 40px; padding: 0; margin: 50px 0; text-align: left; font-family: 'Skranji', Arial, sans-serif; }
h2 { font-size: 30px; }
h3 { font-size: 26px; }
.Skranji { font-size: 26px; font-family: 'Skranji', Arial, sans-serif; }
.centre { text-align: center; margin-bottom: 40px; }
.alignright { text-align: right; }
.pad30 { padding: 30px; }
.titreligne { width: 100%; height: 2px; background-color: #DF0E0F; }

/* HEADER FIXE */
.terrassement { position: fixed; width: 100%; left: 0; height: 130px; z-index: 10000; background-color: #FFF; box-shadow: 8px 8px 12px #aaa; border-bottom: 2px solid #E40D12; }
.leftc { position: fixed; left: 0; width: 200px; top: 0; }
.rightc { position: fixed; right: 0; padding: 43px 52px; top: 0; }
.numtel { font-family: 'Skranji', Arial, sans-serif; font-size: 24px; font-weight: bold; }
.centerc { background-color: #f0f0f0; text-align: center; }
.imgmenu { margin-left: 100px; }

/* MENU PRINCIPAL */
.navbar { width: 100%; background-color: #FFF; }
.nav-list { list-style: none; display: flex; justify-content: center; align-items: center; width: 100%; margin: 0; padding: 45px 0 10px 0; }
.nav-list li { padding: 5px 20px; }
.nav-list a { color: #7D3200; font-size: 18px; }
.nav-list a:hover { color: #E40D0E; }
.itemactif { color: #F15A01; font-weight: bold; }

/* MENU MOBILE - Hamburger animé en croix */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; margin: 15px; padding: 8px; background: transparent; border: none; }
.bar { height: 3px; width: 25px; background-color: #000; margin: 4px 0; transition: all 0.3s ease; border-radius: 2px; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* SOUS-MENU */
.smenus { width: 100%; text-align: center; display: block; overflow: hidden; background-color: rgba(125,50,0,0.2); font-size: 18px; }
.smenusdiv { display: inline-block; padding: 15px; margin: 0; color: #7D3200; transition: all .5s; font-size: 18px; }
.smenusdivactif { display: inline-block; padding: 15px 20px; margin: 0; color: #FFF; background-color: rgba(125,50,0,0.4); font-size: 18px; }
.smenusdiv:hover, .smenusdivactif:hover { background-color: rgba(255,249,245,0.4); color: #E40D0E; transition: all .5s; }

/* BANDEAU ICÔNES */
.iconescont { width: 100%; background-color: #161E2C; text-align: center; }
.icones { width: 80%; margin: 0 auto; display: table; table-layout: fixed; border-collapse: separate; }
.icone { display: table-cell; position: relative; vertical-align: middle; padding: 10px; transition: transform .35s ease, filter .35s ease; }
.icone img { display: inline-block; max-width: 100%; height: auto; animation: float 3s ease-in-out infinite; transition: transform .35s ease, filter .35s ease; }
.icone:hover img { transform: scale(1.15) rotate(-2deg); filter: drop-shadow(0 8px 18px rgba(255,102,0,0.4)); }
.icone:not(:last-child)::after { content: ""; position: absolute; top: 22%; right: 0; width: 1px; height: 56%; background: rgba(255,255,255,0.2); }
.icone:nth-child(2) img { animation-delay: 0.3s; }
.icone:nth-child(3) img { animation-delay: 0.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* SLIDER */
.slider1 { position: relative; width: 100%; overflow: hidden; z-index: 1; background: #000; }
.rslides { position: relative; list-style: none; margin: 0; padding: 0; width: 100%; min-height: 220px; }
.rslides li { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s ease; pointer-events: none; }
.rslides li.active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.slidebackground { display: block; width: 100%; height: clamp(240px, 42vw, 620px); object-fit: cover; }
.slider-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35)); z-index: 2; pointer-events: none; }
.text-container { position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 100%; padding: 0 24px; text-align: center; font-family: 'Skranji', Arial, sans-serif; font-size: clamp(24px, 5vw, 60px); line-height: 1.15; color: #fff; z-index: 3; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: none; border-radius: 50%; background: rgba(255,255,255,0.85); color: #333; font-size: 24px; cursor: pointer; z-index: 4; transition: transform .2s ease, background .2s ease; }
.slider-arrow:hover { transform: translateY(-50%) scale(1.05); background: #fff; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 4; }
.slider-dot { width: 12px; height: 12px; border: none; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.slider-dot.active { background: #fff; transform: scale(1.15); }
.line { opacity: 0; transform: translateY(30px); animation-fill-mode: both; }
.rslides li.active .line1 { animation: slideUp 1s ease forwards; }
.rslides li.active .line2 { animation: slideUp 1s ease forwards; animation-delay: 0.4s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* CONTENU PRINCIPAL */
.paysagisteterrassement { max-width: 1400px; margin: 50px auto; font-size: 18px; padding: 40px; text-align: justify; border-radius: 15px; background-color: #E0E0E0; }
.calle { width: auto; height: 128px; }

/* GALERIE PHOTOS */
.photo-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 50px 0; }
.photo-container > div { flex: 0 0 auto; }
.imgpaysagiste { width: 100%; height: auto; display: block; }

/* BOUTON PDF */
.btnpdf { display: inline-block; padding: 12px 24px; background-color: #A01818; color: #FFF; border-radius: 4px; transition: all .3s; }
.btnpdf:hover { background-color: #E40D12; color: #FFF; transform: scale(1.05); }

/* SECTION CONTACT BAS */
.paysagiste { display: flex; align-items: center; justify-content: space-between; width: 100%; background-color: #FFF; margin: 0; padding: 0; }
.paysagiste .tr { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.paysagiste .gauche { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; background-color: #FFF; }
.paysagiste .droite { flex: 0 0 auto; margin: 0; text-align: right; }
.elagage { display: block; width: 100%; max-width: 600px; height: auto; margin-right: 40px; }
.paysagiste_button { max-width: 250px; color: #FFF; padding: 8px 15px; background-color: #E35202; margin: 25px auto; display: block; border-radius: 4px; transition: all .5s; cursor: pointer; text-align: center; }
.paysagiste_button:hover { transition: all .5s; transform: scale(1.05); background-color: #FF5C5C; color: #000; }

/* FOOTER */
.basliens { background: #2B3238; color: #FFF; padding: 40px 20px; }
.bascontainer { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 380px 1fr; align-items: center; column-gap: 120px; }
.basgauche { display: flex; justify-content: center; align-items: center; }
.basgauche img { max-width: 260px; width: 100%; height: auto; display: block; }
.basdroit { display: flex; justify-content: center; align-items: center; }
.contenu { width: 100%; max-width: 420px; text-align: center; font-style: normal; }
.basdroit p { margin: 0 0 18px 0; }
.basdroit p:last-child { margin-bottom: 0; }
.tel-link { color: #FFF !important;  }
.tel-link:hover { color: #E35202; }
.basnoir { background: #000; text-align: center; padding: 15px 0; }
.linkbas { color: #999; margin: 0 8px; transition: color .3s; }
.linkbas:hover { color: #FFF; }

/* RETOUR EN HAUT */
.scrollToTopBtn { position: fixed; bottom: 20px; right: 20px; background: #A01818; color: white; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 24px; cursor: pointer; display: none; z-index: 9999; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: all .3s; }
.scrollToTopBtn:hover { background: #E40D12; transform: scale(1.1); }
.scrollToTopBtn.show { display: block; }

/* ANIMATIONS REVEAL */
h1, h2, .reveal-left, .reveal-right, .reveal-up, .reveal-down { opacity: 0; transition: opacity .6s ease-out, transform .6s ease-out; will-change: opacity, transform; }
h1.reveal { transform: translateX(90px); }
h2.reveal { transform: translateX(50px); }
h1.reveal.visible, h2.reveal.visible { opacity: 1; transform: translateX(0); }
.reveal-left { transform: translateX(-50px); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { transform: translateX(50px); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-up { transform: translateY(50px); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-down { transform: translateY(-50px); }
.reveal-down.visible { opacity: 1; transform: translateY(0); }
.visible { opacity: 1; transform: none; }

/* COOKIE BANNER */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #2B3238; color: #FFF; padding: 1em; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 16px; z-index: 10000; box-shadow: 0 -2px 12px rgba(0,0,0,0.3); }
#cookie-banner p { margin: 0; padding: 0 1em 0 0; flex: 1; min-width: 250px; }
#cookie-banner a { color: #FFB380; text-decoration: underline; }
#cookie-banner button { margin-left: 10px; padding: 8px 16px; cursor: pointer; color: #FFF; border: none; border-radius: 4px; font-size: 16px; transition: opacity .3s; }
#cookie-banner button:hover { opacity: 0.85; }
#accept-cookies { background-color: #2E7D32; }
#reject-cookies { background-color: #A01818; }

/* RESPONSIVE MOBILE */
@media only screen and (max-width: 768px) {
    .terrassement { position: relative; height: 60px; }
    .navbar { position: relative; z-index: 10002; }
    .nav-list { display: none; padding: 0; flex-direction: column; position: absolute; top: 30px; left: 0; width: 100%; background: #FFF; z-index: 10003; box-shadow: 0 8px 12px rgba(0,0,0,0.15); }
    .nav-list li { padding: 0; width: 100%; }
    .nav-list li a { display: block; padding: 12px; width: 100%; }
    .nav-list li a:hover, .nav-list li a:active { background-color: rgba(255,249,245,0.4); }
    .nav-list.active { display: flex; }
    .menu-toggle { display: flex; position: relative; z-index: 10004; }
    .slider1 { position: relative; z-index: 1; }
    .rightc { display: none; }
    .text-container { font-size: 30px; }
    .paysagiste .droite { display: none; }
    .paysagiste .gauche { width: 100%; padding: 0; }
    .calle, .leftc { display: none; }
    .basliens { padding: 30px 20px; }
    .bascontainer { grid-template-columns: 1fr; row-gap: 30px; }
    .basgauche img { max-width: 220px; }
    .basdroit { justify-content: center; }
    .contenu { max-width: 100%; }
    .photo-container { flex-direction: column; align-items: center; }
    .imgpaysagiste, .elagage { width: 100%; max-width: 100%; margin: 0; }
    .paysagisteterrassement { padding: 20px; margin: 30px 10px; }
    h1 { font-size: 28px; margin: 30px 0; }
    h2 { font-size: 22px; }
    .scrollToTopBtn { bottom: 80px; right: 10px; width: 40px; height: 40px; font-size: 20px; }
}

/* ACCESSIBILITÉ - Préfère animations réduites */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal-left, .reveal-right, .reveal-up, .reveal-down, h1, h2 { opacity: 1 !important; transform: none !important; }
    .icone img { animation: none; }
}