:root {
    --green: #2F6130;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: white;
}


/* HEADER */

/* Animation fade-in + slide-up */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes d'apparition progressive */
.fade-in-1,
.fade-in-2,
.fade-in-3 {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out forwards;
}

/* Ordre d’apparition */
.fade-in-1 {
    animation-delay: 0.2s;
}

.fade-in-2 {
    animation-delay: 0.8s;
}

.fade-in-3 {
    animation-delay: 1.4s;
}


.top-header {
    background: white;
    padding: 20px 0;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
}

/* telephone */
.phone-box {
    font-weight: 800; 
    font-size: 15px;
    color: var(--green);
    border: 2px solid var(--green);
    padding: 8px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-icon {
    font-size: 15px;
}

/* HERO SECTION */

.hero {
    text-align: center;
    padding: 50px 0 60px;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    color: black;
    line-height: 1.25;
}

.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 10px; 
    background: var(--green);
    bottom: 0px;
    z-index: -1;
}

.hero-subtitle {
    font-weight: 200; 
    margin-top: -45px;
    margin-bottom: 60px;
    font-size: 25px;
}

.highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 14px; /* taille initiale */
    background: var(--green);
    bottom: -4px;
    z-index: -1;
    transition: height 0.25s ease, bottom 0.25s ease;
}

.highlight:hover::after {
    height: 26px; /* taille agrandie */
    bottom: -10px; /* léger ajustement visuel */
}




/* CTA obtenir un devis */

.cta-btn {
    background: var(--green);
    color: white;
    padding: 12px 26px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inl
}

html {
    scroll-behavior: smooth;
}

/* SECTION ENTREPRISE FAMILIALE */

.family-block {
    background: #ffffff;
}

/* Bande verte pleine largeur */
.family-top {
    background: var(--green);
    color: #ffffff;
    padding: 70px 0 70px;
}

.family-top-inner {
    text-align: center;
    max-width: 800px;
}

.family-title {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 10px;
}

.family-text {
    font-family: "inter", sans-serif !important;
    font-weight: 100;
    font-size: 18px;
    line-height: 1.2;
}

/* Bas de section : image + prestations */
.family-bottom {
    background: #ffffff;
    padding: 0 0 45px;
}

.family-bottom-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

/* Image qui “dépasse” */
.family-image-wrapper {
    margin-top: -40px;        
    max-width: 450px;
}

.family-image {
    width: 100%;
    display: block;
}
/* HOVER */
.highlight:hover {
    font-size: 1.2em;
}

.highlight:hover::after {
    height: 22px;
    transform: scaleX(1.2);
}

.family-image-wrapper {
    overflow: hidden;
}

/* Image normale */
.family-image-wrapper img {
    transition: transform 0.4s ease;
    transform-origin: center; /* zoom propre */
}

/* Zoom au hover */
.family-image-wrapper:hover img {
    transform: scale(1.08); /* zoom doux */
}


/* PRESTATIONS */
.prestations {
    font-family: "Barlow Semi Condensed", sans-serif;
}

.prestations-title {
    font-weight: 800;
    font-size: 30px;
    color: var(--green);
    margin-bottom: -10px;
}

.prestations-intro {
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 60px;
    color: var(--green);
}

.prestations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #dcdcdc;
}

.prestations-list li {
    font-weight: 300;               
    font-size: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #dcdcdc;  
    color: black;

}

/* Responsive */
@media (max-width: 900px) {
    .family-bottom-inner {
        grid-template-columns: 1fr;
    }

    .family-image-wrapper {
        margin: -50px auto 0;
    }
}
.prestations-note {
    font-size: 10px;
    color: #bfbfbf; /* gris clair */
    margin-top: 6px;
    line-height: 1.4;
    font-family: "Barlow Semi Condensed", sans-serif;
}

/* Bloc 4 images*/

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.gallery .container {
    width: min(1500px, 95%);  
    margin: 0 auto;
    padding: 0;               
}

.gallery-item {
    overflow: hidden;

}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.img1 {
    height: 300px;
}

.img1 img {
    object-position: 50% 20% ;
}

.img2 {
    height: 300px;
}

.img2 img {
    object-position: center;
}

.img3 {
    height: 300px;
}

.img3 img {
    object-position: 50% 30%;
}

.img4 {
    height: 300px;
}

.img4 img {
    object-position: 50% 20% ;
}

.gallery-item {
    overflow: hidden; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease; 
}

/* EFFET ZOOM AU SURVOL */
.gallery-item:hover img {
    transform: scale(1.1); 
}

/* fin bloc 4 images*/

/* section devis */

.devis-section {
  background-color: var(--green);
  padding: 60px 0;
  color: #ffffff;
  margin-top: 40px;
}

.devis-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

/* Texte à gauche */
.devis-text {
  max-width: 420px;
}

.devis-title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 26px;
  margin-bottom: 14px;
}

