/* ==========================================================================
   Mariage R & N — feuille de style partagée
   Direction : maison de luxe — ivoire, encre, or, silences.
   ========================================================================== */

@font-face {
    font-family: 'The Seasons';
    src: url('TheSeasons-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('TheSeasons-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ivory: #F8F4EC;
    --ivory-deep: #EFE6D5;
    --card: #FFFDF9;
    --ink: #26221F;
    --taupe: #7C7166;
    --gold: #A3814F;
    --gold-pale: #DCC9A3;
    --line: rgba(38, 34, 31, 0.14);
    --shadow: 0 30px 70px rgba(38, 34, 31, 0.10);
    --shadow-soft: 0 14px 34px rgba(38, 34, 31, 0.08);
    --font-display: 'The Seasons', 'Cormorant Garamond', serif;
    --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
    background-color: var(--ivory);
    font-family: var(--font-sans);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* --------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------- */

.eyebrow {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
}

.display {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ink);
}

/* --------------------------------------------------------------------
   Signature : motif rayonnant (écho des cannelures du coquillage)
   -------------------------------------------------------------------- */

.sunburst {
    position: relative;
}

.sunburst::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
        from 0deg,
        rgba(163, 129, 79, 0.10) 0deg 3deg,
        transparent 3deg 15deg
    );
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.sunburst > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------
   Séparateur : trait fin + losange (motif de faire-part)
   -------------------------------------------------------------------- */

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 220px;
    margin: 18px auto;
}

.divider span {
    flex: 1;
    height: 1px;
    background: var(--gold-pale);
}

.divider i {
    width: 6px;
    height: 6px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------- */

.btn-line {
    display: inline-block;
    text-decoration: none;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 16px 46px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.btn-line:hover {
    background-color: var(--ink);
    color: var(--ivory);
}

.btn-line:disabled {
    cursor: default;
}

.btn-line:disabled:hover {
    background-color: transparent;
    color: var(--ink);
}

/* --------------------------------------------------------------------
   Voile de révélation : la recherche et le message de bienvenue
   prennent tout l'écran, comme l'instant où l'on ouvre une invitation
   qui porte son nom.
   -------------------------------------------------------------------- */

.reveal-overlay {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
    z-index: 1000;
}

.reveal-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease;
}

.reveal-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.reveal-overlay .logo-mark {
    width: 64px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-overlay.is-active .logo-mark {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.reveal-message {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    max-width: 300px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease, color 0.4s ease, font-size 0.4s ease;
}

.reveal-overlay.is-active .reveal-message {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.reveal-message.is-searching {
    animation: label-breathe 1.7s ease-in-out infinite;
}

.reveal-message.is-welcome {
    color: var(--gold);
    font-size: 1.8rem;
}

.reveal-message.is-notfound {
    color: #8B4A3D;
}

@keyframes label-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-overlay, .reveal-overlay .logo-mark, .reveal-message {
        transition: none;
    }
    .reveal-message.is-searching {
        animation: none;
    }
}

/* --------------------------------------------------------------------
   Cadre photo / vidéo (effet passe-partout)
   -------------------------------------------------------------------- */

.frame {
    background: var(--card);
    border: 1px solid var(--gold-pale);
    padding: 10px;
    box-shadow: var(--shadow-soft);
}

.frame img,
.frame video {
    display: block;
    width: 100%;
}

/* --------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------- */

.logo-mark {
    width: 67px;
    height: auto;
    margin: 0 auto 17px;
    filter: drop-shadow(0 6px 14px rgba(38, 34, 31, 0.12));
    
    /* 🚀 Le correctif magique pour Safari */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: filter, opacity;
}

.logo-mark-light {
    width: 96px;
    height: auto;
    margin: 26px auto 0;
    opacity: 0.9;
}

/* --------------------------------------------------------------------
   Structure générale
   -------------------------------------------------------------------- */

.section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 4.5rem 1.5rem;
    text-align: center;
}

.section-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --------------------------------------------------------------------
   Hero (bloc vidéo / accueil)
   -------------------------------------------------------------------- */

.hero-section {
    padding-top: 1rem;
}

.hero-eyebrow {
    margin-bottom: 14px;
}

.hero-caption {
    margin-top: 16px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--taupe);
}

video {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 16;
    max-height: 48vh;
    object-fit: cover;
    background-color: var(--ivory-deep);
}

.video-frame {
    max-width: 280px;
    margin: 0 auto 30px;
}

.scroll-cue {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-cue .line {
    width: 1px;
    height: 34px;
    background: var(--gold-pale);
    animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(0.55); opacity: 1; }
}

/* --------------------------------------------------------------------
   Carte "Save the Date"
   -------------------------------------------------------------------- */

.save-card {
    background: var(--card);
    width: 100%;
    border: 1px solid var(--gold-pale);
    box-shadow: var(--shadow);
    padding: 40px 34px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.save-card .photo-frame {
    width: 100%;
    margin-bottom: 30px;
}

.save-card .photo-frame img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
}

.main-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    color: var(--ink);
    margin-bottom: 6px;
}

.ceremony {
    padding: 14px 0;
}

.ceremony-title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 8px;
}

