@charset "utf-8";

/* =====================================================================
   FEUILLE DE STYLE – Les Ongles de Marie
   ---------------------------------------------------------------------
   1. Variables
   2. Balises
   3. Classes
   4. Identifiants (id)
   5. Animations
   6. Media queries
   ===================================================================== */


/* =====================================================================
   1. VARIABLES
   ===================================================================== */
:root {
    color-scheme: only light;
    --rose-pale: #FFEBF0;
    --rose: #864F4F;
    --rose-fonce: #d98c8c;
    --or: #6A5404;
    --or-clair: #e9cf7a;
    --texte: #2a2222;
}


/* =====================================================================
   2. BALISES
   ===================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    max-width: 1920px;
    margin: auto;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--rose-pale);
    color: var(--texte);
}

/* Empêche le défilement de la page quand une fenêtre est ouverte */
body.modal-ouverte {
    overflow: hidden;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: #FFE8E8;
    box-shadow: 0 2px 12px rgba(216, 140, 140, 0.18);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ---------- Barre de navigation ---------- */
nav {
    background: #FFDADA;
    border-top: 1px solid rgba(232, 165, 165, 0.25);
    padding: 12px 0;
    text-align: center;
    position: sticky;
}

nav a {
    color: var(--texte);
    text-decoration: none;
    margin: 0 22px;
    font-size: 0.875rem;
    letter-spacing: 1px;
    padding-top: 0.5rem;
    padding-bottom: 3px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.25s, color 0.25s;
}

/* Survol : trait clair */
nav a:hover {
    color: var(--rose);
    border-color: rgba(134, 79, 79, 0.4);
}

/* Page en cours : trait plein, couleur rose */
nav a.actif {
    color: var(--rose);
    border-color: var(--rose);
}

main:focus {
    outline: none;
}

footer {
    text-align: center;
    padding: 26px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--rose);
    border-top: 1px solid rgba(232, 165, 165, 0.3);
}

footer a {
    display: inline-block;
    margin: 0.25rem 1rem;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--rose);
    font-size: 0.875rem;
    letter-spacing: 1px;
}

footer a:hover {
    color: var(--texte);
    text-decoration: underline;
}

a {
    color: var(--rose);
}

/* Liens dans le texte : soulignés (ne pas reposer sur la couleur seule) */
main p a:not(.btn-rdv) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Focus clavier visible partout */
a:focus-visible,
button:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 3px;
}

address {
    font-style: normal;
}

img {
    max-width: 100%;
    height: auto;
}

h4 {
    font-size: 0.875rem;
    font-weight: normal;
    letter-spacing: 1px;
    color: var(--rose);
}

/* =====================================================================
   3. CLASSES
   ===================================================================== */

/* ---------- En-tête fixe (header + menu) ---------- */
.entete-fixe {
    position: sticky;
    top: 0;
    z-index: 60;
}

/* Icônes des réseaux sociaux */
.reseaux {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reseaux a {
    margin: 0;
    padding: 0;
    border-bottom: none;
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rose-pale);
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, background 0.25s;
}

.reseaux a:hover {
    background: var(--rose);
    transform: scale(1.12);
}

.reseaux img {
    border-radius: 50%;
    width: 38px;
}

/* Logo (nom + métier) */
.logo {
    text-align: center;
    line-height: 1.1;
}

.logo .nom {
    font-size: 1.625rem;
    font-style: italic;
    letter-spacing: 1px;
}

.logo .nom .marie {
    color: var(--rose);
    font-weight: bold;
}

.logo .metier {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--or);
    margin-top: 4px;
    font-style: normal;
}

