/* 
===============================================
FICHIER: css/style.css
Style principal du site CERCA TROVA
===============================================
*/

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FDFAF4;
    background-image: linear-gradient(135deg, #FDFAF4 0%, #F5EDD8 50%, #FDFAF4 100%);
    color: #000000;
    line-height: 1.6;
    padding-top: 104px; /* compensé dynamiquement par JS — valeur initiale desktop */
}


/* ─── Logo cliquable ──────────────────────────────── */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.logo-link:hover {
    opacity: 0.8;
}
/* Header avec logo adaptatif */
header {
    background-color: rgba(253,250,244,0.97);
    border-bottom: 1px solid #e8e2d4;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: padding 0.35s ease, box-shadow 0.35s ease;
    padding: 28px 0;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

header.scrolled .logo-svg {
    width: 250px;
}

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

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

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 340px;
    height: auto;
    transition: width 0.3s ease;
    pointer-events: none; /* délégué au <a> parent */
    display: block;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.6;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #000000;
    border-radius: 4px;
    transition: all 0.3s;
}

.linkedin-link:hover {
    background-color: #000000;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Typographie */
h1 {
    font-size: 52px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
    line-height: 1.2;
    font-family: 'Cormorant Garamond', serif;
}

h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-family: 'Cormorant Garamond', serif;
}

h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
}

h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-gray {
    background-color: #F5EDD8;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-subtitle {
    font-size: 20px;
    color: #333333;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: justify;
}

.cta-button {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
}

.cta-button:hover {
    opacity: 0.8;
}

.legal-content h4 {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    margin-top: 28px;
    margin-bottom: 10px;
    color: #000000;
}

/* Page Header */
.page-header {
    padding: 60px 0 40px;
    background-color: transparent;
}

.page-header h1 {
    margin-bottom: 20px;
}

.page-header p {
    font-size: 18px;
    color: #333333;
}

/* Services Grid */
.services-intro {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.5px;
    margin-top: -20px;
    margin-bottom: 10px;
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 40px;
    background-color: transparent;
    border: 1px solid #d8d8d8;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px 28px;
    background-color: #ffffff;
    border-right: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.25s ease;
    cursor: pointer;
}

.service-card:hover {
    background-color: #f7f7f7;
}

.service-card:hover h3 {
    opacity: 0.7;
}

.service-svg-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

.service-card:hover .service-svg-icon {
    opacity: 1;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.6;
    color: #111111;
    margin-bottom: 0;
    transition: opacity 0.25s ease;
}

/* Reviews */
.reviews-container {
    margin-top: 40px;
}

.review-card {
    padding: 35px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.review-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 17px;
}

.reviewer-company {
    font-size: 14px;
    color: #666666;
}

.stars {
    color: #000000;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
}

.google-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 24px;
    border: 1px solid #000000;
    text-decoration: none;
    color: #000000;
    transition: all 0.3s;
}

.google-reviews-link:hover {
    background-color: #000000;
    color: #ffffff;
}

/* About & Expertise */
.about-intro,
.expertise {
    padding: 60px 0;
}

.about-content {
    max-width: 100%;
}

/* Expertise cards — grille numérotée */
.expertise-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 40px;
    background-color: #d8d8d8;
}

.expertise-card {
    background-color: #ffffff;
    padding: 36px 32px 32px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s ease;
    scroll-margin-top: 120px; /* offset pour le header fixed lors du scroll sur ancre */
}

.expertise-card:hover {
    background-color: #fafafa;
}

.expertise-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.55;
    color: #000000;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.expertise-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 0;
    text-align: left;
}

.expertise-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

.expertise-card:hover .expertise-icon {
    opacity: 1;
}

.expertise-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.65;
    color: #111111;
    margin-bottom: 0;
    text-align: left;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #e0e0e0;
}

.value-item h4 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.value-item p {
    text-align: center;
    color: #444444;
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto 60px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #000000;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

button {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 45px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

button:hover {
    opacity: 0.8;
}

/* Captcha */
.captcha-container {
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(253,250,244,0.6);
    border: 1px solid #e8e2d4;
}

.captcha-question {
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 500;
}

.captcha-input {
    max-width: 200px;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* Contact Info */
.contact-info {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f5f5f5;
}

.contact-info h3 {
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 16px;
    text-align: left;
}

.contact-info a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.6;
}

/* Legal Page */
.legal-page {
    padding: 60px 0;
    background-color: #ffffff;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-intro {
    font-style: italic;
    color: #666666;
    margin-bottom: 40px;
}

.legal-content h2 {
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 28px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

.legal-content ul {
    margin: 20px 0 20px 30px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.legal-footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.legal-footer a:hover {
    opacity: 0.6;
}

/* Footer */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 30px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 2px;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: left;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333333;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.footer-bottom p {
    color: #999999;
    font-size: 14px;
    text-align: center;
}


/* ─── Sélecteur de langue ─────────────────────────────── */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 20px;
    flex-shrink: 0;
}
.lang-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #000000;
    cursor: pointer;
    padding: 4px 5px;
    opacity: 0.35;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
    line-height: 1;
}
.lang-btn.active,
.lang-btn:hover {
    opacity: 1;
}
.lang-sep {
    color: #cccccc;
    font-size: 10px;
    user-select: none;
    line-height: 1;
}

/* ─── Chapeau mentions légales traduction ─────────────── */
.legal-chapeau-i18n {
    display: none;
    background-color: #f0f0f0;
    border-left: 3px solid #000;
    padding: 14px 20px;
    margin-bottom: 32px;
    font-size: 13px;
    font-style: italic;
    color: #444;
    line-height: 1.7;
}
.legal-chapeau-i18n.visible {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 170px;
    }

    .nav-links {
        gap: 15px;
        font-size: 13px;
    }

    .logo-svg {
        width: 230px;
    }

    header.scrolled .logo-svg {
        width: 180px;
    }

    .linkedin-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-subtitle {
        font-size: 16px;
        text-align: left;
        line-height: 1.75;
    }

    .service-card h3 {
        font-size: 14px;
    }
    .expertise-label {
        font-size: 14px;
    }


    .expertise-cards {
        grid-template-columns: 1fr 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .value-item h4 {
        font-size: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .lang-selector {
        margin-left: 0;
    }

    .page-header {
        padding: 36px 0 20px;
    }

    .about-intro,
    .expertise {
        padding: 32px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 30px;
        margin-bottom: 22px;
    }

    .hero h1 {
        font-size: 30px;
        margin-bottom: 28px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 15px;
        text-align: left;
        line-height: 1.75;
        margin-bottom: 32px;
    }

    /* p justifié → aligné gauche sur très petit écran */
    p {
        text-align: left;
    }

    h2 {
        font-size: 24px;
    }

    .hero {
        min-height: 50vh;
        padding: 60px 0;
    }

    .expertise-cards {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item h4 {
        font-size: 20px;
    }

    body {
        padding-top: 160px;
    }

    .logo-svg {
        width: 210px;
    }

    header.scrolled .logo-svg {
        width: 160px;
    }
}