/* Taffetas — la ligne de la maison : ivoire, reflets satinés, liserés, calme.
   Polices hébergées par la maison (aucun appel à un service tiers). */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --encre: #2E2A26;
  --encre-douce: #5E564D;
  --sourdine: #73695E;
  --ligne: #E8DFD0;
  --ivoire: #F9F6F0;
  --soie: #FFFDF9;
  --champagne: #C7AE80;
  --or-texte: #8C7448;
  --rose: #C9A3A0;
  --sauge: #A9B5A0;
  --bouton: #2F2B27;
  --bouton-texte: #F9F6F0;
  --champ: rgba(255, 253, 249, .9);
  --champ-ligne: #E0D5C3;
  --carte-ligne: #EFE7DA;
  --carte: rgba(255, 253, 249, .85);
  --ombre: 0 1px 2px rgba(90, 70, 40, .03), 0 10px 28px rgba(90, 70, 40, .05);
  --bandeau: linear-gradient(180deg, #F1ECE3, #F6F2EB);
  --satin: linear-gradient(115deg, #FFFDF9 0%, #F6EFE4 42%, #FCF9F4 58%, #EFE6D8 100%);
  --liseré: linear-gradient(90deg, rgba(200, 182, 150, 0), rgba(200, 182, 150, .75) 20%, rgba(200, 182, 150, .75) 80%, rgba(200, 182, 150, 0));
  --fond: radial-gradient(ellipse 70% 40% at 15% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
          radial-gradient(ellipse 60% 50% at 95% 25%, rgba(236, 226, 208, .55), rgba(236, 226, 208, 0) 70%),
          #F9F6F0;
  --draperie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='320' viewBox='0 0 560 320'%3E%3Cdefs%3E%3ClinearGradient id='d' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.9'/%3E%3Cstop offset='1' stop-color='%23E6D8C0' stop-opacity='.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M40 320 C 140 180, 220 260, 300 140 S 470 60, 560 20 L 560 320 Z' fill='url(%23d)' opacity='.55'/%3E%3Cpath d='M120 320 C 210 220, 290 290, 370 180 S 500 110, 560 90' fill='none' stroke='%23D9C7A6' stroke-width='1' opacity='.7'/%3E%3Cpath d='M80 320 C 180 200, 260 270, 340 160 S 490 80, 560 50' fill='none' stroke='%23fff' stroke-width='2' opacity='.9'/%3E%3Cpath d='M180 320 C 260 250, 330 300, 410 210 S 520 150, 560 140' fill='none' stroke='%23D6B9B3' stroke-width='1' opacity='.6'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Le mode nuit : un brun chaud aux reflets champagne */
:root[data-theme="nuit"] {
  --encre: #EFE8DC;
  --encre-douce: #D2C8B9;
  --sourdine: #ADA294;
  --ligne: #3B342D;
  --ivoire: #211D19;
  --soie: #2A2520;
  --or-texte: #CDB58A;
  --bouton: #EFE8DC;
  --bouton-texte: #211D19;
  --champ: rgba(255, 248, 235, .05);
  --champ-ligne: #4A4137;
  --carte-ligne: rgba(205, 181, 138, .16);
  --carte: rgba(255, 248, 235, .04);
  --ombre: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 34px rgba(0, 0, 0, .28);
  --bandeau: linear-gradient(180deg, rgba(255, 248, 235, .05), rgba(255, 248, 235, .02));
  --satin: linear-gradient(115deg, rgba(255, 248, 235, .08), rgba(255, 248, 235, .03) 50%, rgba(255, 248, 235, .07));
  --liseré: linear-gradient(90deg, rgba(205, 181, 138, 0), rgba(205, 181, 138, .45) 20%, rgba(205, 181, 138, .45) 80%, rgba(205, 181, 138, 0));
  --fond: radial-gradient(ellipse 60% 45% at 18% 0%, rgba(120, 98, 70, .32), rgba(120, 98, 70, 0) 70%),
          radial-gradient(ellipse 50% 50% at 95% 35%, rgba(150, 110, 105, .16), rgba(150, 110, 105, 0) 70%),
          #211D19;
  --draperie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='320' viewBox='0 0 560 320'%3E%3Cpath d='M120 320 C 210 220, 290 290, 370 180 S 500 110, 560 90' fill='none' stroke='%23CDB58A' stroke-width='1' opacity='.35'/%3E%3Cpath d='M80 320 C 180 200, 260 270, 340 160 S 490 80, 560 50' fill='none' stroke='%23fff' stroke-width='1.5' opacity='.12'/%3E%3Cpath d='M180 320 C 260 250, 330 300, 410 210 S 520 150, 560 140' fill='none' stroke='%23C9A3A0' stroke-width='1' opacity='.3'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fond);
  background-attachment: fixed;
  color: var(--encre);
  font-family: Jost, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--encre); }
::selection { background: rgba(199, 174, 128, .35); }

/* Le haut de la maison */

.entete {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--encre);
}

.marque svg { width: 54px; height: 35px; }
.marque .nom { font-family: "Cormorant Garamond", Georgia, serif; font-size: 40px; font-weight: 400; letter-spacing: 3px; line-height: 1; }
.marque .devise { font-size: 10px; letter-spacing: 4.5px; text-transform: uppercase; color: var(--sourdine); }
.marque:hover .nom { color: var(--or-texte); }

.nuit {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nuit:hover { background: rgba(199, 174, 128, .14); }

.navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 44px;
  margin-top: 24px;
}

.navigation a {
  padding: 10px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--sourdine);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.navigation a:hover { color: var(--encre); }
.navigation a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--champagne); }

.liseré { height: 1px; background: var(--liseré); }

/* Le corps de la maison */

