/* Styles optimisés pour LAP Vitrerie */

/* Reset et styles de base */
:root {
    --primary-color: #008f1a;
    --secondary-color: #ffb100;
    --dark-color: #000000;
    --light-color: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.1);
    --transition-normal: all 0.3s ease;
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
.header {
    background-color: var(--light-color);
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition-normal);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.phone-link {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--gray-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color); /* Changement en vert */
    margin: 5px 0;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition-normal);
    margin-bottom: 30px;
}

.cta-button:hover {
    background-color: #007515;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.badge {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.badge.small {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.badge-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Franchise Section */
.franchise-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.franchise-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.franchise-images {
    flex: 1;
    position: relative;
}

.main-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.secondary-image {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    max-width: 60%;
    z-index: 2;
}

.contact-icon-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #ffbb00, #ff7700);
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 30px;
    left: 30px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--light-color);
}

.phone-icon::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-color: var(--dark-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.franchise-text {
    flex: 1;
}

.franchise-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.franchise-banner {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.franchise-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Tarifs Section */
.tarifs-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.section-header p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray-dark);
}

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

.tarif-card {
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-small);
    transition: var(--transition-normal);
}

.tarif-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.tarif-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price-prefix {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 5px;
}

.phone-button {
    display: block;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.phone-button:hover {
    background-color: #007515;
}

.features-list {
    list-style-type: none;
}

.features-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.features-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

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

.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-image {
    height: 250px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 20px;
    color: var(--gray-dark);
}

/* Devis Section */
.devis-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.devis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.devis-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.devis-text p {
    margin-bottom: 30px;
}

.contact-info {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon.location::before,
.contact-icon.phone::before,
.contact-icon.email::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--dark-color);
}

.contact-icon.location::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.contact-icon.phone::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.contact-icon.email::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.contact-icon::before {
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.devis-form {
    background-color: var(--gray-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-normal);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 143, 26, 0.2);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.submit-button:hover {
    background-color: #007515;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

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

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray-medium);
    transition: var(--transition-normal);
}

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

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact .phone-link {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container,
    .franchise-content {
        flex-direction: column;
    }

    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }

    .franchise-content {
        gap: 40px;
    }

    .devis-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--light-color);
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .phone-number-desktop {
        display: none;
    }

    .secondary-image {
        position: static;
        max-width: 100%;
        margin-top: 20px;
    }

    .contact-icon-circle {
        position: absolute;
        bottom: 20px;
        left: 20px;
    }

    .badges-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .tarifs-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .franchise-banner {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Optimisations pour la performance */
@media print {
    .menu-toggle,
    .cta-button,
    .phone-button {
        display: none;
    }
}

/* Preloading pour améliorer les performances */
.no-js img.lazyload {
    display: none;
}

/* Animations légères pour améliorer l'expérience utilisateur */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-text h1,
.hero-text p {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-text p {
    animation-delay: 0.2s;
}

.cta-button {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Style pour le conteneur d'image avec filigrane */
.image-watermark-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

/* Style du filigrane */
.watermark {
    position: absolute;
    bottom: 50px;
    right: 100px;
    background: linear-gradient(to bottom, 
    rgb(0, 35, 149) 50%, 
    rgb(237, 41, 57) 50%);
    color: white;
    padding: 8px 15px;
    font-family: var(--font-main);
    font-size: 24px;
    border-radius: 4px;
	font-weight: bold;
    z-index: 10;
    opacity: 0.8;
}

/* Variante pour un grand filigrane diagonal (si vous préférez cette approche) */
.watermark-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    color: white;
    font-family: var(--font-main);
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.3;
    z-index: 10;
}

/* Styles pour l'aperçu des fichiers uploadés */
.file-upload {
    position: relative;
}

.file-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.file-upload input[type="file"] {
    padding: 10px 0;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-item {
    width: 100px;
    text-align: center;
}

.file-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 5px;
}

.file-item span {
    font-size: 0.8rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bouton flottant téléphone pour mobile */
.floating-phone-button {
    display: none; /* Masqué par défaut */
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-phone-button:hover {
    background-color: #007515;
    transform: scale(1.1);
}

.floating-phone-button::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: var(--light-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* Afficher le bouton flottant uniquement sur mobile */
@media (max-width: 768px) {
    .floating-phone-button {
        display: flex;
    }
}
/* Correction pour le numéro de téléphone dans le menu */
.phone-link, .phone-number-desktop a {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color); /* Couleur verte */
    background: transparent; /* Pas de fond */
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}
.phone-number-desktop a:hover {
    background-color: rgba(0, 143, 26, 0.1); /* Fond légèrement vert au survol */
}
/* Afficher le bouton flottant uniquement sur mobile */
@media (max-width: 768px) {
    .floating-phone-button {
        display: flex; /* Affiché seulement en version mobile */
    }
}
/* Styles pour les messages de formulaire */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

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

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

.form-message ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.form-message li {
    margin-bottom: 5px;
}