/* Définition des variables de couleur et de la police */
:root {
    --font-main: 'Poppins', sans-serif;
    --accent-color: #00A3FF;
    
    /* Thème sombre par défaut */
    --bg-color: #121212;
    --bg-secondary-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-color-muted: #888;
    --border-color: #333;
}

body.light-theme {
    --bg-color: #f4f7f9;
    --bg-secondary-color: #ffffff;
    --text-color: #222222;
    --text-color-muted: #666;
    --border-color: #e0e0e0;
}

body {
    font-family: var(--font-main);
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;
}

a { color: var(--accent-color); text-decoration: none; }

/* === NOUVELLE SECTION D'INTRODUCTION === */
#intro-section {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
}

#tagline-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 1; /* Couche la plus basse de l'intro */
    opacity: 0; /* Caché au début */
    will-change: opacity, transform;
}

#tagline-container h2 {
    font-size: 3em;
    font-weight: 300; /* Style léger et élégant */
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.image-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    background-color: transparent; /* Fond transparent pour voir le slogan derrière */
    position: relative;
    z-index: 2; /* Au-dessus du slogan */
}

.grid-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    will-change: transform, opacity;
}

#large-image { grid-column: 1 / 2; grid-row: 1 / 3; }
#small-image-top { grid-column: 2 / 3; grid-row: 1 / 2; }
#small-image-bottom { grid-column: 2 / 3; grid-row: 2 / 2; }

.intro-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3; /* Couche la plus haute */
    will-change: opacity;
}

#poncelys-logo {
    max-width: 450px; /* Ajustez la taille de votre logo */
    width: 80vw;
    height: auto;
}

/* === RESTE DU SITE (inchangé) === */
#main-content {
    position: relative;
    z-index: 1;
    background-color: var(--bg-color);
    padding-top: 100vh;
}
.text-section {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
h2 {
    font-size: 2.8em;
    font-weight: 600;
    margin-bottom: 15px;
}
.subtitle {
    font-size: 1.3em;
    color: var(--text-color-muted);
    max-width: 700px;
    margin: 0 auto 50px auto;
}
.parallax-link {
    display: block;
    cursor: pointer;
}
.image-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.image-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}
.parallax-link:hover .image-section::before {
    background-color: rgba(0, 0, 0, 0.2);
}
.overlay-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 25px 40px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.parallax-link:hover .overlay-text {
    transform: scale(1.05);
}
.overlay-text h3 {
    font-size: 2em;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.cta-text {
    font-weight: 300;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
    display: inline-block;
}
#contact { background-color: var(--bg-secondary-color); }
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
}
.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}
.contact-form form input, .contact-form button, #guide-form input, #guide-form button {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--font-main);
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
}
.contact-form button, #guide-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}
.contact-form button:hover, #guide-form button:hover {
    background-color: #008ad6;
    transform: translateY(-2px);
}
#guides { background-color: var(--bg-color); }
#guide-form {
    max-width: 500px;
    margin: 0 auto;
}
.modal {
    display: none;
    position: fixed; z-index: 100;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center; align-items: center;
}
.modal-content {
    background-color: var(--bg-secondary-color);
    padding: 20px; border-radius: 8px;
    width: 80%; height: 85%; max-width: 900px;
    position: relative; display: flex; flex-direction: column;
}
.close-button {
    color: #aaa; position: absolute; top: 10px; right: 25px;
    font-size: 35px; font-weight: bold; cursor: pointer;
}
.modal-content iframe { width: 100%; height: 100%; border: 1px solid var(--border-color); margin-top: 15px; }
#theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 101;
    background-color: var(--bg-secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}
#theme-switcher:hover { transform: scale(1.1); }
#theme-switcher svg {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}
.light-theme #theme-icon-sun { display: none; }
.dark-theme #theme-icon-moon { display: none; }

/* Ajoutez ces styles à la fin de votre fichier style.css */

/* --- Section Estimateur --- */
#estimator {
    background-color: var(--bg-secondary-color);
}

#estimator-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#estimator-form input {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--font-main);
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.estimator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

#estimator-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    transition: transform 0.2s, background-color 0.2s;
}

#estimator-form button:hover {
    background-color: #008ad6;
    transform: translateY(-2px);
}

#estimator-result {
    margin-top: 40px;
    padding: 30px;
    min-height: 100px;
    background-color: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-content {
    animation: fadeIn 0.5s ease-in-out;
}

.result-content p {
    margin: 0;
    font-size: 1.1em;
    color: var(--text-color-muted);
}

.result-content .revenue {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.result-content .details {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    font-size: 1em;
}

.error-message {
    color: #ff6b6b;
    font-size: 1.1em;
}

.loader {
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}