.devis-desc {
  font-family: "Inter", sans-serif;
  font-weight: 100;
  font-size: 18px;
  line-height: 1.6;
}

/* formulaire à droite */
.devis-card {
  background-color: #ffffff;
  color: #000000;
  border-radius: 13px;
  padding: 26px 30px 30px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.devis-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.devis-group {
  margin-bottom: 14px;
}

.devis-group label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  margin-bottom: 4px;
}

.devis-card input,
.devis-card textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #dedede;
  padding: 8px 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.devis-card textarea {
  resize: vertical;
  min-height: 110px;
}

/* bouton envoyer */
.devis-btn {
  margin-top: 6px;
  background-color: var(--green);
  color: #ffffff;
  border: none;
  border-radius: 13px;
  padding: 9px 28px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-block;
}

.devis-btn:hover {
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 900px) {
  .devis-inner {
    flex-direction: column;
    gap: 30px;
  }

  .devis-card {
    margin-left: 0;
  }
}

/* fin section devis */

/* FOOTER */

.footer {
    background: #ffffff;
    padding: 40px 0 25px;
    color: #1a1a1a;
    font-family: "Inter", sans-serif;
}

/* Bloc du haut : adresse + horaires */
.footer-top {
    display: flex;
    justify-content: flex-start;
    gap: 50%;
    flex-wrap: wrap;
    margin-bottom: 150px;
    margin-left: 250px;
}

.footer-block {
    max-width: 300px;
}

.footer-title {
    font-weight: 700;
    color: var(--green);
    margin-bottom: 8px;
    font-size: 30px;
}

/* Bas du footer */
.footer-bottom {

    padding-top: 12px;
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-bottom a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--green);
}

.footer-block p {
    font-size: 16px;      
    line-height: 1.25;    
    margin: 2px 0;        
}


/* Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        gap: 18px;
    }
}


.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-bottom .copyright {
    color: #888888;
    font-size: 13px;
    font-style: italic;
}

/* ========================= */
/*   RESPONSIVE – MOBILE     */
/* ========================= */

@media (max-width: 768px) {

    /* HEADER */
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo {
        height: 60px;
    }

    .phone-box {
        font-size: 14px;
        padding: 6px 14px;
    }

    /* HERO */
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero-subtitle {
        margin-top: -15px;
        margin-bottom: 40px;
        font-size: 18px;
    }

    .cta-btn {
        font-size: 15px;
        padding: 10px 22px;
    }

    /* FAMILY BLOCK */
    .family-top {
        padding: 40px 0;
    }

    .family-title {
        font-size: 22px;
    }

    .family-text {
        font-size: 16px;
    }

    .family-bottom-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .family-image-wrapper {
        max-width: 300px;
        margin: -30px auto 0;
    }

    /* PRESTATIONS */
    .prestations-title {
        font-size: 26px;
    }

    .prestations-intro {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .prestations-list li {
        font-size: 17px;
        padding: 6px 0;
    }

    /* GALLERY GRID */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .img1, .img2, .img3, .img4 {
        height: 220px;
    }

    /* DEVIS FORM */
    .devis-inner {
        flex-direction: column;
        gap: 25px;
    }

    .devis-title {
        font-size: 22px;
    }

    .devis-desc {
        font-size: 16px;
    }

    .devis-card {
        padding: 22px;
    }

    .devis-row {
        grid-template-columns: 1fr;
    }

    /* FOOTER */
    .footer-top {
        margin-left: 0;
        justify-content: center;
        gap: 30px;
        margin-bottom: 50px;
        text-align: center;
    }
}

/* FIX FORM MOBILE OVERFLOW */
@media (max-width: 768px) {

    /* Контейнер формы */
    .devis-inner {
        flex-direction: column;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Карточка формы */
    .devis-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px !important;
        box-sizing: border-box;
        margin: 0 auto;
    }

    /* Поля формы */
    .devis-card input,
    .devis-card textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Сетка "Nom / Prénom" → 1 колонка */
    .devis-row {
        grid-template-columns: 1fr !important;
    }
}

/* ==== MOBILE COMPLETE FIX ==== */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* HEADER */
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo {
        height: 60px;
    }

    .phone-box {
        width: auto;
        font-size: 14px;
        padding: 8px 16px;
    }

    /* HERO */
    .hero {
        padding: 35px 0;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-top: -10px;
        margin-bottom: 30px;
    }

    /* FAMILY BLOCK */
    .family-bottom-inner {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .family-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    /* GALLERY */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .img1, .img2, .img3, .img4 {
        height: 220px !important;
    }

    /* FORMULAIRE */
    .devis-inner {
        flex-direction: column;
        width: 100%;
        padding: 0;
        align-items: center;
    }

    .devis-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px !important;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .devis-row {
        grid-template-columns: 1fr !important;
    }

    .devis-card input,
    .devis-card textarea {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* FOOTER */
    .footer-top {
        margin-left: 0 !important;
        justify-content: center !important;
        text-align: center;
        gap: 30px;
        margin-bottom: 40px !important;
    }
}


/* Кнопка */
.scroll-top-btn {
    position: fixed;
    right: 25px;
    bottom: 30px;
    width: 54px;
    height: 54px;
    background: #2F6130;
    border-radius: 50%;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);

    transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);

    z-index: 9999;
}