.corps {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.ecrin {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  padding: 50px 56px 46px;
  border-radius: 32px;
  border: 1px solid var(--carte-ligne);
  background: var(--draperie) right -30px bottom -2px / 560px 320px no-repeat, var(--satin);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(90, 70, 40, .05), 0 24px 60px rgba(90, 70, 40, .07);
}

.surtitre {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--or-texte);
}

h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--encre); }

h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 300;
  line-height: 1.04;
  max-width: 18ch;
}

.descripteur {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--encre-douce);
  max-width: 60ch;
}

.accroche {
  margin: 22px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.45;
  color: var(--encre-douce);
  max-width: 40ch;
}

h2 {
  margin: 48px 4px 14px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
}

.filet { display: none; }

p { max-width: 68ch; }

/* Les portes, les listes, les cartes */

.portes, .liste {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--carte-ligne);
  border-radius: 22px;
  background: var(--carte);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.portes li, .liste li {
  padding: 18px 26px;
  border-bottom: 1px solid var(--carte-ligne);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.portes li:last-child, .liste li:last-child { border-bottom: 0; }

.portes a { text-decoration: none; font-size: 17px; }
.portes a::after { content: " ›"; color: var(--sourdine); }
.portes a:hover { color: var(--or-texte); }
.portes .principal { font-size: 16.5px; }
.portes .note { color: var(--sourdine); font-size: 15px; text-align: right; }

.liste .principal { font-size: 16.5px; }
.liste .detail { color: var(--sourdine); font-size: 14.5px; }
.liste:empty { display: none; }

.carte {
  position: relative;
  padding: 22px 26px;
  border: 1px solid var(--carte-ligne);
  border-radius: 22px;
  background: var(--carte);
  box-shadow: var(--ombre);
  color: var(--encre-douce);
}
.carte::before { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 1px; background: var(--liseré); }
.carte p { margin: 0; }
.carte p + p { margin-top: 10px; }

.discret { color: var(--sourdine); font-size: 14.5px; font-style: italic; }

/* Les formulaires */

.champ { margin: 0 0 16px; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sourdine);
}

input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--champ);
  border: 1px solid var(--champ-ligne);
  border-radius: 12px;
  padding: 12px 15px;
}

input:focus, textarea:focus, select:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(199, 174, 128, .2); }

input[type="range"] { padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: #A88C5E; }

form.carte { color: var(--encre); }

.bouton {
  font: inherit;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--bouton-texte);
  background: var(--bouton);
  border: 0;
  border-radius: 12px;
  padding: 13px 34px;
  cursor: pointer;
  margin-top: 6px;
}

.bouton:hover { opacity: .88; }

.bouton-second {
  font: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--sourdine);
  border: 0;
  cursor: pointer;
  border-bottom: 1px solid var(--champ-ligne);
  padding: 0 0 1px;
}

.bouton-second:hover { color: var(--encre); border-color: var(--champagne); }

.retour { margin-top: 44px; }
.retour a { color: var(--sourdine); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--champ-ligne); }
.retour a:hover { color: var(--encre); }

/* Le pied de la maison */

.pied {
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 40px 40px;
  color: var(--sourdine);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pied-liseré { max-width: 1000px; margin: 0 auto; height: 1px; background: var(--liseré); }

/* Petit écran : la maison reste digne */

@media (max-width: 700px) {
  .entete { padding: 16px 16px 0; }
  .nuit { top: 14px; right: 10px; }
  .marque .nom { font-size: 32px; letter-spacing: 2.5px; }
  .marque .devise { font-size: 9px; letter-spacing: 3.5px; }
  .marque svg { width: 40px; height: 26px; }
  .navigation { gap: 4px 22px; margin-top: 16px; }
  .navigation a { font-size: 11px; letter-spacing: 1.8px; }
  .corps { padding: 24px 16px 60px; }
  .ecrin { padding: 30px 24px 28px; border-radius: 26px; background-size: 320px 183px, auto; background-position: right -70px bottom 0, 0 0; }
  h1 { font-size: 38px; }
  .accroche { font-size: 21px; }
  h2 { font-size: 27px; margin-top: 36px; }
  .portes li, .liste li { padding: 16px 18px; flex-direction: column; gap: 2px; }
  .portes .note { text-align: left; }
  .pied { padding: 20px 16px 32px; }
}

/* La liste d'attente */

.attente p { color: var(--encre-douce); }
.attente-ligne { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-top: 18px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
label.case { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--encre-douce); line-height: 1.55; cursor: pointer; }
label.case input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; padding: 0; accent-color: #A88C5E; }
label.case a { color: var(--or-texte); }
.attente-message { margin: 14px 0 0; font-size: 15px; min-height: 1px; }
.attente-message.reussi { color: #5E7357; }
.attente-message.souci { color: #9E5A52; }
:root[data-theme="nuit"] .attente-message.reussi { color: #AFBCA6; }
:root[data-theme="nuit"] .attente-message.souci { color: #DDA89F; }
.bouton:disabled { opacity: .5; cursor: wait; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sourdine) 50%), linear-gradient(135deg, var(--sourdine) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.pied a { color: var(--sourdine); text-decoration: none; border-bottom: 1px solid var(--champ-ligne); }
.pied a:hover { color: var(--encre); }

@media (max-width: 700px) {
  .attente-ligne { grid-template-columns: 1fr; gap: 0; }
}

fieldset.codir { margin: 6px 0 14px; padding: 16px 18px 4px; border: 1px solid var(--carte-ligne); border-radius: 16px; }
fieldset.codir legend { padding: 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 17px; color: var(--or-texte); }
fieldset.codir .attente-ligne { margin-top: 4px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
fieldset.codir label:not(.case) { letter-spacing: .08em; }
@media (max-width: 700px) { fieldset.codir .attente-ligne { grid-template-columns: 1fr; } }