/* Boutons */
.btn-rdv {
    display: inline-block;
    margin: 0 22px;
    text-decoration: none;
    background: var(--rose);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9375rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-rdv:hover {
    background: #6B3B3B;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(217, 140, 140, 0.35);
}

.btn-contour {
    background: transparent;
    border: 2px solid var(--rose);
    color: var(--rose);
    display: inline-block;
    text-decoration: none;
    margin: 0;
    padding: 13px 34px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9375rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.btn-contour:hover {
    background: var(--rose);
    color: #fff;
    transform: translateY(-2px);
}

/* Bouton "hamburger" du menu mobile (affiché seulement sur mobile) */
.btn-menu {
    display: none;
    background: none;
    border: none;
    padding: 0 10px 6px;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--rose);
    cursor: pointer;
}

/* ---------- Accessibilité ---------- */

/* Texte visible uniquement des lecteurs d'écran */
.lecteur {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Lien "Aller au contenu" visible au clavier */
.lien-evitement {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 300;
    margin: 0;
    padding: 0.75rem 1.25rem;
    background: var(--texte);
    color: #fff;
    border-radius: 0 0 10px 10px;
    font-size: 1rem;
    text-decoration: underline;
}

.lien-evitement:focus {
    top: 0;
}

/* ---------- Bandeau d'en-tête de page (mains en or) ---------- */
.mains {
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
            radial-gradient(ellipse at 20% 25%, rgba(232, 165, 165, 0.55) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 75%, rgba(212, 175, 55, 0.28) 0%, transparent 50%),
            radial-gradient(ellipse at 60% 15%, rgba(244, 200, 205, 0.6) 0%, transparent 45%),
            linear-gradient(160deg, #fdf3f4 0%, #fbe4e7 100%);
}

.mains h1 {
    font-size: 3.25rem;
    font-weight: normal;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
}

.mains h1 .marie {
    color: var(--rose);
    font-weight: bold;
}

.mains .metier {
    font-size: 0.75rem;
    letter-spacing: 6px;
    color: var(--or);
    margin: 10px 0 18px;
}

.mains .slogan {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 14px;
}

.mains .mots-cles {
    font-size: 0.8125rem;
    letter-spacing: 5px;
    color: var(--rose);
}

/* Pétales qui tombent (créés par le javascript) */
.petale {
    position: absolute;
    width: 22px;
    height: 22px;
    opacity: 0.85;
    animation: tomber linear infinite;
    pointer-events: none;
}

/* ---------- Page "À propos" ---------- */
.presentation-duo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
}

.presentation-duo .presentation-texte {
    flex: 1 1 480px;
    max-width: 980px;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 1rem;
    color: rgb(46 26 26 / 0.85);
    overflow-wrap: break-word;
    hyphens: auto;
}

.presentation-texte strong {
    font-style: italic;
}

.photo-marie {
    flex: 0 0 400px;
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(216, 140, 140, 0.28);
}

/* ---------- Sections de contenu ---------- */
.prestations {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 30px 30px;
}

.prestations h2 {
    text-align: center;
    font-size: 1.875rem;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 40px;
}

/* Titre de section entouré de deux images */
.titre-mains {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.prestations .titre-mains h2 {
    margin: 0;
}

.titre-mains img {
    flex: 0 0 auto;
}

.centre {
    text-align: center;
    margin: 40px 0 10px;
}

/* ---------- Grilles de cartes ---------- */
.grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
}

/* Accueil : toutes les cartes gardent la même hauteur */
.grille-cartes {
    grid-auto-rows: 1fr;
}

/* Page prestations (formes d'ongles) */
.grille-formes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 26px;
    max-width: 1100px;
    margin: 0 auto 34px;
}

.grille-formes .carte .texte p strong {
    color: var(--rose);
}

/* ---------- Cartes ---------- */
.carte {
    position: relative;
    background: #fff;
    border-radius: 18px;
    margin-top: 2.5rem;
    padding: 34px 22px;
    box-shadow: 0 4px 16px rgba(216, 140, 140, 0.14);
    border: 1px solid rgba(232, 165, 165, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
    overflow-wrap: anywhere;
}

/* Fioritures aux quatre angles des cartes */
.carte::before,
.carte::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: 40px;
    pointer-events: none;
}

.carte::before {
    background-image: url("../img/fioriture_angle_HG.png"), url("../img/fioriture_angle_BD.png");
    background-position: top left, bottom right;
}

.carte::after {
    background-image: url("../img/fioriture_angle_HD.png"), url("../img/fioriture_angle_BG.png");
    background-position: top right, bottom left;
}

.carte:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(216, 140, 140, 0.28);
}

