/*
 * Site créé par MySiteSolutions.fr
 * Spécialiste en création de sites web pour artisans et TPE
 * https://mysitesolutions.fr
 * © 2025 - Tous droits réservés
 */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5ca05c;
    --primary-light: #8fbe8f;
    --primary-dark: #3c773c;
    --secondary-color: #f7f3e9;
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --dark-bg: #1f2729;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Base font-size pour faciliter les calculs rem */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    position: relative;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(92, 160, 92, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(92, 160, 92, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto;
}

.separator.light {
    background-color: var(--white);
}

section {
    padding: 6rem 0;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

/* Loader Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.leaves-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 100px 0 100px 0;
    top: 20px;
    left: 30px;
    transform-origin: bottom center;
    animation: leaf-spin 3s infinite ease-in-out;
}

.leaf:nth-child(1) {
    animation-delay: 0s;
}

.leaf:nth-child(2) {
    animation-delay: 0.5s;
}

.leaf:nth-child(3) {
    animation-delay: 1s;
}

@keyframes leaf-spin {
    0% {
        transform: rotate(0deg) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(0.8);
        opacity: 0.5;
    }
}

.loader p {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1rem;
    opacity: 0;
    animation: fade-in 2s 0.5s forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.logo-text {
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    bottom: 7px;
    right: -10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    overflow: hidden;
    padding-top: 8rem;
}

.hero-content {
    width: 50%;
    z-index: 5;
}

.hero-image {
    width: 50%;
    position: relative;
    height: 100%;
}

.circle-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background-color: var(--primary-light);
    opacity: 0.15;
    border-radius: 50%;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    animation: pulse 4s infinite alternate;
    z-index: 0;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    100% {
        transform: translateY(-50%) scale(1.1);
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-leaf {
    position: absolute;
    width: 50px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.big-leaf {
    background-image: url('../images/leaf2.png');
    width: 800px;
    height: 800px;
    position: absolute;
    top: 50%;
    right: -150px;
    transform: translate(0, -50%);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
    opacity: 0.7;
}

/* Styles pour l'ancienne mise en page gardés en commentaire 
.leaf1 {
    background-image: url('../images/leaf1.png');
    top: 30%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.leaf2 {
    background-image: url('../images/leaf2.png');
    top: 50%;
    right: 30%;
    animation: float 8s ease-in-out infinite reverse;
}

.leaf3 {
    background-image: url('../images/leaf3.png');
    top: 70%;
    right: 15%;
    animation: float 7s ease-in-out infinite 1s;
}
*/

@keyframes float {
    0% {
        transform: translate(0, -50%) rotate(0deg);
    }
    50% {
        transform: translate(0, -50%) translateY(-15px) rotate(3deg);
    }
    100% {
        transform: translate(0, -50%) rotate(0deg);
    }
}

.fade-in {
    opacity: 0;
    animation: fade-in 1s 0.5s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fade-in 1s 1s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fade-in 1s 1.5s forwards;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50 Q300 100 600 50 T1200 50 V100 H0 Z" fill="%23ffffff"/></svg>');
    background-size: cover;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    width: 40%;
    position: relative;
}

.image-frame {
    width: 100%;
    height: 500px;
    background-image: url('../images/julie.jpg');
    background-size: cover;
    background-position: center top;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-text {
    width: 60%;
}

.about-values {
    display: flex;
    margin-top: 2rem;
    gap: 1.5rem;
}

.value-item {
    text-align: center;
    flex: 1;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.value-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Services Section */
.services-section {
    background-color: var(--secondary-color);
    position: relative;
}

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

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-dark);
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    position: relative;
}

.service-link::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.service-link:hover::after {
    margin-left: 10px;
}

/* Approach Section */
.approach-section {
    color: var(--white);
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/approach-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    z-index: -1;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 39, 41, 0.85);
}

.approach-timeline {
    margin-top: 4rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.timeline-content p {
    color: var(--white);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--white);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: auto;
    min-height: 350px;
    overflow: hidden;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s;
}

.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.testimonial-content {
    background-color: var(--secondary-color);
    padding: 3rem;
    padding-top: 4rem;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 30px;
}

