/* --- VARIABLES & BASE --- */
:root {
    --primary: #7f50bc;
    --primary-light: #9b72cf; /* Version plus claire pour le hover */
    --anthracite: #2d2d2d;
    --grey-metal: #f5f5f7;
    --border: #e5e5e7;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--anthracite);
    background-color: var(--white);
    line-height: 1.6;
    margin: 0;
}

/* --- NAVIGATION --- */
.glass-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
}

.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-links a {
    text-decoration: none; color: var(--anthracite);
    margin-left: 25px; font-weight: 500; font-size: 0.95rem;
}

.btn-nav {
    background: var(--primary); color: white !important;
    padding: 10px 20px; border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-nav:hover { background: var(--primary-light); transform: scale(1.05); }

/* --- HERO --- */
.hero { 
    text-align: center; 
    padding: 120px 20px; 
    position: relative; 
    overflow: hidden; 
}

.hero::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/fond-focaleo.webp');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0.15; z-index: -1; filter: grayscale(85%);
}

.hero h1 { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.04em; }
.purple-gradient { background: linear-gradient(135deg, #7f50bc, #a37fdb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- GRID & CARDS --- */
.problems-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; padding: 0 40px 100px; max-width: 1200px; margin: 0 auto;
}

.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 24px; padding: 40px 30px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: 0.3s; cursor: pointer;
}

.card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-5px); }

