:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --primary: #c0392b;
    --primary-hover: #e74c3c;
    --gold: #d4af37;
    --text-main: #f5f5f5;
    --text-muted: #b3b3b3;
    --planning-row-gold: rgba(142, 139, 130, 0.3);
    --planning-row-light: rgba(132, 132, 132, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* --- POPUP AFFICHE --- */
.flyer-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flyer-popup[hidden] {
    display: none;
}

.flyer-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.flyer-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.flyer-popup-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border: 3px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.flyer-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: #0d0d0d;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.flyer-popup-close:hover {
    filter: brightness(1.1);
}

/* --- POPUP MESSAGE DE CONTACT --- */
.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-popup[hidden] {
    display: none;
}

.contact-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.contact-popup-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    padding: 44px 32px 36px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: contact-popup-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes contact-popup-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.contact-popup[data-type="success"] .contact-popup-icon {
    background: rgba(46, 125, 50, 0.15);
    border: 2px solid #8fd18f;
    color: #8fd18f;
}

.contact-popup[data-type="error"] .contact-popup-icon {
    background: rgba(192, 57, 43, 0.15);
    border: 2px solid #ff8a80;
    color: #ff8a80;
}

.contact-popup-message {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.contact-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: #0d0d0d;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.contact-popup-close:hover {
    filter: brightness(1.1);
}

/* --- HEADER & NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 5%;
    background-color: rgba(13, 13, 13, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

@media (min-width: 1201px) {
    #nav-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 70px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--gold);
}

.nav-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    margin-left: 20px;
    background-color: rgba(212, 175, 55, 0.3);
}

.btn-header {
    padding: 8px 18px;
    border-radius: 25px;
    color: var(--text-main) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-header:hover {
    color: var(--gold) !important;
}

.user-avatar {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-left: 20px;
    text-decoration: none;
    flex-shrink: 0;
}

.user-avatar__circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #ffffff;
    background: var(--primary);
    user-select: none;
}

.user-avatar__status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0d0d0d;
}

.user-avatar:hover .user-avatar__circle {
    filter: brightness(1.15);
}

/* Bouton Menu Burger (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    background: url('../images/fond.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-portrait {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90%;
    z-index: 1;
    pointer-events: none;
}

.hero-portrait-img {
    height: 100%;
    width: auto;
    display: block;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, var(--gold) 55%, transparent 75%);
    box-shadow: 0 0 6px 1px var(--gold);
    opacity: 0;
    pointer-events: none;
    animation: sparkle-twinkle ease-in-out infinite;
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.2); }
    50% { opacity: 1; transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    padding: 58px 74px;
    border-radius: 28px;
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-content .coralie-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5.8rem;
    line-height: 1.3;
    padding-top: 0.25em;
    margin: 0 0 2rem;
    background-image: linear-gradient(120deg, #fff5d1, var(--gold) 35%, #f7e7a1 55%, var(--gold));
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
    opacity: 0;
    transform: translateY(20px);
    animation: coralie-title-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards, hero-name-shine 6s linear infinite 1.2s;
}

@keyframes coralie-title-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-name {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    padding: 14px 48px;
    border-radius: 70px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-24px) scale(0.9);
    animation: hero-name-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-name-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 3.5rem;
    letter-spacing: 2px;
    background-image: linear-gradient(90deg, var(--gold), #fff5d1, var(--primary), #8e44ad, var(--gold));
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /*animation: hero-name-shine 5s linear infinite;*/
}

@keyframes hero-name-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-name-shine {
    to {
        background-position: 300% center;
    }
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--gold);
}

.mobile-break {
    display: none;
}

.hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    max-width: 800px;
    margin-bottom: 30px;
    color: var(--text-main);
}

.btn-main {
    background: linear-gradient(135deg, var(--primary), #8e44ad);
    color: white;
    padding: 15px 35px;
    font-size: 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.6);
}

/* --- SECTIONS GÉNÉRALES --- */
section {
    padding: 80px 8%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-margin-top: 20px;
}

section h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 40px;
    margin-top: 40px;
    color: var(--gold);
}

/* --- COURS & STYLES --- */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.style-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.style-card:hover {
    transform: translateY(-10px);
}

.style-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.style-card-media-zoom {
    height: 220px;
    overflow: hidden;
}

.style-card-media-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(40px) scale(1.35);
}

.style-content {
    padding: 25px;
}

.style-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.style-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- BIO CORALIE (reconstitution temporaire, pour comparaison) --- */
#bio-coralie {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 50px;
}

.bio-coralie-grid {
    display: grid;
    grid-template-columns: minmax(180px, 334px) minmax(400px, 1fr);
    gap: 60px;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.bio-coralie-photo img {
    width: 100%;
    max-width: 334px;
    max-height: 720px;
    display: block;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}

.bio-coralie-title {
    font-family: 'Parisienne', cursive;
    font-size: 2.7rem;
    line-height: 1.2;
    text-align: left;
    color: #d94f6a;
    margin: 20px 0 20px 20px;
}

.bio-coralie-text p {
    color: #1a1a1a;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.bio-coralie-text p:last-child {
    margin-bottom: 0;
}

/* --- SECTION PROFESSEURS --- */
#professeurs {
    justify-content: flex-start;
}

