* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header-with-image {
    background-image: linear-gradient(rgba(44, 85, 48, 0.7), rgba(74, 124, 89, 0.7)), 
                      url('images/en-tete-site.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.header-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Logo et titre dans le header */
.logo-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.header-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.header-with-image h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header-with-image .slogan {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Phone CTA Button */
.phone-cta {
    margin-top: 2rem;
}

.phone-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.phone-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b, #e8841a);
}

.phone-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    animation: shake 1s ease-in-out infinite;
}

.phone-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: 900;
    margin-top: 0.2rem;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    background-color: #1a3d20;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-brand-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #7fb069;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(42, 85, 48, 0.8), rgba(42, 85, 48, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><polygon fill="%23228B22" points="0,300 300,250 600,280 1000,230 1000,300"/></svg>');
    background-size: cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Services Section */
#services {
    padding: 4rem 0;
    background-color: white;
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #4a7c59;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #2c5530;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-image {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image img:hover {
    transform: scale(1.05);
}

.service-card p {
    color: #666;
    font-size: 1.1rem;
}

/* Contact Section */
#contact {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

#contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #4a7c59;
}

.contact-item h3 {
    color: #2c5530;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1.2rem;
}

.contact-item a {
    color: #4a7c59;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2c5530;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #4a7c59;
}

.contact-form h3 {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* JotForm Styling Override */
#jotform-container .form-all {
    font-family: inherit;
}

#jotform-container .form-header {
    display: none;
}

#jotform-container .form-textbox,
#jotform-container .form-dropdown {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 0.8rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#jotform-container .form-textbox:focus,
#jotform-container .form-dropdown:focus {
    border-color: #4a7c59;
    outline: none;
}

#jotform-container .form-submit-button {
    background-color: #4a7c59;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#jotform-container .form-submit-button:hover {
    background-color: #2c5530;
}

/* Horaires Section */
#horaires {
    padding: 4rem 0;
    background-color: white;
}

#horaires h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.horaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.horaire-item {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.horaire-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.horaire-item p {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Avis Clients Section */
#avis {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

#avis h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.avis-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #4a7c59;
}

.avis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stars {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.avis-card p {
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.client-name {
    font-weight: bold;
    color: #4a7c59;
    font-size: 1rem;
}

/* Zone d'intervention Section */
#zone {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    text-align: center;
}

#zone h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.zone-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.zone-info p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.villes-couvertes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.villes-couvertes span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.villes-couvertes span:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* À propos Section */
#patron {
    padding: 4rem 0;
    background-color: white;
}

#patron h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.patron-info {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.patron-info h3 {
    font-size: 2rem;
    color: #4a7c59;
    margin-bottom: 2rem;
}

.patron-info > p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: justify;
}

.competences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.competence-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    border-left: 4px solid #4a7c59;
}

.competence-item h4 {
    color: #2c5530;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.competence-item p {
    color: #666;
    line-height: 1.6;
}

/* Mentions Légales */
.mentions-legales {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.mentions-legales h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.mentions-content {
    max-width: 1000px;
    margin: 0 auto;
}

.mentions-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #4a7c59;
}

.mentions-section h3 {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid #4a7c59;
}

.info-item strong {
    color: #2c5530;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
footer {
    background-color: #1a3d20;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-info h3 {
    color: #7fb069;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    margin: 0.3rem 0;
    font-size: 1rem;
    opacity: 0.9;
}

.footer-legal {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2c5530;
}

.footer-legal p {
    font-size: 1rem;
    margin: 0;
}

.footer-legal a {
    color: #7fb069;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-title-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-logo {
        width: 80px;
        height: 80px;
    }
    
    .header-with-image h1 {
        font-size: 2.5rem;
    }
    
    .header-with-image .slogan {
        font-size: 1.2rem;
    }
    
    .header-with-image {
        min-height: 350px;
        padding: 3rem 0;
    }
    
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-brand {
        order: 1;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        order: 2;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    #hero h2 {
        font-size: 1.8rem;
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-with-image h1 {
        font-size: 2rem;
    }
    
    .header-with-image .slogan {
        font-size: 1rem;
    }
    
    .header-with-image {
        min-height: 300px;
        padding: 2rem 0;
    }
    
    #services h2, #contact h2, #horaires h2 {
        font-size: 2rem;
    }
    
    .contact-form,
    .contact-item {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(255, 107, 53, 0.6);
    }
    100% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    }
}

@keyframes shake {
    0%, 100% { 
        transform: rotate(0deg); 
    }
    25% { 
        transform: rotate(-10deg); 
    }
    75% { 
        transform: rotate(10deg); 
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s both;
}

.animate-bounce-in {
    animation: bounceIn 1.2s ease-out 1s both;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Phone Button (Mobile) */
.floating-phone {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.floating-phone .phone-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.5rem;
    justify-content: center;
    animation: bounce 2s infinite;
}

.floating-phone .phone-text {
    display: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .floating-phone {
        display: block;
    }
    
    .phone-cta {
        display: none;
    }
}