/**
* STYLES PERSONNALISÉS - BISOUS CRÊPERIE
* Crêperie artisanale Paris 11ème
*/

:root {
--primary-color: #c20b05;
--white: #ffffff;
--dark: #1a1a1a;
--light-gray: #f8f9fa;
--transition: all 0.3s ease;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Poppins', sans-serif;
color: var(--dark);
overflow-x: hidden;
}

/* === NAVIGATION === */
.navbar {
background-color: var(--white) !important;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
transition: var(--transition);
padding: 1rem 0;
}

.navbar.scrolled {
padding: 0.5rem 0;
}

.navbar-brand img {
height: 60px;
transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
height: 50px;
}

.navbar-nav .nav-link {
color: var(--dark) !important;
font-weight: 500;
margin: 0 15px;
transition: var(--transition);
position: relative;
padding: 0.5rem 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 50%;
background-color: var(--primary-color);
transition: var(--transition);
transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
width: 100%;
}

/* === HERO SECTION === */
.hero-section {
position: relative;
height: 100vh;
min-height: 600px;
background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url('https://images.unsplash.com/photo-1554520735-0a6b8b6ce8b7?w=1920') center/cover;
display: flex;
align-items: center;
color: var(--white);
}

.hero-content h1 {
font-size: 4rem;
font-weight: 700;
margin-bottom: 1rem;
animation: fadeInUp 1s ease;
}

.hero-content p {
font-size: 1.5rem;
margin-bottom: 2rem;
animation: fadeInUp 1s ease 0.2s;
animation-fill-mode: both;
}

.btn-primary-custom {
background-color: var(--primary-color);
color: var(--white);
border: none;
padding: 15px 40px;
font-size: 1.1rem;
font-weight: 600;
border-radius: 50px;
transition: var(--transition);
animation: fadeInUp 1s ease 0.4s;
animation-fill-mode: both;
text-decoration: none;
display: inline-block;
}

.btn-primary-custom:hover {
background-color: #9a0904;
color: var(--white);
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(194, 11, 5, 0.3);
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* === SECTIONS GÉNÉRALES === */
section {
padding: 80px 0;
}

.section-title {
text-align: center;
margin-bottom: 50px;
}

.section-title h2 {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 15px;
position: relative;
display: inline-block;
}

.section-title h2::after {
content: '';
position: absolute;
width: 60%;
height: 3px;
background-color: var(--primary-color);
bottom: -10px;
left: 50%;
transform: translateX(-50%);
}

.section-title p {
font-size: 1.1rem;
color: #666;
margin-top: 25px;
}

/* === À PROPOS SECTION === */
#about {
background-color: var(--light-gray);
}

.about-content {
display: flex;
align-items: center;
}

.about-text h3 {
color: var(--primary-color);
font-weight: 600;
margin-bottom: 20px;
}

.about-text p {
font-size: 1.05rem;
line-height: 1.8;
color: #555;
margin-bottom: 15px;
}

.about-image {
border-radius: 15px;
overflow: hidden;
box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-image img {
width: 100%;
height: auto;
transition: transform 0.5s ease;
}

.about-image:hover img {
transform: scale(1.05);
}

/* === NOS ENGAGEMENTS (FEATURES) === */
.feature-box {
text-align: center;
padding: 30px;
border-radius: 10px;
transition: var(--transition);
height: 100%;
}

.feature-box:hover {
background-color: var(--white);
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
transform: translateY(-10px);
}

.feature-box i {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 20px;
}

.feature-box h4 {
font-weight: 600;
margin-bottom: 15px;
color: var(--dark);
}

.feature-box p {
color: #666;
line-height: 1.6;
}

/* === GALERIE SECTION === */
#galerie {
background-color: var(--light-gray);
}

.gallery-item {
position: relative;
overflow: hidden;
border-radius: 10px;
margin-bottom: 30px;
cursor: pointer;
}

.gallery-item img {
width: 100%;
height: 300px;
object-fit: cover;
transition: transform 0.5s ease;
}

.gallery-item:hover img {
transform: scale(1.1);
}

.gallery-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(194, 11, 5, 0.8);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
opacity: 1;
}

.gallery-overlay i {
font-size: 2.5rem;
color: var(--white);
}

/* === CONTACT SECTION === */
#contact {
background: linear-gradient(135deg, var(--primary-color) 0%, #9a0904 100%);
color: var(--white);
}

#contact .section-title h2,
#contact .section-title h2::after {
color: var(--white);
background-color: var(--white);
}

#contact .section-title p {
color: rgba(255,255,255,0.9);
}

/* === FORMULAIRE DE CONTACT - VERSION GRILLE 2 COLONNES === */
.contact-form-wrapper {
background: var(--white);
padding: 40px;
border-radius: 15px;
height: 100%;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form-wrapper h3 {
color: var(--primary-color);
font-weight: 700;
margin-bottom: 30px;
text-align: center;
}

/* ✅ GRILLE 2 COLONNES POUR LE FORMULAIRE */
.contact-form-wrapper .contact-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}

/* ✅ ÉLÉMENTS PLEINE LARGEUR */
.contact-form-wrapper .form-full {
grid-column: 1 / -1;
}

