/* Ajaccio Couture — thème épuré
   Dominantes : rose #ffaacb et rose pâle #fdd2e5.
   Ces deux teintes sont réservées aux fonds et aux décors : trop claires pour du texte.
   Texte en prune foncé, liens et accents en framboise (tirée du logo), contrastes AA vérifiés. */

:root {
  /* Dominantes */
  --rose: #ffaacb;
  --rose-pale: #fdd2e5;
  /* Teintes de lecture */
  --framboise: #b0256e;        /* liens, accents : 6,3:1 sur blanc, 4,7:1 sur rose pâle */
  --framboise-fonce: #8e1d55;  /* survol */
  --encre: #3d2433;            /* texte : 14:1 sur blanc, 7,9:1 sur rose */
  --encre-douce: #6e5563;      /* texte secondaire : 6,7:1 sur blanc */
  --fond: #ffffff;
  --filet: #f3dbe6;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 70rem;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--fond);
}

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

a { color: var(--framboise); text-underline-offset: .2em; }
a:hover { color: var(--framboise-fonce); }
:focus-visible { outline: 3px solid var(--framboise); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; color: var(--encre); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; font-weight: 650; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--fond); padding: .5rem .75rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { max-width: 44rem; font-size: 1.125rem; color: var(--encre-douce); }
.placeholder { color: var(--encre-douce); }