.quote-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 1;
}

.testimonial-author {
    margin-top: 1.5rem;
    text-align: right;
    align-self: flex-end;
}

.testimonial-author h4 {
    margin-bottom: 0.3rem;
    font-style: italic;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--light-text);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-dark);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-dark);
    transform: scale(1.3);
}

/* Pricing Section */
.pricing-section {
    background-color: var(--secondary-color);
    padding: 6rem 0;
}

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

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.duration {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.pricing-content {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-content li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--light-text);
}

.pricing-content li:last-child {
    border-bottom: none;
}

.pricing-content i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Contact Section */
.contact-section {
    background-color: var(--secondary-color);
}

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    width: 40%;
}

.contact-form {
    width: 60%;
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: transparent;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%235ca05c" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: var(--transition);
    pointer-events: none;
    color: var(--light-text);
}

.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 160, 92, 0.1);
}

.form-group input:focus ~ label,
.form-group select:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:not([value=""]):valid ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.8rem;
    background-color: var(--white);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 40%;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-nav h4,
.footer-services h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-nav h4::after,
.footer-services h4::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
}

.footer-nav ul,
.footer-services ul {
    list-style: none;
}

.footer-nav li,
.footer-services li {
    margin-bottom: 0.8rem;
}

.footer-nav a,
.footer-services a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-services a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary-light);
}

/* Animation Classes */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s;
}

.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    html {
        font-size: 95%;
    }
    
    .circle-bg {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 90%;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content,
    .hero-image {
        width: 100%;
    }
    
    .hero-image {
        display: none;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image,
    .about-text,
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-values {
        flex-wrap: wrap;
    }
    
    .value-item {
        flex: 0 0 calc(50% - 1rem);
        margin-bottom: 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-section {
        padding-top: 6rem;
        height: auto;
        min-height: 80vh;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-number {
        margin: 0 auto;
    }
    
    .timeline-content {
        border-left: none;
        border-top: 3px solid var(--primary-color);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-logo {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .testimonial-content {
        padding: 2rem 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 80%;
    }
    
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .nav-menu {
        width: 85%;
    }
    
    .about-values {
        flex-direction: column;
    }
    
    .value-item {
        flex: 1;
    }
    
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .quote-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .testimonial-controls {
        flex-wrap: wrap;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }
}

/* Assurer que les formulaires sont utilisables sur mobile */
@media (max-width: 480px) {
    input, 
    select, 
    textarea, 
    button {
        font-size: 16px !important; /* Empêche le zoom iOS sur focus */
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input:focus ~ label,
    .form-group select:focus ~ label,
    .form-group textarea:focus ~ label,
    .form-group input:not(:placeholder-shown) ~ label,
    .form-group select:not([value=""]):valid ~ label,
    .form-group textarea:not(:placeholder-shown) ~ label {
        font-size: 0.75rem;
    }
}

/* Support pour les écrans très larges */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    html {
        font-size: 105%;
    }
}

/* Support pour l'orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
    }
    
    .nav-menu.active {
        overflow-y: auto;
    }
}

/* Styles pour les messages de succès et d'erreur du formulaire */
.success-message,
.error-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
}

.success-message i,
.error-message i {
    margin-right: 10px;
    font-size: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section publicitaire */
.promo-section {
    background-color: var(--primary-light);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, rgba(92, 160, 92, 0.1), rgba(92, 160, 92, 0.2));
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
    max-height: 100px;
    opacity: 1;
}

.promo-section.closed {
    max-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.promo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.promo-close {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-dark);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 10;
    transform: translateY(-50%);
    border: none;
    outline: none;
}

.promo-close:hover {
    color: var(--primary-color);
    transform: translateY(-50%) rotate(90deg);
}

.promo-close:focus {
    outline: 2px solid var(--primary-color);
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.promo-content h3 {
    display: none;
}

.promo-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    margin-right: 1.5rem;
}

.promo-link {
    white-space: nowrap;
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.promo-link:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
        padding: 0.5rem 2rem 0.5rem 0;
    }
    
    .promo-content p {
        font-size: 0.85rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .promo-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
} 