/* style.css */
:root {
    --primary: #2B6CB0;
    --secondary: #68D391;
    --accent: #FC8181;
    --dark: #2D3748;
    --light: #F7FAFC;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Neural Background */
#neural-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Typography & Layout */
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--primary); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* Navigation */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 50px;
    position: fixed; width: 100%; top: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo { font-weight: 700; font-size: 1.5rem; color: var(--dark); }
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 30px; }
nav a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
.btn-nav { background: var(--primary); color: white !important; padding: 8px 20px; border-radius: 50px; }

/* Hero */
header {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding-top: 60px;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.highlight { color: var(--accent); position: relative; display: inline-block; }
.highlight::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 10px;
    background: var(--secondary); opacity: 0.3; z-index: -1;
    transform: skewX(-15deg);
}
.cta-button {
    display: inline-block; background: var(--primary); color: white;
    padding: 15px 40px; border-radius: 50px; text-decoration: none;
    font-weight: 700; margin-top: 30px; transition: transform 0.3s, box-shadow 0.3s;
    border: none; cursor: pointer;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(43, 108, 176, 0.3); }

/* Cards & Services */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }

.card {
    background: var(--glass);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.card:hover { transform: translateY(-10px); border-color: var(--secondary); }
.icon { font-size: 2.5rem; margin-bottom: 15px; }

/* Forms & Contact */
.contact-box {
    background: white; padding: 50px; border-radius: 20px;
    box-shadow: var(--shadow); text-align: center;
    max-width: 600px; margin: 0 auto;
}
.input-group { position: relative; margin-bottom: 30px; text-align: left; }
input, textarea {
    width: 100%; padding: 10px; border: none; border-bottom: 2px solid #ddd;
    outline: none; font-family: inherit; font-size: 1rem; background: transparent;
}
textarea { resize: vertical; height: 100px; }
label {
    position: absolute; left: 10px; top: 10px; color: #999;
    transition: 0.3s; pointer-events: none;
}
input:focus ~ label, input:valid ~ label,
textarea:focus ~ label, textarea:valid ~ label {
    top: -20px; font-size: 0.8rem; color: var(--primary);
}
input:focus, textarea:focus { border-bottom-color: var(--primary); }

/* Guestbook */
.review-card {
    background: white; padding: 15px; border-radius: 10px;
    margin-bottom: 15px; border-left: 4px solid var(--secondary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.guestbook-grid { max-height: 400px; overflow-y: auto; margin-bottom: 30px; padding: 10px; }
.simple-form { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.simple-form input, .simple-form textarea { border: 1px solid #ddd; border-radius: 5px; padding: 10px; }

/* Animations */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    nav ul { display: none; } /* Simplification mobile */
}

/* --- AMÉLIORATION LIVRE D'OR --- */
/* Le liseré style "Glassmorphism" renforcé */
.guestbook-grid {
    border: 1px solid rgba(43, 108, 176, 0.3); /* Bleu synaptique léger */
    background: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 20px rgba(43, 108, 176, 0.05);
    border-radius: 15px;
    padding: 20px !important; /* Force le padding */
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Pagination */
.pagination-controls {
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.page-btn {
    background: white; border: 1px solid var(--primary); color: var(--primary);
    padding: 5px 15px; border-radius: 20px; cursor: pointer; transition: 0.3s;
}
.page-btn:hover { background: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: #ccc; color: #ccc; }
.page-info { align-self: center; font-size: 0.9rem; color: #666; }

/* --- CUSTOM MODAL (Remplacement Alert) --- */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center; z-index: 10000;
    opacity: 0; transition: opacity 0.3s ease;
}
.custom-modal-overlay.active { opacity: 1; }

.custom-modal-box {
    background: white; padding: 30px; border-radius: 15px; max-width: 400px; width: 90%;
    text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.custom-modal-overlay.active .custom-modal-box { transform: translateY(0); }

.modal-icon { font-size: 3rem; margin-bottom: 10px; display: block; }
.modal-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; display: block; color: var(--dark); }
.modal-text { color: #666; margin-bottom: 20px; }
.modal-close-btn {
    background: var(--primary); color: white; border: none; padding: 10px 25px;
    border-radius: 50px; cursor: pointer; font-size: 1rem; transition: 0.3s;
}
.modal-close-btn:hover { background: var(--secondary); }