/* En-tête : bandeau rose pâle, logo à gauche, menu à droite */
.site-header {
  background: var(--rose-pale);
  border-bottom: 4px solid var(--rose);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand { display: block; border-radius: var(--radius); }
.brand img { width: 96px; height: 95px; border-radius: 10px; box-shadow: 0 2px 10px rgb(61 36 51 / .12); }

.main-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: .45rem .8rem;
  border-radius: 999px;
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover { background: var(--rose); color: var(--encre); }
.main-nav a[aria-current="page"] { background: var(--fond); color: var(--framboise); font-weight: 650; }

@media (max-width: 40rem) {
  .header-inner { justify-content: center; }
  .brand img { width: 80px; height: 79px; }
  .main-nav ul { justify-content: center; }
  .main-nav a { padding: .4rem .65rem; font-size: .975rem; }
}

/* Contenu */
main.container { flex: 1; width: 100%; padding-top: 2.5rem; padding-bottom: 4rem; }

/* Pied de page : bandeau rose */
.site-footer { background: var(--rose); color: var(--encre); font-size: .975rem; }
.site-footer a { color: var(--encre); }
.site-footer a:hover { color: var(--framboise-fonce); }
.footer-grid {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-items: start;
  padding-top: 2.25rem;
  padding-bottom: 1.5rem;
}
.footer-logo img { width: 64px; height: 63px; border-radius: 8px; }
.footer-title { font-weight: 650; margin: 0 0 .4rem; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0; }
.footer-bottom { padding-bottom: 1.25rem; color: #5e4453; font-size: .9rem; }  /* 4,9:1 sur le rose */
.footer-bottom p { border-top: 1px solid rgb(61 36 51 / .15); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.lien-espace { margin-left: auto; color: #5e4453 !important; text-decoration: none; }
.lien-espace:hover { text-decoration: underline; }
@media (max-width: 48rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.tarif-categorie {
  background: var(--fond);
  border: 1px solid var(--filet);
  border-top: 4px solid var(--rose);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem .75rem;
}
.tarif-categorie h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.tarif-table { width: 100%; border-collapse: collapse; }
.tarif-table th, .tarif-table td { padding: .55rem 0; border-bottom: 1px solid var(--filet); text-align: left; font-weight: 400; vertical-align: top; }
.tarif-table tr:last-child th, .tarif-table tr:last-child td { border-bottom: 0; }
.tarif-table td { text-align: right; white-space: nowrap; padding-left: 1rem; font-weight: 600; color: var(--framboise); }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid var(--framboise);
}
.btn-primary { background: var(--framboise); color: #fff; }
.btn-primary:hover { background: var(--framboise-fonce); border-color: var(--framboise-fonce); color: #fff; }
.btn-secondary { background: transparent; color: var(--framboise); }
.btn-secondary:hover { background: var(--rose-pale); color: var(--framboise-fonce); }

/* Accueil et À propos */
.hero { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--filet); }
.hero .lead { margin: 0; }

.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; align-items: start; }
@media (max-width: 56rem) {
  .deux-colonnes { grid-template-columns: 1fr; gap: 2rem; }
}

.prose { max-width: 42rem; }
.prose h2 { margin: 2rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }

.carte-infos {
  background: var(--rose-pale);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.carte-infos h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.carte-infos dl { margin: 0; }
.carte-infos dt { font-weight: 650; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--encre-douce); }
.carte-infos dd { margin: .15rem 0 1rem; }
.carte-infos .actions { margin-top: .5rem; }
.carte-infos .btn-secondary:hover { background: var(--fond); }

/* Pages légales */
.page-legale h2 { margin-top: 2.25rem; }
.identite { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0 0 1rem; }
.identite dt { font-weight: 600; }
.identite dd { margin: 0; }
@media (max-width: 30rem) {
  .identite { grid-template-columns: 1fr; gap: 0; }
  .identite dd { margin-bottom: .6rem; }
}
.maj { margin-top: 2.5rem; color: var(--encre-douce); font-size: .95rem; }

/* Formulaire de contact */
.formulaire-contact { max-width: 40rem; }
.champ { margin-bottom: 1.25rem; }
.champ-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 36rem) { .champ-ligne { grid-template-columns: 1fr; } }
.champ label { display: block; font-weight: 600; margin-bottom: .35rem; }
.facultatif { font-weight: 400; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--fond);
  border: 1.5px solid #d9b8c8;
  border-radius: 10px;
  padding: .65rem .8rem;
}
.champ textarea { resize: vertical; min-height: 9rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--rose); outline-offset: 0; border-color: var(--framboise); }
.champ [aria-invalid="true"] { border-color: #b3261e; }
.erreur { color: #b3261e; font-size: .95rem; margin: .35rem 0 0; }
.alerte { background: #fdecea; color: #8c1d18; border-radius: 10px; padding: .75rem 1rem; margin: 0 0 1.25rem; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mention-rgpd { font-size: .925rem; color: var(--encre-douce); margin: 0 0 1.25rem; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
button.btn[disabled] { opacity: .6; cursor: progress; }
.merci { background: var(--rose-pale); border-radius: var(--radius); padding: 1.5rem; }
.merci h2 { margin-top: 0; font-size: 1.25rem; }
.merci p:last-child { margin-bottom: 0; }

/* Galerie */
.galerie {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Colonnes « mosaïque » : chaque photo garde ses proportions, rien n'est rogné */
  columns: 16rem;
  column-gap: 1.5rem;
}
.galerie-item { break-inside: avoid; margin-bottom: 1.5rem; }
.galerie-lien { display: block; border-radius: var(--radius); overflow: hidden; background: var(--rose-pale); }
.galerie-lien img {
  width: 100%;
  height: auto;
  transition: transform .3s ease;
}
.galerie-lien:hover img, .galerie-lien:focus-visible img { transform: scale(1.04); }
.galerie-titre { margin: .6rem 0 0; font-size: .95rem; color: var(--encre-douce); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .galerie-lien img { transition: none; } }

.visionneuse {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
.visionneuse::backdrop { background: rgb(36 20 30 / .92); }
.visionneuse figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 3.5rem 4rem 1.5rem;
}
.visionneuse img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.visionneuse figcaption { color: #fff; text-align: center; }
.visionneuse-bouton {
  position: fixed;
  border: 0;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  background: rgb(255 255 255 / .15);
  color: #fff;
}
.visionneuse-bouton:hover { background: var(--rose); color: var(--encre); }
.visionneuse-fermer { top: 1rem; right: 1rem; }
.visionneuse-precedent { left: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse-suivant { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) {
  .visionneuse figure { padding: 3.5rem .5rem 1rem; }
  .visionneuse-precedent, .visionneuse-suivant { top: auto; bottom: 1rem; transform: none; }
}

/* --- Actualités ------------------------------------------------------------------------------- */
.actualites { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; align-items: start; }
.actualites-entete { margin-bottom: 2rem; }
.actualites-entete h1 { margin-top: 0; }
.actualites-entete .lead { margin: 0; }

.cartes-articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.carte-article { display: flex; flex-direction: column; }
.carte-article-image { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--rose-pale); margin-bottom: .9rem; }
.carte-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.carte-article:hover .carte-article-image img { transform: scale(1.03); }
.carte-article-date { margin: 0 0 .25rem; font-size: .85rem; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .05em; }
.carte-article h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .5rem; }
.carte-article h2 a { color: var(--encre); text-decoration: none; }
.carte-article h2 a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.carte-article { position: relative; }
.carte-article h2 a:hover { color: var(--framboise); }
.carte-article p { margin: 0 0 .6rem; }
.carte-une { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.75rem; align-items: center; padding-bottom: 2rem; border-bottom: 1px solid var(--filet); }
.carte-une .carte-article-image { margin: 0; aspect-ratio: 16 / 11; }
.carte-une h2 { font-size: 1.6rem; }
.lien-fleche { color: var(--framboise); font-weight: 600; }
.lien-fleche::after { content: " →"; }
.lien-fleche { text-decoration: none; }

.colonne-actualites { position: sticky; top: 1.5rem; display: grid; gap: 1.25rem; }
.encart { background: var(--fond); border: 1px solid var(--filet); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.encart h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.encart p { margin: 0 0 .75rem; }
.encart p:last-child { margin-bottom: 0; }
.encart-devis { background: var(--rose-pale); border-color: var(--rose); }
.encart-devis .actions { margin-top: .75rem; gap: .5rem; }
.encart-devis .btn { padding: .55rem 1rem; font-size: .95rem; }
.encart-telephone a { font-size: 1.25rem; font-weight: 700; color: var(--encre); text-decoration: none; }
.liste-derniers { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.liste-derniers a { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: var(--encre); }
.liste-derniers img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.liste-derniers-titre { display: block; font-weight: 600; line-height: 1.3; }
.liste-derniers a:hover .liste-derniers-titre { color: var(--framboise); }
.liste-derniers time { display: block; font-size: .8rem; color: var(--encre-douce); margin-top: .15rem; }

.article { min-width: 0; }
.fil-ariane { font-size: .9rem; color: var(--encre-douce); margin-bottom: 1rem; }
.fil-ariane a { color: var(--framboise); }
.article h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; }
.article-meta { margin: 0 0 1.5rem; color: var(--encre-douce); font-size: .95rem; }
.article-image { margin: 0 0 1.5rem; }
.article-image-lien { display: block; border-radius: var(--radius); overflow: hidden; background: var(--rose-pale); }
.article-image img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; display: block; }
.article > .lead { max-width: none; font-size: 1.2rem; margin: 0 0 1.75rem; }
.article .prose { max-width: 44rem; font-size: 1.05rem; line-height: 1.7; }
.article .prose ul, .article .prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.article-photos { margin-top: 2.5rem; }
.article-photos h2 { font-size: 1.3rem; }
.galerie-article { columns: 2 14rem; }
.partage { margin: 2.5rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--filet); }
.partage h2 { font-size: 1rem; margin: 0 0 .75rem; }
.partage-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.partage-liens a, .partage-copier { display: inline-block; font: inherit; font-size: .95rem; font-weight: 600; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--framboise); background: var(--fond); color: var(--framboise); text-decoration: none; cursor: pointer; }
.partage-liens a:hover, .partage-copier:hover { background: var(--rose-pale); }
.lien-retour { font-weight: 600; }

@media (max-width: 62rem) {
  .actualites { grid-template-columns: 1fr; gap: 2.5rem; }
  .colonne-actualites { position: static; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}
@media (max-width: 40rem) {
  .cartes-articles { grid-template-columns: 1fr; }
  .carte-une { display: flex; padding-bottom: 0; border-bottom: 0; }
  .carte-une .carte-article-image { margin-bottom: .9rem; aspect-ratio: 4 / 3; }
  .carte-une h2 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .carte-article-image img { transition: none; } }

/* Boutique en ligne (lien externe) */
.main-nav .lien-externe span[aria-hidden] { font-size: .85em; }
.site-footer .footer-boutique { margin-top: .6rem; }
.encart-boutique { border-color: var(--rose); }