.teachers-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.teacher-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 25px;
    transition: transform 0.3s;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 20px;
}

.teacher-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.teacher-role {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.teacher-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    padding: 0 20px;
    text-align: justify;
    margin-left: 2rem;
    margin-right: 2rem;
}

/* --- GALERIE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    padding: 18px 20px;
    text-align: center;
}

.gallery-caption h3 {
    font-size: 1.2rem;
    color: var(--gold);
}

.gallery-caption h4 {
    font-size: 0.85rem;
    font-weight: 400;
    color: #ffffff;
    margin-top: 4px;
}

/* --- PLANNING / TARIFS --- */
.planning-container {
    background-color: var(--card-bg);
    padding: 50px 60px;
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.planning-subtitle {
    color: var(--gold);
    font-size: 1.3rem;
    margin: 0 0 16px;
}

.muted {
    color: var(--text-muted);
}

.planning-container .table-responsive + .planning-subtitle {
    margin-top: 40px;
}

.table-responsive {
    overflow-x: auto;
}

.planning-table {
    width: 100%;
    border-collapse: collapse;
}

.planning-table th {
    text-align: left;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    white-space: nowrap;
}

.planning-table td {
    padding: 10px 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    white-space: nowrap;
}

.planning-table td[title] {
    cursor: help;
}

.planning-table tbody tr:last-child td {
    border-bottom: none;
}

.planning-table tbody tr.day-even {
    background-color: var(--planning-row-gold);
}

.planning-table tbody tr.day-odd {
    background-color: var(--planning-row-light);
}

.planning-table tbody tr.planning-day-start td {
    border-top: 2px solid rgba(212, 175, 55, 0.4);
}

.planning-table th:first-child,
.planning-table td.planning-day {
    color: var(--gold);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.planning-table th:last-child,
.planning-table td:last-child {
    text-align: right;
    color: var(--gold);
    white-space: normal;
}

/* --- PLANNING (grille poster) --- */
.planning-poster {
    background-color: var(--card-bg);
    background-image: url('../images/Fond paillettes.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light;
    padding: 50px 60px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.08);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.planning-poster-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 2.6rem;
    margin: 0 0 32px;
    background-image: linear-gradient(120deg, #fff5d1, var(--gold) 35%, #f7e7a1 55%, var(--gold));
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
}

.planning-poster-subtitle {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.15rem;
    margin: -20px 0 32px;
}

.planning-poster-note {
    text-align: center;
    color: var(--gold);
    font-size: 0.95rem;
    margin: 28px 0 0;
}

.planning-grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.planning-grid-table th,
.planning-grid-table td {
    text-align: center;
    vertical-align: middle;
}

.planning-grid-table thead th {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 8px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
}

.planning-grid-table tbody th {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    padding-right: 10px;
}

.planning-grid-table td {
    min-width: 130px;
    height: 64px;
    padding: 6px;
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 6px;
}

.planning-grid-table td.has-cours {
    border-style: solid;
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.08);
}

/* Tableau des tarifs : grille classique à pointillés (lignes/colonnes), pas de cadre par cellule */
.tarifs-grid.planning-grid-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.tarifs-grid.planning-grid-table thead th {
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
}

.tarifs-grid.planning-grid-table thead th:not(:last-child) {
    background-image: radial-gradient(circle, rgba(212, 175, 55, 0.6) 1.2px, transparent 1.5px);
    background-size: 7px 7px;
    background-position: right;
    background-repeat: repeat-y;
}

.tarifs-grid.planning-grid-table th,
.tarifs-grid.planning-grid-table td {
    font-family: 'Montserrat', sans-serif;
}

.tarifs-grid.planning-grid-table tbody th {
    font-size: 1.2rem;
}

.tarifs-grid.planning-grid-table td {
    min-width: 0;
    height: auto;
    padding: 16px 12px;
    border: none;
    border-radius: 0;
    font-size: 1.2rem;
}

.tarifs-grid.planning-grid-table tbody th,
.tarifs-grid.planning-grid-table tbody td {
    background-image: radial-gradient(circle, rgba(212, 175, 55, 0.6) 1.2px, transparent 1.5px);
    background-size: 7px 7px;
    background-position: bottom;
    background-repeat: repeat-x;
}

.tarifs-grid.planning-grid-table th:not(:last-child),
.tarifs-grid.planning-grid-table td:not(:last-child) {
    background-image:
        radial-gradient(circle, rgba(212, 175, 55, 0.6) 1.2px, transparent 1.5px),
        radial-gradient(circle, rgba(212, 175, 55, 0.6) 1.2px, transparent 1.5px);
    background-size: 7px 7px, 7px 7px;
    background-position: bottom, right;
    background-repeat: repeat-x, repeat-y;
}

.planning-cell-cours + .planning-cell-cours {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(212, 175, 55, 0.25);
}

.planning-cell-heure {
    display: block;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.planning-cell-nom {
    display: block;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.planning-cell-public {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.planning-poster-footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    text-align: center;
}

.planning-poster-logo {
    height: 72px;
    width: auto;
}

.planning-poster-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* --- RÈGLEMENT & CONDITIONS --- */
.rules-container {
    background-color: var(--card-bg);
    padding: 50px 60px;
    border-radius: 15px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.rules-container h3 {
    color: var(--gold);
    font-size: 1.6rem;
    margin-bottom: 16px;
    margin-top: 32px;
}

.rules-container h3:first-of-type {
    margin-top: 0;
}

.rules-container ul {
    list-style-type: disc;
    padding-left: 24px;
    color: var(--text-muted);
}

.rules-container li {
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.rules-container p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* --- CONTACT SECTION --- */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1500px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    align-items: stretch;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.3s;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.contact-info ul {
    list-style: none;
    color: var(--text-main);
}

.contact-info li {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--bg-color);
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #ff8a80;
}

.alert-success {
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.4);
    color: #8fd18f;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.3s;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
}

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

.contact-form button {
    background-color: var(--primary);
    color: white;
    padding: 16px;
    font-size: 1.05rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: var(--primary-hover);
}

.map-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.3s;
}

.map-card:hover {
    transform: translateY(-5px);
}

.map-card-header {
    padding: 26px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-card-title {
    color: var(--gold);
    font-size: 1.4rem;
}

.map-card-frame {
    width: 100%;
    flex: 1;
    min-height: 280px;
}

.map-card-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- FOOTER --- */
footer {
    background-color: #080808;
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

/* --- RESPONSIVE MEDIA QUERIES (SMARTPHONES) --- */
@media (max-width: 1200px) {
    header {
        padding: 15px 5%;
    }

    .hero {
        padding: 50px 10px 10px;
    }

    .planning-poster {
        padding: 30px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(13, 13, 13, 0.98);
        padding: 20px 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        text-align: center;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 10px 0;
        font-size: 1rem;
    }

    .user-avatar {
        margin: 10px auto;
    }

    .nav-sep {
        display: none;
    }

    .btn-header {
        margin-top: 10px;
        display: inline-block;
    }

    .logo-img {
        height: 48px;
    }

    .hero-portrait {
        left: 50%;
        right: auto;
        height: 55%;
        opacity: 0.35;
        transform: translate(-50%, -50%);
    }

    .hero-content {
        width: 95%;
        padding: 32px 12px;
        background: none;
        border: none;
        box-shadow: none;
    }

    .hero-content .coralie-title {
        font-size: 5.85rem;
    }

    .hero-name {
        padding: 10px 30px;
    }

    .hero-name-text {
        font-size: 2.52rem;
    }

    .hero h1 {
        font-size: 2.97rem;
    }

    .mobile-break {
        display: inline;
    }

    .hero p {
        font-size: 1.07rem;
    }

    section {
        padding: 60px 5%;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .map-card-frame {
        min-height: 220px;
    }

    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #bio-coralie {
        display: none;
        padding: 24px;
        margin-bottom: 30px;
    }

    .teachers-grid {
        display: grid;
    }

    .teacher-card p {
        margin-left: 0;
        margin-right: 0;
    }

    .teacher-card img {
        height: 200px;
    }

    .bio-coralie-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bio-coralie-photo img {
        max-width: 280px;
        margin: 0 auto;
    }

    .bio-coralie-title {
        font-size: 2.1rem;
    }

    .planning-container {
        padding: 30px;
    }

    .planning-table th,
    .planning-table td {
        font-size: 1.05rem;
        padding: 14px 12px;
    }

    .rules-container {
        padding: 30px;
    }

    .rules-container h3 {
        font-size: 1.3rem;
    }

    .rules-container li {
        font-size: 1rem;
    }

    .rules-container p {
        font-size: 1rem;
    }
}

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .bio-coralie-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bio-coralie-photo img {
        max-width: 220px;
    }

    .planning-table {
        min-width: 600px;
    }

    .planning-table th,
    .planning-table td {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 10px 8px;
    }

    .hero-content {
        width: 95%;
        padding: 24px 8px;
    }

    .planning-grid-table {
        min-width: 480px;
    }

    .planning-grid-table td {
        min-width: 100px;
        height: 56px;
    }

    .planning-poster-title {
        font-size: 1.8rem;
    }

    .hero-content .coralie-title {
        font-size: 3.6rem;
    }

    .hero-name {
        padding: 8px 24px;
    }

    .hero-name-text {
        font-size: 1.89rem;
    }

    .hero h1 {
        font-size: 1.53rem;
    }

    .hero-portrait {
        height: 45%;
        opacity: 0.35;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .teacher-card p {
        padding: 0 10px;
    }
}

/* Smartphones en mode paysage : hauteur d'écran réduite, la hero ne doit pas être tronquée */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        padding: 90px 20px 40px;
    }
}
