/* VARIANTE 3 - MIXTE/ÉQUILIBRÉE */
/* Mix élégant entre clarté et sophistication */

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #2c2c2c;
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --text-muted: #6b6b6b;
    --accent-primary: #c9184a;
    --accent-secondary: #ff6b9d;
    --accent-gold: #d4af37;
    --accent-teal: #008b8b;
    --border-light: #e5e5e5;
    --border-dark: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TYPOGRAPHIE */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

/* HEADER & NAVIGATION */
header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 400;
    font-family: 'Playfair Display', 'Georgia', serif;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* MAIN CONTENT */
main {
    flex: 1;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #2c2c2c 100%);
    position: relative;
}

.hero-home {
    padding: 3rem 2rem;
}

.hero h1 {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(201, 24, 74, 0.25);
}

.cta-button:hover {
    background: #a01339;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(201, 24, 74, 0.35);
}

.cta-button.outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: none;
}

.cta-button.outline:hover {
    background: var(--accent-primary);
    color: white;
}

.section {
    padding: 2rem 0;
}

.section.dark {
    background: var(--bg-secondary);
    color: var(--text-light);
}

.section.dark h2,
.section.dark h3,
.section.dark h4 {
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
    margin: 1.5rem auto 0;
    border-radius: 3px;
}

/* CARDS & GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(201, 24, 74, 0.15);
}

.section.dark .card {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-dark);
}

.section.dark .card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* ALEGRIA SHOWCASE */
.alegria-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 3rem 0;
}

.alegria-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.alegria-details {
    background: linear-gradient(135deg, #fff5f5, #f5f5f5);
    padding: 2.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    border-left: 4px solid var(--accent-primary);
}

.alegria-details p {
    margin: 0.6rem 0;
}

/* FORM */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(201, 24, 74, 0.1);
}

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

button[type="submit"] {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 24, 74, 0.25);
}

button[type="submit"]:hover {
    background: #a01339;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(201, 24, 74, 0.35);
}

/* FOOTER */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ACCENTS */
.highlight-box {
    background: linear-gradient(135deg, #fff5f5, #f5f5f5);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    margin: 2rem 0;
}

.section.dark .highlight-box {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent-gold);
}

.badge {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* GRILLES RESPONSIVES POUR PAGES SPÉCIFIQUES */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* RESPONSIVE */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .container {
        padding: 3rem 1.5rem;
    }
    
    .hero {
        padding: 1.5rem 1.5rem;
    }
    
    .hero-home {
        padding: 2rem 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .card {
        padding: 2rem;
    }
}

/* Tablettes portrait et mobiles larges */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    
    nav {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-links {
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
    }
    
    h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 1rem 1rem;
    }
    
    .hero-home {
        padding: 1.5rem 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 2.5rem 1rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .alegria-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .highlight-box {
        padding: 1.8rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 320px;
    }
    
    /* Formulaire de contact responsive */
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    input,
    textarea,
    select {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    button[type="submit"] {
        width: 100%;
        padding: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* Mobiles en mode paysage et petites tablettes */
@media (max-width: 640px) {
    .section-title::after {
        width: 60px;
        height: 2px;
        margin: 1rem auto 0;
    }
    
    .badge {
        padding: 0.3rem 0.9rem;
        font-size: 0.75rem;
    }
    
    /* Adaptation du hero de la page d'accueil avec logo */
    .hero img {
        max-width: 120px !important;
    }
    
    .alegria-details {
        padding: 1.5rem;
    }
}

/* Smartphones en mode portrait */
@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }
    
    h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: clamp(1.4rem, 7vw, 1.9rem);
    }
    
    .hero {
        padding: 0.8rem 0.8rem;
    }
    
    .hero-home {
        padding: 1.2rem 0.8rem;
    }
    
    .container {
        padding: 2rem 0.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .highlight-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Espacement réduit pour mobile */
    .section {
        padding: 2rem 0;
    }
    
    .cards-grid {
        margin-top: 1.5rem;
    }
    
    /* Footer mobile */
    footer {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    body {
        font-size: 0.9rem;
    }
    
    .logo-text {
        display: none; /* Cache le texte du logo sur très petits écrans */
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 0.6rem 0.5rem;
    }
    
    .hero-home {
        padding: 1rem 0.5rem;
    }
    
    .container {
        padding: 1.5rem 0.5rem;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.7s ease-out;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}