/* ✅ INPUTS - SANS margin-bottom */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea,
.contact-form-wrapper select {
width: 100%;
padding: 12px 15px;
border: 1px solid #e0e0e0;
border-radius: 8px;
background-color: #f8f9fa;
font-size: 0.95rem;
transition: all 0.3s ease;
font-family: 'Poppins', sans-serif;
margin: 0;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
color: #aaa;
opacity: 1;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(194, 11, 5, 0.1);
outline: none;
background-color: var(--white);
color: var(--dark);
}

.contact-form-wrapper textarea {
min-height: 120px;
resize: vertical;
}

/* Centrer le recaptcha */
.contact-form-wrapper .form-recaptcha {
display: flex;
justify-content: center;
align-items: center;
}

.contact-form-wrapper .g-recaptcha {
display: flex;
justify-content: center;
}

/* Message d'erreur captcha */
.contact-form-wrapper .form-error {
background: #fee;
color: #c00;
padding: 10px 15px;
border-radius: 8px;
border: 1px solid #fcc;
text-align: center;
font-size: 0.9rem;
margin: 0;
}

/* Bouton submit bleu */
.contact-form-wrapper .form-submit {
background: linear-gradient(135deg, #1e5bb8 0%, #4a90e2 100%);
color: var(--white);
border: none;
padding: 14px 40px;
font-size: 1rem;
font-weight: 600;
border-radius: 8px;
width: 100%;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Poppins', sans-serif;
margin: 0;
}

.contact-form-wrapper .form-submit:hover {
background: linear-gradient(135deg, #174a99 0%, #3a7bc8 100%);
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(30, 91, 184, 0.3);
}

/* Notifications */
.form-notification {
position: fixed;
bottom: 20px;
right: 20px;
padding: 16px 24px;
border-radius: 10px;
z-index: 9999;
font-family: 'Poppins', sans-serif;
font-weight: 500;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
animation: slideIn 0.3s ease, slideOut 0.3s ease 4.7s forwards;
}

.form-notification-success {
background: #10b981;
color: white;
}

.form-notification-error {
background: #ef4444;
color: white;
}

@keyframes slideIn {
from { transform: translateX(400px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
to { transform: translateX(400px); opacity: 0; }
}

/* === BOX INFOS DE CONTACT (Droite) === */
.contact-info-box {
background: rgba(255, 255, 255, 0.1);
padding: 40px;
border-radius: 15px;
backdrop-filter: blur(10px);
height: 100%;
border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info-box h3 {
color: var(--white);
font-weight: 600;
margin-bottom: 30px;
text-align: center;
font-size: 1.5rem;
}

.contact-item-inline {
display: flex;
align-items: flex-start;
margin-bottom: 30px;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
transition: var(--transition);
}

.contact-item-inline:last-child {
margin-bottom: 0;
}

.contact-item-inline:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateX(10px);
}

.contact-item-inline i {
font-size: 2rem;
margin-right: 20px;
color: var(--white);
min-width: 40px;
}

.contact-item-inline h5 {
margin-bottom: 8px;
font-weight: 600;
color: var(--white);
font-size: 1.1rem;
}

.contact-item-inline p {
margin: 0;
opacity: 0.95;
line-height: 1.6;
color: var(--white);
}

.contact-item-inline a {
color: var(--white);
text-decoration: none;
transition: opacity 0.3s ease;
}

.contact-item-inline a:hover {
opacity: 0.8;
text-decoration: underline;
}

/* === CARTE GOOGLE MAPS PLEINE LARGEUR === */
.map-container-full {
border-radius: 15px;
overflow: hidden;
height: 450px;
width: 100%;
}

.map-container-full iframe {
width: 100%;
height: 100%;
border: 0;
}

/* === BOUTON RETOUR EN HAUT === */
.scroll-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background-color: var(--primary-color);
color: var(--white);
border: none;
border-radius: 50%;
font-size: 1.5rem;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: var(--transition);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}

.scroll-to-top.show {
opacity: 1;
visibility: visible;
}

.scroll-to-top:hover {
background-color: #9a0904;
transform: translateY(-5px);
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
.contact-form-wrapper,
.contact-info-box {
margin-bottom: 30px;
}
}

@media (max-width: 768px) {
.hero-content h1 {
font-size: 2.5rem;
}

.hero-content p {
font-size: 1.2rem;
}

.section-title h2 {
font-size: 2rem;
}

.navbar-nav .nav-link {
margin: 10px 0;
}

.contact-form-wrapper,
.contact-info-box {
padding: 25px 20px;
}

.contact-form-wrapper h3,
.contact-info-box h3 {
font-size: 1.3rem;
}

/* 1 colonne sur mobile */
.contact-form-wrapper .contact-form {
grid-template-columns: 1fr;
gap: 12px;
}

.contact-form-wrapper .form-full {
grid-column: 1;
}

.contact-item-inline {
padding: 15px;
}

.contact-item-inline i {
font-size: 1.5rem;
margin-right: 15px;
}

.map-container-full {
height: 350px;
}
}

@media (max-width: 576px) {
.hero-content h1 {
font-size: 2rem;
}

.hero-content p {
font-size: 1rem;
}

.btn-primary-custom {
padding: 12px 30px;
font-size: 1rem;
}

section {
padding: 60px 0;
}

.gallery-item img {
height: 250px;
}

.contact-form-wrapper,
.contact-info-box {
padding: 20px 15px;
}
}
