/* ============================================
   LAYOUT.CSS - Structure, Grilles & Sections
   ============================================ */

/* --- Sticky Navbar --- */
#sticky-navbar {
    position: fixed;
    height: 120px;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #3C7B87;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.sticky-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.sticky-logo {
    max-width: 80px;
    height: auto;
}

.sticky-logo-link {
    display: flex;
    align-items: center;
}

.sticky-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--white);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    animation: pulse-grow 2s infinite ease-in-out;
    white-space: nowrap;
}

.sticky-phone a {
    color: #3C7B87;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
}

.sticky-phone-icon {
    width: 20px;
    height: 20px;
    fill: #3C7B87;
}

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

@media (max-width: 768px) {
    .sticky-phone {
        padding: 6px 12px; /* Réduction du padding sur mobile */
    }
    
    .sticky-phone a {
        font-size: 0.9em; /* Réduction de la taille de police */
    }
    
    .sticky-phone-icon {
        width: 16px; /* Réduction de l'icône */
        height: 16px;
    }
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.subtitle-hero {
    font-size: 1em;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 10px;
    opacity: 0.9;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.hero-section h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.0em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.slogan {
    font-size: 1.0em;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.header-buttons {
    margin-top: 20px;
}

.made-in-france {
    align-self: flex-end;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.made-in-france img {
    width: 90px;
    height: auto;
    transition: transform 0.3s ease;
}

.made-in-france img:hover {
    transform: scale(1.05);
}

/* --- Hero Two Columns Layout --- */
.hero-two-columns {
    padding: 140px 0 60px;
    min-height: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-column {
    text-align: left;
    z-index: 2;
    position: relative;
}

.hero-text-column .subtitle-hero {
    text-align: left;
}

.hero-text-column h1 {
    text-align: left;
}

.hero-text-column .slogan {
    text-align: left;
}

.hero-text-column .made-in-france {
    align-self: flex-end;
    margin-top: 40px;
    margin-left: auto;
}

.hero-form-column {
    z-index: 2;
    position: relative;
}

.hero-form-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.hero-form-title {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.hero-form-subtitle {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.hero-form-card .reassurance-elements {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-form-card .reassurance-elements img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.hero-form-card .form-group {
    margin-bottom: 15px;
}

.hero-form-card .form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.hero-form-card .form-group input,
.hero-form-card .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
}

.hero-form-card .form-group input:focus,
.hero-form-card .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.hero-form-card .privacy-policy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85em;
}

.hero-form-card .privacy-policy input[type="checkbox"] {
    margin-top: 3px;
}

.hero-form-card .privacy-policy label {
    color: #666;
    line-height: 1.4;
}

.hero-form-card .form-submit {
    text-align: center;
}

.hero-form-card .form-submit button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-form-card .form-disclaimer {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.hero-form-card .form-row,
#configurator1 .form-row,
#promoFormDesktop .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.hero-form-card .form-group.half-width,
#configurator1 .form-group.half-width,
#promoFormDesktop .form-group.half-width {
    flex: 1;
    margin-bottom: 0;
}

.hero-form-card .form-group textarea::placeholder {
    font-family: var(--font-secondary);
    font-size: 0.95em;
    color: #757575; /* Même couleur que les placeholders par défaut */
}

/* Responsive pour les champs côte à côte */
@media (max-width: 480px) {
    .hero-form-card .form-row,
    #configurator1 .form-row,
    #promoFormDesktop .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Responsive Hero Two Columns */
@media (max-width: 992px) {
    .hero-section {
        min-height: 70vh;
        padding: 60px 0 80px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Masquer le formulaire du hero sur mobile */
    .hero-form-column {
        display: none;
    }
    
    .hero-text-column {
        text-align: center;
    }
    
    .hero-text-column .subtitle-hero,
    .hero-text-column h1,
    .hero-text-column .slogan {
        text-align: center;
    }
    
    .hero-text-column .made-in-france {
        align-self: center;
        margin: 40px auto 0;
    }
}

/* --- Section Formulaire Mobile --- */
#form-mobile {
    display: none;
    background: var(--white);
    padding: 20px 0; /* Réduit pour mobile */
    margin-top: 0; /* Correction marge négative */
}

@media (max-width: 992px) {
    #form-mobile {
        display: block;
    }
}

#form-mobile .hero-form-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px 15px; /* Padding optimisé mobile */
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* --- Sections Savoir-Faire --- */
#savoir-faire {
    text-align: center;
    background: var(--white);
    margin-top: 60px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
}

.expertise-item {
    background: #F8F8F8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.expertise-icon-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
}

.expertise-icon-wrap img {
    max-width: 70%;
    height: auto;
}

.expertise-title {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 0;
}

/* --- Galerie Section --- */
#gallery {
    text-align: center;
    padding: 0;
}

.gallery-swiper-container {
    width: 100%;
    height: auto;
    margin-top: 0;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    box-sizing: border-box;
}

.gallery-item-image {
    padding: 0 10px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gallery-item-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.gallery-caption {
    font-size: 0.9em;
    color: var(--text-color);
    line-height: 1.3;
    padding: 0 5px;
}

/* --- Reviews Section --- */
#reviews {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 30px;
}

.reviews-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0 auto;
}

.review-summary-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.review-summary-card .badge-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.review-summary-card .review-badge {
    width: 120px;
    height: auto;
}

.review-summary-card .badge-text {
    font-size: 0.7em;
    font-weight: bold;
    color: var(--dark-grey);
    white-space: nowrap;
}

.overall-rating {
    font-family: var(--font-primary);
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.overall-rating .max-score {
    font-size: 0.5em;
    vertical-align: super;
}

.stars {
    color: #ffc107;
    font-size: 1.2em;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-count {
    font-size: 1em;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.control-quality {
    font-size: 0.85em;
    color: var(--dark-grey);
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-quality .info-icon {
    font-weight: bold;
    font-style: normal;
    color: var(--primary-color);
    cursor: help;
}

/* --- Expertise Quality Section --- */
#expertise-quality {
    padding: 60px 0;
    text-align: center;
    background: var(--white);
}

.expertise-row-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.expertise-row-item:last-child {
    margin-bottom: 0;
}

.expertise-row-item.reverse-order {
    flex-direction: column-reverse;
}

.expertise-content {
    text-align: left;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.expertise-content h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.4em;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: left;
}

.expertise-content p {
    font-size: 1.1em;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.expertise-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.expertise-content li {
    font-size: 1em;
    color: var(--dark-grey);
    line-height: 1.5;
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.expertise-content li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.expertise-content strong {
    color: var(--primary-color);
}

.expertise-image {
    padding: 10px;
    max-width: 100%;
    width: 100%;
}

.expertise-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

/* --- Contact Footer Section --- */
#contact-footer {
    margin-top: 0;
    padding: 60px 0;
    background-color: var(--dark-bg);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info-item {
    text-align: center;
}

.contact-info-item .contact-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.4;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.contact-list li a:hover {
    color: var(--primary-color);
}

.contact-list .icon-contact {
    margin-right: 10px;
    font-size: 1.2em;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-map-item iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

/* --- Footer --- */
footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 0.85em;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-line {
    margin-bottom: 8px;
}

.footer-line p {
    margin: 0;
    opacity: 0.85;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links .separator {
    opacity: 0.5;
}

footer p {
    margin-bottom: 5px;
    opacity: 0.8;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
    opacity: 0.85;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Video Section --- */
#video-presentation {
    text-align: center;
    margin-top: 50px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- FAQ Section --- */
.faq {
    padding-top: 60px;
    padding-bottom: 80px;
}

.faq details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

.faq details[open] {
    background-color: #f9f9f9;
}

.faq summary {
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.2s ease-in-out;
}

.faq details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq .faq-answer {
    padding: 0 20px 20px 20px;
    line-height: 1.6;
    color: #333;
}

.faq .faq-answer p {
    margin: 0;
}

[itemprop="text"] {
    padding: 10px;
}

/* --- Section Catégories Produits --- */
#product-categories {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}


.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.category-item {
    background: #F8F8F8;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.category-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

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

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 30px 20px 20px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.category-item:hover .category-overlay {
    background: rgba(0,0,0,0.75);
    top: 0;
    bottom: 0;
    justify-content: center;
    padding: 20px;
}

.category-title {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.2em;
    color: white;
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
}

/* Ajustements mobiles pour le titre */
@media (max-width: 767px) {
    .category-title {
        font-size: 1.1em;
        padding: 0 10px;
    }
}

.category-item:hover .category-title {
    font-size: 1.4em;
    margin-bottom: 20px;
}

/* Sur mobile, pas de changement au hover pour le titre */
@media (max-width: 767px) {
    .category-item:hover .category-title {
        font-size: 1.1em;
        margin-bottom: 0;
    }
}

.category-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Masquer le CTA sur mobile (touch devices) */
@media (max-width: 767px) {
    .category-cta {
        display: none !important;
    }
}

.category-item:hover .category-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.category-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1em;
}

.category-btn:hover {
    background: white;
    color: #2c3e50;
    transform: scale(1.05);
}

/* Responsive - Catégories */
@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
    }
}

/* --- Media Queries Layout --- */
@media (min-width: 768px) {
    #sticky-navbar {
        padding: 15px 0;
    }
    
    .sticky-logo {
        max-width: 120px;
    }
    
    .sticky-phone {
        font-size: 1.0em;
        padding: 12px 25px;
    }
    
    .sticky-phone-icon {
        width: 24px;
        height: 24px;
    }
    
    .hero-section {
        padding: 80px 0;
        min-height: 600px;
    }
    
    .hero-section h1 {
        font-size: 3.5em;
    }
    
    .slogan {
        font-size: 1.4em;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .expertise-icon-wrap {
        width: 80px;
        height: 80px;
    }
    
    .expertise-title {
        font-size: 1.0em;
    }
    
    .gallery-item-image img {
        height: 480px;
    }
    
    .reviews-content-wrapper {
        grid-template-columns: 250px 1fr;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        text-align: left;
    }
    
    .contact-list li {
        justify-content: flex-start;
    }
    
    footer {
        padding: 25px 0;
    }
}

@media (min-width: 1024px) {
    .gallery-item-image img {
        height: 550px;
    }
    
    .reviews-content-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 50px;
    }
}

@media (min-width: 1200px) {
    #gallery {
        width: 100%;
        margin: 0 auto;
    }
    
    .hero-section {
        padding: 100px 0;
        min-height: 550px;
    }
    
    .hero-section h1 {
        font-size: 4em;
    }
    
    .slogan {
        font-size: 1.6em;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }
    
    .expertise-icon-wrap {
        width: 100px;
        height: 100px;
    }
    
    .expertise-title {
        font-size: 1em;
    }
    
    .expertise-row-item {
        gap: 60px;
    }
    
    .expertise-content h3 {
        font-size: 1.8em;
    }
    
    .expertise-content p {
        font-size: 1.2em;
    }
    
    .expertise-content li {
        font-size: 1.1em;
    }
    
    .expertise-image {
        padding: 20px;
        max-width: 600px;
        width: 600px;
    }
    
    .expertise-image img {
        width: 100%;
        max-width: 600px;
    }
    
    .expertise-row-item {
        flex-direction: row;
        align-items: center;
    }
    
    .expertise-row-item.reverse-order {
        flex-direction: row-reverse;
    }
}
