/* ==========================================================================
   Les Arlésiennes — feuille de style
   Palette douce et féminine : rose poudré, lavande, ivoire, or léger.
   ========================================================================== */

:root {
    /* Couleurs principales */
    --color-rose: #e8b8c2;
    --color-rose-light: #f8ebee;
    --color-rose-deep: #d497a7;
    --color-lavande: #cdb7de;
    --color-lavande-light: #f1e9f7;
    --color-ivoire: #fbf6f1;
    --color-ivoire-deep: #f4ece2;
    --color-or: #c9a86a;
    --color-or-light: #e6d3a8;

    /* Texte */
    --color-text: #4a3540;
    --color-text-soft: #7a6270;
    --color-text-inverse: #fff8f5;

    /* Système */
    --radius: 18px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 30px rgba(150, 100, 120, 0.12);
    --shadow-hover: 0 16px 40px rgba(150, 100, 120, 0.18);
    --max-width: 1120px;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Quicksand', 'Trebuchet MS', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background:
        radial-gradient(1200px 600px at 10% -10%, var(--color-rose-light) 0%, transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, var(--color-lavande-light) 0%, transparent 55%),
        var(--color-ivoire);
    line-height: 1.65;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, cite {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }

a { color: var(--color-rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-or);
    margin: 0 0 0.8em;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.85em 1.7em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-deep) 100%);
    color: #fff;
    box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: var(--shadow-hover); }

