/* ===== MARRY.ME Calendrier Premium ===== */

/* Variables */
:root {

    /* OR MARRY AGENCY */
    --gold: #BFA46F;
    --gold-light: #D8C08E;
    --gold-dark: #8F7448;

    /* ROSE */
    --rose: #B76E79;

    /* TEXTES PLUS DOUX */
    --dark: #2A2A2A;
    --dark-light: #444444;

    --gray: #777777;
    --gray-light: #F4F1EB;

    --white: #FFFFFF;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}
/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--gray-light) 0%, #F5F3F0 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Container */
.calendrier-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.cal-header {
    text-align: center;
    margin-bottom: 50px;
}

.cal-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
}

.cal-logo {

    font-family: 'Cormorant Garamond', serif;

    font-size: 2.3rem;

    font-weight: 600;

    color: var(--gold);

    letter-spacing: 3px;
}
.cal-tagline {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cal-header h1 {

    font-family: 'Cormorant Garamond', serif;

    font-size: 3rem;

    font-weight: 500;

    color: #2F2F2F;

    margin-bottom: 12px;

    letter-spacing: 0.5px;
}
.cal-header p {

    color: #6F6F6F;

    font-size: 1.05rem;

    line-height: 1.8;

    max-width: 650px;

    margin: 0 auto;
}
/* Main Grid */
.cal-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Calendar Card */
.cal-calendar {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.cal-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.cal-month-header h2 {
    font-size: 1.4rem;
    color: var(--dark);
}

.cal-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-light);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s;
}

.cal-nav-btn:hover {
    background: var(--gold);
    color: var(--white);
}

/* Weekdays */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.cal-weekdays span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    padding: 8px 0;
}

/* Days Grid */
.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    background: var(--gray-light);
}

.cal-day:hover:not(.disabled):not(.empty) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Day States */
.cal-day.empty {
    background: transparent;
    cursor: default;
}

.cal-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.cal-day.today {
    border: 2px solid var(--gold);
}

.cal-day.selected {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(201, 169, 98, 0.4);
}

.cal-day.selected:hover {
    background: var(--gold-dark);
}

/* Availability Indicator */
.cal-day .availability {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    bottom: 6px;
}

.cal-day .availability.available {
    background: #4CAF50;
}

.cal-day .availability.limited {
    background: var(--gold);
}

.cal-day .availability.unavailable {
    background: #CFCFCF;
}
.cal-day.selected .availability {
    background: rgba(255, 255, 255, 0.7);
}

/* Legend */
.cal-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.available {
    background: #4CAF50;
}

.legend-dot.limited {
    background: var(--gold);
}

.legend-dot.unavailable {
    background: #CFCFCF;
}
/* Time Slots Panel */
.cal-timeslots {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.cal-timeslots h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.cal-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    color: var(--gray-light);
    margin-bottom: 20px;
}

.cal-empty-state h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.cal-empty-state p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Time Slots List */
.cal-slots-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--dark);
}

.time-slot:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 98, 0.05);
}

.time-slot.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.time-slot.booked {
    background: var(--gray-light);
    color: #aaa;
    cursor: not-allowed;
    border-color: transparent;
}

/* Modal */
.cal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cal-modal.active {
    display: flex;
}

.cal-modal-content {
    background: var(--white);
    border-radius: 28px;

    padding: 40px;

    width: 100%;
    max-width: 620px;

    max-height: 90vh;

    overflow-y: auto;
    overflow-x: hidden;

    position: relative;

    box-shadow:
    0 20px 60px rgba(0,0,0,0.15);

    animation: fadeIn 0.35s ease;
}
.cal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-light);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
}

.cal-modal-close:hover {
    background: var(--dark);
    color: var(--white);
}

.cal-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.success-check {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.cal-modal-header h2 {
    font-size: 1.6rem;
    color: var(--dark);
}
.cal-confirm-text{

    text-align:center;

    color:#777;

    font-size:0.95rem;

    line-height:1.7;

    margin-top:-10px;

    margin-bottom:25px;
}

/* Summary */
.cal-rdv-summary {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-icon {
    color: var(--gold-dark);
}

.summary-item span:last-child {
    font-weight: 500;
}

/* Form */
.cal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.cal-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.cal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
}

.cal-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 20px;
}

/* ===== Règles rendez-vous ===== */

.cal-rules{
    background:#F8F6F2;
    border:1px solid rgba(201,169,98,0.15);
    border-radius:18px;
    padding:18px;
    margin-top:25px;
    margin-bottom:20px;
}

.cal-rule-item{
    font-size:0.92rem;
    color:#5F5A52;
    line-height:1.6;
    margin-bottom:10px;
}

.cal-rule-item:last-child{
    margin-bottom:0;
}

.cal-rule-item.warning{
    color:#8B7355;
    font-weight:600;
}

/* Success State */
.cal-success {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cal-success.active {
    display: flex;
}

.success-content {
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 450px;
    text-align: center;
}

.success-icon{

    width:64px;
    height:64px;

    margin:0 auto 22px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:
    rgba(191,164,111,0.08);

    border:
    1px solid rgba(191,164,111,0.18);

    color:var(--gold);

    box-shadow:
    0 4px 18px rgba(191,164,111,0.08);

    backdrop-filter:blur(6px);
}

.success-icon svg{

    width:28px;
    height:28px;

    stroke-width:1.7;
}.success-content h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.success-content > p {
    color: var(--gray);
    margin-bottom: 30px;
}

.success-details {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--gray);
}

