/* css/style.css */
:root {
    /* Palette de couleurs */
    --color-primary: #FAEDCD;
    /* Principale */
    --color-accent: #D4A373;
    /* Couleur d'accent */
    --color-light-1: #FEFAE0;
    --color-light-2: #E9EDC9;
    --color-green-soft: #CCD5AE;

    /* Textes */
    --text-main: #6b5f4f;
    /* Plus doux que l'ancien marron très foncé */
    --text-muted: #8c8172;

    /* Typographie */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* UI / UX */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius: 16px;
    --shadow-soft: 0 15px 35px rgba(69, 60, 48, 0.08);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--color-light-1);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #bc8955;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-small {
    max-width: 800px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-large {
    font-size: 1.25rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.pt-10 {
    padding-top: 6rem;
}

.pb-10 {
    padding-bottom: 6rem;
}

.bg-light {
    background-color: var(--color-light-2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.35);
}

.btn-secondary {
    background-color: var(--color-green-soft);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #bbcc8b;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--color-primary);
}

.btn-large {
    padding: 1.15rem 2.75rem;
    font-size: 1.15rem;
}

/* Header */
.main-header {
    background-color: rgba(254, 250, 224, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid rgba(212, 163, 115, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--color-accent);
}

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

.main-nav a {
    color: var(--text-main);
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero-section {
    padding: 10rem 0 8rem;
    background: linear-gradient(rgba(254, 250, 224, 0.8), rgba(254, 250, 224, 0.8)), url('/img/hero_wedding.png?v=1');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(250, 237, 205, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.accent-text {
    color: var(--color-accent);
    font-style: italic;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Glassmorphism Placeholder */
.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Glassmorphism Refined */
.glass-box {
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(107, 95, 79, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3rem;
    transition: var(--transition);
}

.glass-box:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(212, 163, 115, 0.1);
}

.card.hover-up:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(69, 60, 48, 0.12);
}

.card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

.card p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
}

.link-arrow::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.link-arrow:hover::after {
    transform: translateX(8px);
}

/* Footer */
.main-footer {
    background-color: var(--color-primary);
    color: var(--text-main);
    padding: 6rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 80%;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-legal a {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(107, 95, 79, 0.1);
    color: var(--text-muted);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* JS Animation Class */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .image-placeholder {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }
}

/* Formulaires d'inscription / Connexion */
.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.role-card {
    cursor: pointer;
    position: relative;
    display: block;
}

.role-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card-content {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(212, 163, 115, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.role-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.role-card-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.role-card input:checked + .role-card-content {
    background: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(134, 126, 114, 0.2);
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

@media (max-width: 576px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
}