.ceremony-detail {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    color: var(--ink);
}

/* --------------------------------------------------------------------
   Carte "Prochainement"
   -------------------------------------------------------------------- */

.info-card {
    background: var(--ivory-deep);
    width: 100%;
    border: 1px solid var(--gold-pale);
    padding: 44px 30px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-lead {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--taupe);
    font-weight: 300;
    margin-bottom: 26px;
    max-width: 260px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

/* Style Éditorial pour la liste Prochainement (Option 2) */
.info-list-editorial {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Un poil plus d'espace pour que ça respire */
    margin: 10px 0 20px;
}

.info-list-editorial p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.28em; /* Rappel de l'espacement élégant des boutons */
    text-transform: uppercase;
    color: var(--ink);
}

.info-list p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    padding: 12px 0;
    position: relative;
}

.info-list p:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 30%;
    height: 1px;
    background: var(--line);
}



/* --------------------------------------------------------------------
   Disposition bureau (Ordinateurs - Écrans larges)
   -------------------------------------------------------------------- */
@media (min-width: 1024px) {
    /* --- Les boîtes côte à côte --- */
    .conteneur-desktop {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        gap: 64px;
    }

    .conteneur-desktop .section {
        min-height: auto;
        padding: 0;
    }

    .save-card, .info-card {
        max-width: 340px;
    }


       /* --- Optimisation de la vidéo sur grand écran --- */
    .hero-section {
        padding-top: 1.5rem;
    }

    /* Largeur maintenue à 450px, hauteur ajustée à 64vh */
    .hero-section .video-frame {
        width: 100% !important;
        max-width: 450px !important;
        height: 64vh !important; 
        margin-bottom: 25px !important;
        padding: 10px; 
    }

    /* La vidéo remplit à 100% ce cadre élancé */
    .hero-section video {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;      
        max-height: none !important;     
        aspect-ratio: auto !important;   
        object-fit: cover !important;    
    }

    /* Ajustement des proportions du logo et du bouton */
    .hero-section .btn-line {
        padding: 16px 56px;
        font-size: 0.85rem;
    }

    .hero-section .logo-mark {
        width: 80px;
        margin-bottom: 20px;
    }


    
}

/* --------------------------------------------------------------------
   Révélation au défilement
   -------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-cue .line {
        animation: none;
    }
}

/* --------------------------------------------------------------------
   Formulaire (page d'identification)
   -------------------------------------------------------------------- */

.form-card {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.form-card h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    margin: 18px 0 34px;
}

.field {
    width: 100%;
    text-align: left;
    margin-bottom: 26px;
}

.field label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    padding: 8px 2px 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ink);
    outline: none;
    text-align: left;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-bottom: 1px solid var(--ink);
}

input::placeholder {
    color: #B7ABA0;
    font-family: var(--font-sans);
    font-weight: 300;
}

.form-card .btn-line {
    width: 100%;
    margin-top: 6px;
}

#message-erreur {
    color: #8B4A3D;
    margin-top: 22px;
    font-size: 0.85rem;
    line-height: 1.6;
    font-family: var(--font-sans);
    font-weight: 300;
    display: none;
}

/* --------------------------------------------------------------------
   Accueil (index)
   -------------------------------------------------------------------- */

.landing {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
}

.landing-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.landing-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: 0.05em;
    margin: 22px 0 34px;
}

.landing-logo {
    width: 190px;
    height: auto;
    margin-bottom: 34px;
    
    /* L'ombre de Claude */
    filter: drop-shadow(0 14px 26px rgba(38, 34, 31, 0.14));
    
    /* 🚀 Le correctif magique pour Safari */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: filter, opacity;
}

/* --------------------------------------------------------------------
   Petits ajustements responsives
   -------------------------------------------------------------------- */

@media (max-width: 380px) {
    .save-card, .info-card { padding-left: 24px; padding-right: 24px; }
    .landing-title { font-size: 1.6rem; }
}
/* Correctif sur-mesure pour la vidéo de la page Hestia */
@media (max-width: 767px) {
    .hero-section .video-frame {
        max-height: 72vh !important; /* Un poil plus haut pour englober la vidéo + les 10px de padding du cadre */
        max-width: 290px !important;
        height: auto !important;     /* Force le cadre à épouser la hauteur */
        margin-bottom: 20px !important;
    }

    .hero-section video {
        max-height: 65vh !important;
        max-width: 100% !important;  /* Force la vidéo à rester sagement dans le cadre */
        height: auto !important;
    }
}

/* --------------------------------------------------------------------
   Signature de clôture (bas des pages de destination)
   -------------------------------------------------------------------- */

.closing-signature-wrap {
    text-align: center;
    padding: 3rem 1.5rem 4.5rem;
}

.closing-signature {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.closing-signature.is-monogram {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.28em;
    color: var(--gold);
}

@media (min-width: 1024px) {
    .closing-signature-wrap {
        padding-top: 0;
    }
}

@media (max-width: 1023px) {
    .conteneur-desktop .section:last-of-type {
        min-height: auto;
        padding-bottom: 2rem;
    }
    .closing-signature-wrap {
        padding-top: 1rem;
    }
}