.detail-value {
    font-weight: 600;
    color: var(--dark);
}

.cal-new-btn {
    padding: 15px 30px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.cal-new-btn:hover {
    background: var(--dark-light);
}

/* =========================
   RESPONSIVE PREMIUM
========================= */

@media (max-width: 900px) {

    .cal-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cal-timeslots {
        min-height: auto;
    }

    .cal-header {
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {

    .calendrier-container {
        padding: 20px 15px;
    }

    .cal-header h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .cal-header p {
        font-size: 0.95rem;
    }

    .cal-calendar,
    .cal-timeslots {
        padding: 22px;
        border-radius: 18px;
    }

    .cal-month-header h2 {
        font-size: 1.2rem;
    }

    .cal-days {
        gap: 6px;
    }

    .cal-day {
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .cal-slots-list {
        grid-template-columns: 1fr;
    }

    .time-slot {
        padding: 14px;
    }

    .cal-legend {
        flex-wrap: wrap;
        gap: 15px;
    }

    .cal-modal-content {
        padding: 24px;
        border-radius: 22px;

        width: 100%;
        max-width: 100%;

        max-height: 92vh;

        overflow-x: hidden;
    }

    .cal-modal-header h2 {
        font-size: 1.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cal-submit-btn {
        width: 100%;
        padding: 16px;
    }

    .success-content {
        padding: 35px 25px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {

    .cal-logo {
        font-size: 1.5rem;
    }

    .cal-tagline {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .cal-header h1 {
        font-size: 1.6rem;
    }

    .cal-calendar,
    .cal-timeslots {
        padding: 18px;
    }

    .cal-day {
        font-size: 0.85rem;
    }

    .cal-nav-btn {
        width: 36px;
        height: 36px;
    }

    .cal-modal-content {
        padding: 20px;
    }

    .summary-item {
        align-items: flex-start;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }
}
/* =========================
   ANIMATIONS
========================= */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.cal-modal-content,
.success-content {
    animation: fadeIn 0.35s ease;
}

/* =========================
   SCROLL PREMIUM
========================= */

.cal-modal-content::-webkit-scrollbar {
    width: 6px;
}

.cal-modal-content::-webkit-scrollbar-thumb {
    background: rgba(201,169,98,0.4);
    border-radius: 20px;
}

.cal-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================
   OVERLAY LUXE
========================= */

.cal-modal,
.cal-success {
    backdrop-filter: blur(6px);
}

/* =========================
   MODAL MOBILE FIX
========================= */

@media (max-width: 768px) {

    .cal-modal {
        padding: 12px;
    }

    .cal-modal-content {

        width: 100%;
        max-width: 100%;

        max-height: 92vh;

        padding: 24px;

        border-radius: 22px;

        overflow-x: hidden;
    }

    .cal-modal-header h2 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .summary-item {
        align-items: flex-start;
    }

    .cal-submit-btn {
        width: 100%;
    }

    .success-content {
        padding: 30px 22px;
    }
}

/* ===== VERSION MODAL PREMIUM ===== */

html,
body{
    margin:0;
    padding:0;
    overflow-x:hidden;
    background:#F8F6F2;
}

/* Cache navbar/footer si ouvert en iframe */

body.embed-mode nav,
body.embed-mode header,
body.embed-mode footer{
    display:none !important;
}

/* Container */

.calendrier-container{
    max-width:100%;
    padding:50px;
}

/* Supprime double scroll */

.cal-modal-content{
    overflow-x:hidden;
}

/* Scroll premium */

body::-webkit-scrollbar,
.cal-modal-content::-webkit-scrollbar{
    width:6px;
}

body::-webkit-scrollbar-thumb,
.cal-modal-content::-webkit-scrollbar-thumb{
    background:rgba(201,169,98,0.45);
    border-radius:20px;
}

/* MOBILE */

@media(max-width:768px){

.calendrier-container{
    padding:20px;
}

.cal-header h1{
    font-size:2rem;
}

}

/* =========================
   AMBIANCE LUXE MARRY AGENCY
========================= */

.cal-calendar,
.cal-timeslots,
.cal-modal-content,
.success-content{

    border:1px solid rgba(191,164,111,0.12);

    box-shadow:
    0 10px 35px rgba(0,0,0,0.06);
}

/* Header plus élégant */

.cal-header{
    margin-bottom:60px;
}

/* Fond plus premium */

body{
    background:
    linear-gradient(
    135deg,
    #F8F6F2 0%,
    #F3EFE8 100%);
}

.field-error{
    color:#c9a96e;
    font-size:12px;
    margin-top:6px;
    font-family:'Inter',sans-serif;
}

.cal-form input.error,
.cal-form textarea.error{
    border-color:#c9a96e;
}
.luxury-error{
position:fixed;
top:30px;
right:30px;
z-index:99999;
}

.luxury-error-box{
background:#fff;
border-left:4px solid #c9a96e;
border-radius:12px;
padding:20px;
min-width:350px;
box-shadow:0 20px 50px rgba(0,0,0,.15);
}

.luxury-error-title{
font-family:'Playfair Display', serif;
font-size:22px;
color:#1a1a1a;
margin-bottom:8px;
}

.luxury-error-text{
font-family:'Inter', sans-serif;
color:#666;
}