/* Accueil : cartes cliquables, de même taille, contenu centré, "+ d'infos" en bas */
.carte[role="button"] {
    margin: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.carte[role="button"] h4 {
    margin-top: auto;
}

.carte .pastille {
    display: flex;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--rose-pale);
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.carte h3 {
    font-size: 1.25rem;
    font-weight: bolder;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--rose);
    text-align: center;
}

.carte-large {
    grid-column: 1 / -1;
}

.texte ul {
    text-align: left;
    padding-left: 18px;
    list-style: disc;
}

.texte ul li {
    margin-bottom: 10px;
    line-height: 1.55;
}

/* Paragraphes des cartes et des fenêtres */
.modal .texte p,
.prestations .texte p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 12px;
    text-align: left;
}

/* Contact : lien "Me trouver" */
.trouver {
    display: block;
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Tarifs ---------- */
table.tarifs {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

table.tarifs th {
    font-weight: normal;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--or);
    padding: 0 6px 10px;
    border-bottom: 1px solid rgba(232, 165, 165, 0.4);
    text-align: right;
}

table.tarifs th:first-child {
    text-align: left;
}

table.tarifs td {
    padding: 9px 6px;
    border-bottom: 1px solid rgba(232, 165, 165, 0.25);
    text-align: right;
    white-space: nowrap;
}

table.tarifs td:first-child {
    text-align: left;
    white-space: normal;
    line-height: 1.4;
}

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

/* Précision en italique après le nom d'une prestation */
.tarif-note {
    font-style: italic;
    font-size: 0.8125rem;
}

/* Ligne mise en avant (surlignée en rose) */
table.tarifs tr.vedette td {
    background: #FFDADA;
    font-weight: bold;
    border-bottom-color: transparent;
}

table.tarifs tr.vedette td:first-child {
    border-radius: 25px 0 0 25px;
    padding-left: 8px;
}

table.tarifs tr.vedette td:last-child {
    border-radius: 0 25px 25px 0;
    padding-right: 14px;
}

.carte-large table.tarifs {
    max-width: 640px;
    margin: 0 auto;
}

/* Cartes de tarifs : colonnes à largeur fixe (prix, durée) pour que tout soit aligné
   d'une ligne à l'autre ; la colonne "Prestation" prend la place restante */
.carte-large table.tarifs:not(.tarifs-large) {
    table-layout: fixed;
}

.carte-large table.tarifs:not(.tarifs-large) td:nth-child(n+2) {
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    width: 120px;
}

.carte-large table.tarifs:not(.tarifs-large) td:nth-child(3) {
    width: 140px;
}

/* Une ligne de simple remarque occupe toute la largeur */
.carte-large table.tarifs td[colspan] {
    width: auto;
    text-align: left;
    font-style: italic;
}

/* Tableau large (page prestations) : doit rester après la règle précédente */
table.tarifs.tarifs-large {
    max-width: 980px;
}

table.tarifs.tarifs-large th,
table.tarifs.tarifs-large td {
    text-align: left;
    white-space: normal;
}

.duo {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
    max-width: 760px;
    margin: 2rem auto;
}

.duo img {
    margin: auto;
}

.separateur-coeurs {
    text-align: center;
    margin: 36px 0 8px;
}

.separateur-coeurs img {
    width: 48px;
}

.bandeau {
    max-width: 520px;
    margin: 0 auto;
    padding: 13px 18px;
    text-align: center;
    letter-spacing: 3px;
    font-size: 0.8125rem;
    font-weight: bolder;
    line-height: 1.5;
    color: var(--or);
    border-top: 2px solid rgba(212, 175, 55, 0.5);
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
}

.bandeau-note {
    display: block;
    margin-top: 4px;
    font-weight: normal;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: none;
}

.bandeau-note:empty {
    display: none;
}

.tarifs-encart {
    max-width: 620px;
    margin: 20px auto 0;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(232, 165, 165, 0.35);
    border-radius: 14px;
    font-size: 1.125rem;
    line-height: 1.65;
    text-align: center;
    color: var(--rose);
    font-weight: 600;
}

.tarifs-encart p {
    margin-bottom: 12px;
}

.tarifs-encart p:last-child {
    margin-bottom: 0;
}

.tarifs-encart a:not(.btn-rdv) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Page prestations : formes d'ongles ---------- */
.formes-visuel {
    text-align: center;
    margin: 0 0 28px;
}

.formes-visuel img {
    width: 100%;
    max-width: 820px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(216, 140, 140, 0.22);
}

.chapeau {
    max-width: 860px;
    margin: 0 auto 14px;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.note-durees {
    max-width: 860px;
    margin: 0 auto 36px;
    padding: 12px 18px;
    text-align: center;
    font-size: 0.8438rem;
    line-height: 1.6;
    color: rgb(46 26 26 / 0.71);
    background: #fff;
    border: 1px solid rgba(232, 165, 165, 0.35);
    border-radius: 12px;
}

.conclusion {
    text-align: center;
    font-style: italic;
    font-size: 1rem;
    margin-top: 30px;
}

/* ---------- Galerie des réalisations ---------- */
.galerie {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}

.realisation {
    position: relative;
    margin: 0;
    aspect-ratio: 347 / 485;
    overflow: hidden;
    border-radius: 14px;
    background: var(--rose-pale);
    box-shadow: 0 5px 18px rgba(216, 140, 140, 0.2);
    cursor: pointer;
}

/* La photo est affichée en entier, à l'intérieur du cadre doré */
.realisation .photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Bloc = photo encadrée + texte explicatif en dessous */
.realisation-bloc {
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Bureau : photo et texte côte à côte, en alternance gauche / droite */
.realisation-bloc:nth-child(even) {
    flex-direction: row-reverse;
}

.realisation-bloc .realisation {
    flex: 0 0 340px;
    width: 340px;
}

.legende {
    flex: 1;
}

.legende p {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--texte);
}

.realisation-bloc:nth-child(even) .legende p {
    text-align: right;
}

/* Le bouton ne sert que sur mobile */
.voir-texte {
    display: none;
}

/* Cadre doré par-dessus la photo */
.realisation::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/contour_image.png");
    background-size: 100% 100%;
    pointer-events: none;
}

/* Bouton qui ouvre la photo en grand */
.ouvrir-photo {
    display: block;
    width: 100%;
    height: 100%;
    /* Marge égale à l'épaisseur du cadre doré : la photo n'est jamais recouverte */
    padding: 5%;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}

.ouvrir-photo:focus-visible {
    outline-offset: -6px;
}

/* Étincelles scintillantes sur les cadres dorés (créées par le javascript) */
.etincelle {
    position: absolute;
    z-index: 2;
    width: 14px;
    height: 14px;
    background: url("../img/etoiles.png") center / contain no-repeat;
    pointer-events: none;
    animation: scintiller 1.2s ease-out forwards;
}

/* Visionneuse : photo ouverte en grand au clic */
.visionneuse {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(42, 34, 34, 0.6);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.visionneuse.ouvert {
    display: flex;
}

/* La photo agrandie tient toujours en entier dans l'écran */
.visionneuse img {
    max-width: min(1080px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.visionneuse .fermer-photo {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--texte);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Bloc "Prendre rendez-vous" ---------- */
.rdv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1000px;
    margin: 50px auto 70px;
    padding: 34px 44px;
    background: linear-gradient(120deg, #ffffff 0%, #fdeef0 100%);
    border-radius: 24px;
    border: 1px solid rgba(232, 165, 165, 0.35);
    box-shadow: 0 6px 22px rgba(216, 140, 140, 0.16);
    position: relative;
    flex-wrap: wrap;
}

.rdv p {
    font-size: 1.375rem;
    font-style: italic;
}

.note-accessibilite {
    max-width: 620px;
    margin: 28px auto 0;
    padding: 14px 20px;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.6;
    background: #fff;
    border: 1px solid rgba(134, 79, 79, 0.35);
    border-radius: 12px;
}

/* ---------- Pop-up RGPD (créé par le javascript) ---------- */
.rgpd {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 150;
    width: calc(100% - 32px);
    max-width: 380px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid rgba(232, 165, 165, 0.5);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(42, 34, 34, 0.22);
    font-size: 0.8438rem;
    line-height: 1.6;
    animation: apparaitre 0.3s ease-out;
}

.rgpd h2 {
    font-size: 1.0625rem;
    font-weight: normal;
    font-style: italic;
    color: var(--rose);
    margin-bottom: 8px;
}

.rgpd p {
    margin-bottom: 14px;
}

.rgpd .rgpd-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.rgpd a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rgpd .btn-rdv {
    margin: 0;
    padding: 10px 22px;
    font-size: 0.875rem;
}

/* ---------- Fenêtres (pop-ups des cartes de l'accueil) ---------- */
.fond-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(42, 34, 34, 0.45);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fond-modal.ouvert {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 22px;
    max-width: 430px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: apparaitre 0.3s ease-out;
}

.modal .fermer {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: none;
    font-size: 1.375rem;
    color: var(--rose);
    cursor: pointer;
}

.modal h3 {
    font-style: italic;
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.modal .sous {
    font-size: 0.8125rem;
    color: var(--or);
    letter-spacing: 3px;
    margin-bottom: 22px;
}


/* =====================================================================
   4. IDENTIFIANTS (id)
   ===================================================================== */

/* ---------- Page "À propos" ---------- */
#presentation h1 {
    margin-top: 2rem;
}

#presentation h1,
#presentation h2 {
    padding: 2rem;
}

#presentation .presentation-texte p {
    margin-bottom: 1.1em;
    line-height: 1.7;
}

#presentation .signature {
    text-align: right;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--rose);
    margin-top: 1.5rem;
}