/* Hover */
.scroll-top-btn:hover {
    background: #274f28;
    transform: translateY(0) scale(1.07);
}

/* Анимация стрелки */
.scroll-arrow {
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* --- Mobile improvements --- */
@media (max-width: 600px) {

    .devis-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .devis-row {
        flex-direction: column;
        gap: 0;
    }

    .devis-group {
        width: 100%;
    }

    .devis-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .devis-card input,
    .devis-card textarea {
        font-size: 15px;
        padding: 12px 14px;
    }
}

.devis-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 35px;
}



/* ============================================= */
/*        FORMULAIRE 100% BLANC — VERSION FINALE */
/* ============================================= */

.devis-card {
    background: #ffffff !important;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.15);
    border: 1px solid #e8e8e8 !important;
}

/* Pola vnutri — действительно белые */
.devis-card input,
.devis-card textarea {
    background: #ffffff !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 10px !important;
    padding: 14px 15px !important;
    font-size: 15px !important;
    color: #000 !important;
    box-shadow: none !important;
}

/* placeholder style (легкий серый) */
.devis-card input::placeholder,
.devis-card textarea::placeholder {
    color: #9a9a9a;
    font-weight: 300;
}

/* Focus эффект — зелёная подсветка */
.devis-card input:focus,
.devis-card textarea:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 6px rgba(47, 97, 48, 0.35) !important;
    background: #ffffff !important;
}

/* Mobile fix (тоже белый) */
@media (max-width: 600px) {

    .devis-card {
        background: #ffffff !important;
        border-radius: 16px;
        padding: 26px 22px !important;
    }

    .devis-card input,
    .devis-card textarea {
        background: #ffffff !important;
        border: 1px solid #dcdcdc !important;
        font-size: 16px !important;
    }
}


.scroll-top-btn {
    right: 25px !important;
    left: auto !important;
}

.grecaptcha-badge {
    left: 20px !important;
    right: auto !important;
}


.phone-box {
    font-weight: 800;
    font-size: 15px;
    color: var(--green);
    border: 2px solid var(--green);
    padding: 8px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;   /* <— главное */
}

.phone-box:hover,
.phone-box:focus,
.phone-box:active {
    text-decoration: none !important;   /* <— защита от подчёркивания браузером */
}


/* -------- reCAPTCHA v3 SUPER MINIMIZED BADGE -------- */

.grecaptcha-badge {
    left: 15px !important;      /* переместить слева */
    right: auto !important;
    bottom: 15px !important;

    width: 40px !important;     /* маленькая кругленькая кнопка */
    height: 40px !important;
    border-radius: 50% !important;

    opacity: 0.25 !important;   /* почти скрыта */
    overflow: hidden !important;

    background: rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;

    transform: scale(0.75) !important;  /* уменьшаем */
    transition: all .25s ease-in-out;

    z-index: 9999 !important;
}

/* При наведении — расширить (иначе Google ругается) */
.grecaptcha-badge:hover {
    opacity: 1 !important;
    transform: scale(1) !important;

    width: 260px !important;    /* стандартный размер Google */
    height: 60px !important;
    border-radius: 12px !important;
}




/* ========================== */
/*   FOOTER – DESKTOP        */
/* ========================== */

.footer-top {
    display: flex;
    justify-content: space-between;   /* равное расстояние */
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 80px;

    width: min(1000px, 90%);          /* центрируем, как основной контейнер */
    margin-left: auto;                /* ← центр */
    margin-right: auto;               /* → центр */
}

.footer-block {
    max-width: 260px;
}




/* ========================== */
/*   FOOTER – MOBILE         */
/* ========================== */

@media (max-width: 768px) {

    .footer-top {
        flex-direction: column;          /* блоки один под другим */
        justify-content: center;
        align-items: center !important;  /* строго по центру */
        text-align: center;              /* выравнивание текста */
        gap: 30px;
        margin-bottom: 40px;
        width: 100%;
    }

    .footer-block {
        max-width: 100%;
    }

    .footer-title {
        font-size: 20px;
    }
}

/* ===== MOBILE FIX – Devis title spacing ===== */
@media (max-width: 600px) {
    .devis-text {
        width: 100%;
        padding: 0 16px;        /* внутренние отступы */
        box-sizing: border-box;
        text-align: center;     /* выглядит лучше на мобильнике */
    }

    .devis-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .devis-desc {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 8px;
    }
}


.hidden-schema {
    display: none;
}