/* --- BOUTONS (Effet Smooth ajouté ici) --- */
.btn-primary, .btn-primary-small, .btn-submit {
    background: var(--primary); color: white; border: none;
    border-radius: 30px; font-weight: 600; cursor: pointer;
    /* Transition "Physique" */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Hover : plus clair + zoom + ombre portée */
.btn-primary:hover, .btn-primary-small:hover, .btn-submit:hover {
    background-color: var(--primary-light);
    transform: scale(1.05); /* 1.05 est plus élégant que 1.1 qui peut flouter le texte */
    box-shadow: 0 10px 20px rgba(127, 80, 188, 0.3);
}

.btn-primary-small { padding: 10px 25px; font-size: 0.9rem; margin-top: auto; }
.btn-primary { padding: 18px 40px; font-size: 1.1rem; margin-top: 20px; }
.btn-submit { padding: 20px; font-size: 1.1rem; width: 100%; margin-top: 20px; }

.cta-center { text-align: center; margin: 20px 0 10px; width: 100%; }

.btn-secondary-small {
    background: var(--white); color: var(--primary);
    border: 2px solid var(--primary); border-radius: 30px;
    padding: 10px 25px; font-weight: 600; cursor: pointer;
    transition: 0.3s;
}
.btn-secondary-small:hover { background: #f3effb; }

/* --- SOLUTIONS --- */
.solution-section { 
    background: var(--grey-metal); padding: 80px 20px; 
    border-radius: 50px; margin: 40px 20px; 
}
.sol-content { max-width: 800px; margin: 0 auto; }
.sol-content h3 { font-size: 2.5rem; margin-bottom: 20px; }
.hidden { display: none; }

#solutions-anchor { scroll-margin-top: 160px; }

/* --- ABOUT SECTION --- */
.about-section { padding: 100px 20px; max-width: 1000px; margin: 0 auto; }
.about-container { display: flex; gap: 60px; align-items: center; margin-bottom: 60px; }
.about-img img { width: 350px; border-radius: 30px; box-shadow: var(--shadow); }
.about-actions { display: flex; gap: 15px; margin-top: 25px; }

.link-purple {
    color: var(--primary); text-decoration: none; font-weight: 600;
    border-bottom: 1px solid transparent; transition: 0.3s;
}
.link-purple:hover { border-bottom-color: var(--primary); }

.social-links { margin: 25px 0; display: flex; gap: 20px; }
.social-links a { text-decoration: none; color: var(--anthracite); font-weight: 600; }
.social-links i { color: var(--primary); font-size: 1.2rem; margin-right: 5px; }

/* --- TITRES DE SECTIONS MAUVES --- */
main > h2, .contact-section > h2 {
    text-align: center; font-size: 2.5rem; font-weight: 800;
    margin-top: 60px; margin-bottom: 40px;
    background: linear-gradient(135deg, #7f50bc, #a37fdb);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    color: #7f50bc; 
}

/* --- TEMOIGNAGES --- */
.testimonials-header { text-align: center; margin-bottom: 40px; }
.testimonials-header h3 { font-size: 1.8rem; color: var(--anthracite); }

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

.testimonial-card {
    background: var(--grey-metal); padding: 40px; border-radius: 25px;
    display: flex; flex-direction: column; gap: 20px;
}
.testimonial-card p { font-style: italic; color: #424245; line-height: 1.6; margin: 0; }

.testi-profile { display: flex; align-items: center; gap: 15px; }
.testi-profile img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.testi-info { display: flex; flex-direction: column; }
.testi-info strong { font-size: 1.1rem; color: var(--anthracite); }
.testi-info span { font-size: 0.9rem; color: #6e6e73; }

/* --- FORM & RGPD --- */
.contact-section { padding: 100px 20px; }
.form-wrapper { max-width: 700px; margin: 0 auto; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
input, textarea { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    width: 100%; padding: 18px; border-radius: 15px; 
    border: 1px solid var(--border); background: var(--grey-metal); font-size: 1rem; 
    transition: 0.2s;
}
input:focus, textarea:focus { background: white; border-color: var(--primary); outline: none; }

.rgpd-checkbox {
    display: flex; align-items: flex-start; gap: 12px;
    margin: 15px 0 25px 0; text-align: left;
    font-size: 0.85rem; color: #6e6e73;
}
.rgpd-checkbox input { width: 20px; height: 20px; margin: 0; cursor: pointer; accent-color: var(--primary); }
.rgpd-checkbox label { cursor: pointer; line-height: 1.4; }
.rgpd-checkbox small { display: block; color: #86868b; margin-top: 2px; }

/* --- FOOTER & MENTIONS --- */
.site-footer {
    padding: 50px 20px; border-top: 1px solid var(--border);
    background: var(--white); text-align: center;
    color: #86868b; font-size: 0.9rem;
}
.footer-container { max-width: 800px; margin: 0 auto; }

.privacy-note { font-size: 1rem; color: var(--anthracite); margin-bottom: 20px; line-height: 1.5; }
.footer-divider { border: none; border-top: 1px solid var(--border); width: 50px; margin: 20px auto; }

.legal-details { margin-top: 20px; cursor: pointer; font-size: 0.85rem; }
.legal-details summary { list-style: none; text-decoration: underline; outline: none; }
.legal-details summary::-webkit-details-marker { display: none; }

.legal-content {
    margin-top: 20px; padding: 20px; background: var(--grey-metal);
    border-radius: 15px; text-align: left;
    color: var(--anthracite); font-size: 0.85rem; line-height: 1.4;
}
.legal-content p { margin-bottom: 10px; }
.legal-content a { color: var(--primary); text-decoration: none; }

/* --- RESPONSIVE GLOBAL --- */
@media (max-width: 900px) {
    .problems-grid { grid-template-columns: 1fr; }
    .about-container { flex-direction: column; text-align: center; }
    .nav-links { display: none; } 
    .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .about-actions { flex-direction: column; }
    main > h2, .contact-section > h2 { font-size: 1.8rem; padding: 0 20px; }
}

/* --- ICONES PROBLEMATIQUES --- */
.problem-icon {
    font-size: 3rem; /* Une belle taille bien visible */
    color: var(--primary); /* Ton violet exact */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

/* Petit effet sympa : l'icône tourne ou bouge quand on survole la carte */
.card:hover .problem-icon {
    transform: scale(1.1) rotate(-5deg);
}