/*
Theme Name: Groupe FCO
Theme URI: https://groupe-fco.fr
Author: Groupe FCO
Author URI: https://groupe-fco.fr
Description: Thème WordPress pour le Groupe FCO (FCO Habitat, FCO Énergie, FCO Immo). Thème compatible WooCommerce pour le e-commerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: groupe-fco
Tags: e-commerce, woocommerce, business, custom-menu, featured-images, threaded-comments, translation-ready

Ce thème est conçu pour le Groupe FCO et ses trois entités : FCO Habitat, FCO Énergie et FCO Immo.
*/

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

body {
    font-family: 'objektiv-mk2', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Styles principaux */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

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

.site-logo {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Contenu principal */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Footer */
.site-footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

.site-footer .site-container {
    text-align: center;
    color: #666;
}

/* Articles et pages */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .site-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   PAGE D'ACCUEIL - VIDÉO PLEIN ÉCRAN
   ============================================ */

body.homepage-body {
    overflow: hidden;
    background-color: #000;
}

.homepage-site,
.homepage-content,
.homepage-hero {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: saturate(110%) contrast(105%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-video.is-ready {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

/* ============================================
   PAGE DEMANDE DE DEVIS
   ============================================ */

.quote-page {
    background-color: #f5f7fb;
    color: #08121f;
}

.quote-hero {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) 1.5rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.wpforms-field-sublabel::after {
    opacity: 0 !important;
}

.quote-hero__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #f9fbff;
}

.quote-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.quote-hero__content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.quote-hero__intro {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.quote-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    list-style: none;
}

.quote-hero__highlights li {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.quote-section {
    margin-top: clamp(-5rem, -8vw, -6rem);
    padding-bottom: clamp(4rem, 9vw, 7rem);
    padding-top: clamp(6rem, 10vw, 8rem);
}

.quote-section__grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2.5rem;
    padding: 0 1.5rem;
}

.quote-form-card,
.quote-contact-card,
.quote-steps-card {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(8, 18, 31, 0.08);
}

.quote-form-card {
    padding: clamp(2rem, 4vw, 3rem);
}

.quote-form-card__header {
    margin-bottom: 2rem;
}

.quote-form-card__eyebrow,
.quote-contact-card__eyebrow,
.quote-steps-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: #8191a5;
    display: block;
    margin-bottom: 0.75rem;
}

.quote-form-card__header h2,
.quote-contact-card h3,
.quote-steps-card h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
    color: #0f1f35;
}

.quote-form-card__header p,
.quote-contact-card p,
.quote-steps-card p {
    color: #4c5a6d;
    line-height: 1.6;
}

.quote-form-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quote-form-card .wpforms-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quote-form-card .wpforms-field {
    margin: 0;
}

.quote-form-card .wpforms-field label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f1f35;
    margin-bottom: 0.35rem;
}

.quote-form-card .wpforms-field input[type="text"],
.quote-form-card .wpforms-field input[type="email"],
.quote-form-card .wpforms-field input[type="tel"],
.quote-form-card .wpforms-field input[type="number"],
.quote-form-card .wpforms-field select,
.quote-form-card .wpforms-field textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f9fbff;
}

.quote-form-card .wpforms-field textarea {
    min-height: 140px;
}

.quote-form-card .wpforms-field input:focus,
.quote-form-card .wpforms-field select:focus,
.quote-form-card .wpforms-field textarea:focus {
    outline: none;
    border-color: #0f6fff;
    box-shadow: 0 0 0 3px rgba(15, 111, 255, 0.15);
    background-color: #fff;
}

.quote-form-card .wpforms-submit-container {
    margin-top: 0.5rem;
}

.quote-form-card .wpforms-submit {
    border: none;
    border-radius: 999px;
    padding: 1rem 2.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: black;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.quote-form-card .wpforms-error {
    color: #c62828;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quote-contact-card {
    padding: 2rem;
}

.quote-contact-card ul {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-contact-card__item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    background: #f5f7fb;
    border: 1px solid #e4e9f2;
}

.quote-contact-card__item strong {
    font-size: 1.2rem;
    color: #0f1f35;
}

.quote-steps-card {
    padding: 2rem;
}

.quote-steps-card__list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-steps-card__list li {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e4e9f2;
    border-radius: 22px;
    background: #fdfdff;
}

.quote-steps-card__list span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f6fff, #26c6da);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.quote-steps-card__list strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #0f1f35;
}

@media (max-width: 1024px) {
    .quote-section__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .quote-hero__highlights {
        flex-direction: column;
    }

    .quote-form-card,
    .quote-contact-card,
    .quote-steps-card {
        border-radius: 24px;
    }

    .quote-form-card .wpforms-field input,
    .quote-form-card .wpforms-field select,
    .quote-form-card .wpforms-field textarea {
        border-radius: 12px;
    }

.quote-privacy-card {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: #f1f4fb;
    border: 1px solid #dbe3ef;
    color: #0f1f35;
}

.quote-privacy-card ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quote-privacy-card li {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 1.5rem;
    position: relative;
}

.quote-privacy-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f6fff, #26c6da);
}

.quote-privacy-card a {
    color: #0f6fff;
    font-weight: 600;
    text-decoration: none;
}

.quote-privacy-card a:hover {
    text-decoration: underline;
}
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    gap: 3rem;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.7));
}

.hero-site-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-entities {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-entity {
    min-width: 180px;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-entity::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-entity:hover,
.hero-entity:focus-visible {
    border-color: #fff;
    transform: translateY(-4px);
}

.hero-entity:hover::after,
.hero-entity:focus-visible::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-content {
        gap: 2rem;
        padding: 1.5rem;
    }

    .hero-logo img {
        max-width: 280px;
    }

    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 0.1rem;
    }

    .hero-entity {
        width: 100%;
        text-align: center;
    }
}