#certification {
    min-height: 100px;
    text-align: center;
}

/* Les 4 liens de diplômes : centrés, à la ligne proprement, tous visibles */
#certification {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 2rem;
    padding: 0 1rem 1.5rem;
}

#certification a {
    color: var(--or);
    margin: 0;
    padding: 0.4rem 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#certification h2 {
    flex: 0 0 100%;
    margin: 1rem;
}

/* ---------- Page contact : grille 2 x 2 homogène ---------- */
#infos .grille {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

#infos .carte {
    margin: 0;
    width: 100%;
}

#infos .texte p {
    text-align: center;
}


/* =====================================================================
   5. ANIMATIONS
   ===================================================================== */
@keyframes tomber {
    0%   { transform: translateY(-40px) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.9; }
    100% { transform: translateY(520px) rotate(320deg); opacity: 0; }
}

@keyframes apparaitre {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes scintiller {
    0%   { transform: scale(0) rotate(0deg); opacity: 0; }
    30%  { transform: scale(1) rotate(90deg); opacity: 1; }
    70%  { opacity: 0.9; }
    100% { transform: scale(0.2) rotate(180deg); opacity: 0; }
}


/* =====================================================================
   6. MEDIA QUERIES
   (de la plus large à la plus étroite, puis préférences de l'utilisateur)
   ===================================================================== */

/* ---------- Écrans jusqu'à 1080 px ---------- */
@media (max-width: 1080px) {
}

/* ---------- Tablette : 4 cartes de l'accueil en 2 x 2 (jamais 3 + 1) ---------- */
@media (min-width: 540px) and (max-width: 1017px) {
    .grille-cartes {
        grid-template-columns: repeat(2, 1fr);
        max-width: 640px;
        margin: 0 auto;
    }
}

/* ---------- Mobile : jusqu'à 700 px ---------- */
@media (max-width: 700px) {
    header {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    /* Menu "hamburger" */
    nav { padding: 8px 0; }
    nav a { display: none; }
    nav.ouvert a {
        display: block;
        margin: 10px 0;
        font-size: 0.9375rem;
        border-bottom: none;
    }
    /* Menu ouvert : la page en cours est en gras (pas de trait possible dans une liste) */
    nav.ouvert a.actif { font-weight: bold; }

    .btn-menu { display: inline-block; }

    .mains h1 { font-size: 2.25rem; }
    .mains .mots-cles { letter-spacing: 3px; font-size: 0.75rem; }

    .prestations h2 {
        font-size: 1.3125rem;
        white-space: nowrap;
        margin-bottom: 28px;
    }
    /* Page prestations : les h2 contiennent deux petites images */
    .prestations h2 img { width: 40px; }

    .titre-mains { gap: 10px; margin-bottom: 28px; }
    .titre-mains img { width: 40px; }

    .carte::before,
    .carte::after { background-size: 30px; }

    /* Les deux étoiles du bloc .duo restent côte à côte ; les cartes s'empilent */
    .duo {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        max-width: 520px;
    }
    .duo > .carte { grid-column: 1 / -1; }
    .duo > img {
        width: 100%;
        max-width: 80px;
    }

    .rdv { justify-content: center; text-align: center; }

    .presentation-duo { flex-direction: column; gap: 24px; }
    .photo-marie { width: 340px; flex-basis: auto; }

    .galerie { grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }

    /* Mobile : photo au-dessus, texte masqué / affiché à la demande */
    .realisation-bloc,
    .realisation-bloc:nth-child(even) { flex-direction: column; align-items: stretch; gap: 10px; }
    .realisation-bloc .realisation { flex: none; width: 100%; }
    .legende { flex: none; text-align: center; }
    .legende p,
    .realisation-bloc:nth-child(even) .legende p { display: none; font-size: 1.1rem; text-align: center; margin-top: 8px; }
    .realisation-bloc .legende.ouverte p,
    .realisation-bloc:nth-child(even) .legende.ouverte p { display: block; }
    .voir-texte {
        display: inline-block;
        padding: 8px 14px;
        border: 1px solid var(--rose);
        border-radius: 20px;
        background: #fff;
        color: var(--rose);
        font: inherit;
        font-size: 0.95rem;
        cursor: pointer;
    }

    /* Carte récapitulative : format paysage, tableau qui défile horizontalement */
    /* Seul le tableau défile : la carte (et ses fioritures d'angle) reste fixe */
    .defilement-tableau {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .carte-recapitulative table.tarifs.tarifs-large {
        min-width: 720px;
    }

    .carte-recapitulative table.tarifs.tarifs-large th,
    .carte-recapitulative table.tarifs.tarifs-large td {
        white-space: nowrap;
    }

    .defilement-tableau:focus-visible {
        outline: 3px solid var(--rose);
        outline-offset: 3px;
    }
}


/* ---------- Contact : une seule colonne jusqu'à 600 px ---------- */
@media (max-width: 600px) {
    #infos .grille { grid-template-columns: 1fr; }
}

/* ---------- Galerie : une seule colonne jusqu'à 500 px ---------- */
@media (max-width: 500px) {
    .galerie { grid-template-columns: 1fr; max-width: 380px; }

    /* Cartes de tarifs : colonnes prix / durée plus étroites */
    .carte-large table.tarifs:not(.tarifs-large) td:nth-child(n+2) { width: 82px; font-size: 0.8125rem; }
    .carte-large table.tarifs:not(.tarifs-large) td:nth-child(3) { width: 92px; }
}

/* ---------- Petits mobiles : jusqu'à 430 px ---------- */
@media (max-width: 430px) {
    .prestations h2 { font-size: 1.1875rem; }
    .prestations h2 img { width: 26px; }
    .titre-mains { gap: 8px; }
    .titre-mains img { width: 28px; }
    .carte::before,
    .carte::after { background-size: 22px; }
}

/* ---------- Préférences de l'utilisateur ---------- */

/* Défilement doux, sauf si l'utilisateur demande moins d'animations */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Moins d'animations demandé : on supprime pétales et étincelles */
@media (prefers-reduced-motion: reduce) {
    .etincelle, .petale { display: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Contraste renforcé demandé par le système */
@media (prefers-contrast: more) {
    :root {
        --rose: #5E2F2F;
        --or: #4A3A00;
        --texte: #000;
    }
    .carte,
    .rdv,
    .rgpd,
    .tarifs-encart,
    .note-durees,
    .note-accessibilite {
        border: 2px solid var(--rose);
    }
    .btn-contour { border-color: var(--texte); color: var(--texte); }
}