.btn-ghost {
    background: rgba(255,255,255,0.6);
    color: var(--color-text);
    border-color: var(--color-rose);
}
.btn-ghost:hover { background: #fff; }

/* ==========================================================================
   En-tête / navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 246, 241, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 168, 106, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo:hover { text-decoration: none; }

.logo-ruban {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-lavande) 100%);
    flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-text); font-weight: 600; }
.logo-baseline { font-size: 0.72rem; color: var(--color-text-soft); }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.92rem;
}
.site-nav a:hover { background: var(--color-rose-light); text-decoration: none; }
.site-nav a.active {
    background: var(--color-rose);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

/* ==========================================================================
   Hero (page d'accueil)
   ========================================================================== */

.hero {
    position: relative;
    padding: 70px 0 90px;
    overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero h1 { margin: 0 0 0.5em; }

.hero-text {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    max-width: 620px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

.hero-ribbon {
    position: absolute;
    top: -120px;
    right: -160px;
    width: 480px;
    height: 480px;
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
    background: linear-gradient(135deg, var(--color-rose-light), var(--color-lavande-light));
    z-index: 1;
}

/* ==========================================================================
   Page hero (pages secondaires)
   ========================================================================== */

.page-hero {
    padding: 56px 0 20px;
    max-width: 760px;
}
.page-hero .lead {
    font-size: 1.08rem;
    color: var(--color-text-soft);
}

/* ==========================================================================
   Intro / prose
   ========================================================================== */

.intro { padding: 10px 0 50px; }
.intro-text {
    max-width: 760px;
    font-size: 1.05rem;
    color: var(--color-text-soft);
    border-left: 3px solid var(--color-or-light);
    padding-left: 1.2em;
}

.prose-section { max-width: 760px; padding: 16px 24px 34px; }
.prose-section:first-of-type { padding-top: 8px; }

/* ==========================================================================
   Cartes (page d'accueil)
   ========================================================================== */

.section-heading { max-width: 640px; margin-bottom: 28px; }
.section-heading p { color: var(--color-text-soft); }

.cards-section { padding: 20px 0 60px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(201, 168, 106, 0.15);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card p { color: var(--color-text-soft); font-size: 0.95rem; flex-grow: 1; }
.card-link {
    font-weight: 700;
    color: var(--color-rose-deep);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ==========================================================================
   Citations
   ========================================================================== */

.quote-section {
    background: linear-gradient(135deg, var(--color-lavande-light), var(--color-rose-light));
    padding: 50px 0;
    margin: 20px 0;
}
.quote-section blockquote {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-text);
}
.quote-section cite {
    display: block;
    margin-top: 14px;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--color-text-soft);
}
.quote-section-alt blockquote { text-align: left; }
.quote-body {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1rem;
    color: var(--color-text-soft);
    margin-top: 0.8em;
}

/* ==========================================================================
   Timeline (page Histoire)
   ========================================================================== */

.timeline { padding: 30px 0 50px; }

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-top: 1px solid rgba(201, 168, 106, 0.25);
}
.timeline-item:first-child { border-top: none; }

.timeline-marker {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-or);
    font-size: 1.05rem;
    padding-top: 4px;
}

.timeline-content p { color: var(--color-text-soft); }

/* ==========================================================================
   Grilles de composants / rites
   ========================================================================== */

.components-section, .rites-section { padding: 20px 0 50px; }

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.component {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid rgba(201, 168, 106, 0.18);
}
.component p { color: var(--color-text-soft); font-size: 0.93rem; margin: 0; }

.rites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.rite-card {
    background: linear-gradient(160deg, #fff, var(--color-rose-light));
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}
.rite-age {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-or);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.rite-card p { color: var(--color-text-soft); margin: 0; }
.rites-note { color: var(--color-text-soft); font-size: 0.95rem; max-width: 680px; }

.two-col-section { padding: 10px 0 50px; }
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.two-col p { color: var(--color-text-soft); }

.next-section { padding: 10px 0 60px; }

/* ==========================================================================
   Galerie
   ========================================================================== */

.gallery-notice {
    background: var(--color-lavande-light);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 30px;
    color: var(--color-text-soft);
    font-size: 0.95rem;
}
.gallery-notice code {
    background: rgba(255,255,255,0.7);
    padding: 2px 6px;
    border-radius: 6px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.gallery-item {
    margin: 0;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.gallery-item figcaption {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--color-text-soft);
}

.photo-callout { padding: 10px 0 60px; }
.photo-callout-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--color-lavande-light), var(--color-rose-light));
    border-radius: var(--radius);
    padding: 30px;
    flex-wrap: wrap;
}
.photo-callout-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}
.photo-callout-inner h2 { margin-bottom: 0.35em; }
.photo-callout-inner p { color: var(--color-text-soft); }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(74, 53, 64, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: min(90vw, 900px);
    max-height: 78vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox p {
    color: #fff;
    margin-top: 14px;
    font-family: var(--font-heading);
}
.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation; /* évite le délai/double-tap du navigateur sur mobile */
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-counter {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-top: 6px;
}

@media (max-width: 600px) {
    /* Boutons un peu plus grands et décalés du tout bord de l'écran :
       trop près du bord, ils entrent en conflit avec les gestes du
       téléphone lui-même (retour en arrière au bord de l'écran, etc.)
       et deviennent difficiles à toucher précisément. */
    .lightbox-nav { width: 46px; height: 46px; font-size: 1.1rem; }
    .lightbox-prev { left: 14px; }
    .lightbox-next { right: 14px; }
    .lightbox-close { top: 12px; right: 14px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section { padding: 10px 0 70px; max-width: 640px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: #e2f2e6; color: #2e5d3e; }
.alert-error { background: #fbe3e6; color: #7a2c33; }
.alert ul { margin: 0; padding-left: 1.2em; }

.contact-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.92rem; }
.form-row .optional { font-weight: 400; color: var(--color-text-soft); }

.form-row input,
.form-row textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(201, 168, 106, 0.35);
    background: var(--color-ivoire);
    color: var(--color-text);
    resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--color-rose-deep);
    box-shadow: 0 0 0 3px rgba(232, 184, 194, 0.35);
}

/* Champ anti-robots invisible aux yeux, mais présent pour les robots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer {
    background: var(--color-ivoire-deep);
    border-top: 1px solid rgba(201, 168, 106, 0.25);
    padding: 40px 0;
    margin-top: 40px;
}
.footer-inner { text-align: center; }
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-brand p { margin: 0; font-family: var(--font-heading); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 16px; }
.footer-nav a { color: var(--color-text-soft); font-size: 0.9rem; font-weight: 600; }
.footer-photo-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 10px;
}
.footer-photo-link a { color: var(--color-rose-deep); }
.footer-note { color: var(--color-text-soft); font-size: 0.82rem; margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 780px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 2px; padding: 10px 0; }
    .site-nav a { display: block; }

    .header-inner { flex-wrap: wrap; }

    .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}
