/* style.css : Feuille de style principale */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Montserrat:wght@300;400;500&display=swap');

:root { 
    --bg-color: #FDFBF7;
    --text-main: #4A3C38;
    --terracotta: #C05B43;
    --terracotta-light: #F7EBE8;
    --border-color: #EAEAEA;
}

body {
    font-family: 'Montserrat', sans-serif; 
    color: var(--text-main);
    margin: 0; padding: 20px; 
    min-height: 100vh; 
    background-color: var(--bg-color);
    display: flex; justify-content: center; align-items: center;
}

.container {
    background: #FFFFFF;
    padding: 45px 30px; 
    border-radius: 24px; 
    box-shadow: 0 10px 40px rgba(192, 91, 67, 0.06);
    width: 100%; max-width: 450px; 
    text-align: center; 
    border: 1px solid rgba(192, 91, 67, 0.15);
}

.date-badge {
    font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
    color: var(--terracotta); margin-bottom: 12px; font-weight: 500; display: block;
}

h1 { 
    font-family: 'Cormorant Garamond', serif; color: var(--terracotta); 
    margin: 0 0 10px 0; font-size: 42px; font-weight: 600; line-height: 1.1;
}

.secret-link {
    text-decoration: none; color: var(--terracotta); font-style: italic;
    font-size: 46px; -webkit-tap-highlight-color: transparent; margin: 0 5px;
}

/* Le Post-it */
.post-it-wrapper { display: flex; justify-content: center; margin: 15px 0 35px 0; }
.post-it {
    background-color: #fdf2a6; padding: 15px 25px 20px 25px;
    position: relative; transform: rotate(-4deg); 
    box-shadow: 2px 4px 6px rgba(0,0,0,0.1), 6px 12px 15px rgba(0,0,0,0.05); 
    font-family: 'Caveat', cursive; font-size: 24px; color: #2c3e50; 
    max-width: 280px; border-radius: 2px 2px 15px 2px; line-height: 1.2;
}
.post-it::before {
    content: ''; position: absolute; top: -12px; left: 50%; margin-left: -40px;
    width: 80px; height: 25px; background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); transform: rotate(3deg);
}
.post-it strong { color: #d9381e; font-size: 28px; font-weight: 700; display: block; margin-bottom: 5px; }
.nowrap { white-space: nowrap; }

/* Formulaires */
form { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; }
label { 
    font-family: 'Cormorant Garamond', serif; font-weight: 600; 
    font-size: 20px; color: var(--terracotta); margin-bottom: 8px; 
    display: block; font-style: italic;
}
select, input[type="text"], input[type="file"] {
    width: 100%; padding: 14px; background: #FAFAFA;
    border: 1px solid var(--border-color); border-radius: 12px;
    font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--text-main);
    box-sizing: border-box; transition: all 0.3s;
    text-align: center; text-align-last: center; 
}
select:focus, input[type="text"]:focus, input[type="file"]:focus {
    border-color: var(--terracotta); outline: none;
    box-shadow: 0 0 0 3px var(--terracotta-light);
}

input[type="file"]::file-selector-button { 
    background-color: #FFFFFF; border: 1px solid #DDD; padding: 8px 16px; 
    border-radius: 20px; margin-right: 15px; cursor: pointer; 
    font-family: 'Montserrat', sans-serif; font-size: 12px;
    transition: all 0.2s; color: var(--text-main);
}
input[type="file"]::file-selector-button:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* Boutons d'action */
.btn-primary {
    background-color: var(--terracotta); color: white; border: none;
    padding: 16px 30px; border-radius: 30px; font-size: 15px; font-weight: 500; 
    font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; 
    align-items: center; gap: 10px; width: 100%; margin-top: 10px; 
    box-shadow: 0 6px 20px rgba(192, 91, 67, 0.25); text-decoration: none;
}
.btn-primary:hover { 
    background-color: #A84E3A; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(192, 91, 67, 0.35);
}
.btn-primary:disabled { background-color: #D3B8B2; cursor: not-allowed; transform: none; box-shadow: none;}

/* Boutons secondaires */
.action-links { display: flex; flex-direction: column; gap: 12px; margin-top: 35px; width: 100%; }
.btn-secondary {
    background-color: transparent; color: var(--terracotta);
    border: 1px solid rgba(192, 91, 67, 0.25); padding: 14px 15px;
    border-radius: 12px; font-size: 13px; font-weight: 500; text-decoration: none;
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--terracotta); background-color: var(--terracotta-light); }

/* Utilitaires */
.success-msg { 
    background: #F4F9F5; color: #386641; padding: 15px; border-radius: 12px; 
    margin-bottom: 25px; font-weight: 500; border: 1px solid #E0EFE3; width: 100%; box-sizing: border-box;
}
.spinner {
    display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }