/* Le 5 Ampère by Motion4Ever : « Loft chaleureux ». CSS écrit à la main, sans framework ni compilation (RGESN).
   Polices : Poppins 400 et 600 hébergées ici (licence OFL, voir public/fonts). Aucune ressource externe. */

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}

:root {
    --cream: #f6efe4;
    --cream-2: #efe3d0;
    --ink: #2b2622;
    --muted: #5a4d40;
    --coral: #b83a27;
    --coral-hover: #9f311f;
    --coral-vivid: #fc7157;   /* décor, ou texte sur fond sombre uniquement */
    --wood: #b98a5b;          /* décor uniquement */
    --wood-text: #7d5f3c;     /* petit texte sur crème */
    --dark: #1f2328;
    --dark-2: #2b2f35;
    --line: #dccdb4;
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
}

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

.container {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a {
    color: var(--coral);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--coral-hover);
}

/* Focus toujours visible (RGAA 10.7) */
:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

.band :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--cream);
}

.cta-band :focus-visible {
    outline-color: #fff;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--radius);
    z-index: 10;
}

.skip-link:focus {
    top: 1rem;
}

main:focus {
    outline: none;
}

/* Motif « courant » : un trait en zigzag, clin d'œil à l'ampère. */
.zigzag {
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpolyline points='0,10 8,10 14,3 22,11 30,3 38,10 48,10' fill='none' stroke='%23b83a27' stroke-width='2'/%3E%3C/svg%3E") repeat-x center;
}

/* En-tête */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding-block: 0.9rem;
}

.brand {
    display: block;
    text-decoration: none;
    color: var(--ink);
    line-height: 1.15;
    margin-right: auto;
}

.brand:hover {
    color: var(--ink);
}

.brand-name {
    display: block;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.brand-five {
    color: var(--coral);
}

.brand-by {
    display: block;
    font-size: 0.75rem;
    color: var(--wood-text);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: inline-block;
    padding: 0.35rem 0.1rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    border-bottom-color: var(--coral);
    color: var(--ink);
}

.nav-list a.nav-cta {
    background: var(--coral);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-weight: 600;
    border-bottom: 0;
    transition: background 0.15s;
}

.nav-list a.nav-cta:hover {
    background: var(--coral-hover);
    color: #fff;
}

.lang-switch {
    display: inline-block;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    padding: 0.2rem 0.85rem;
    font-size: 0.85rem;
    color: var(--ink);
    text-decoration: none;
}

.lang-switch:hover {
    background: var(--ink);
    color: var(--cream);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.6rem 1.6rem;
    border: 2px solid var(--coral);
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
    background: var(--coral-hover);
    border-color: var(--coral-hover);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}

.btn-light {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--ink);
}

.btn-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

/* Héros et photos */
.hero {
    background: var(--cream-2);
    padding-block: clamp(2rem, 6vw, 4.5rem);
}

.hero--home {
    background: transparent;
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 60rem) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero--home .hero-grid {
        grid-template-columns: 1fr 1.15fr;
    }
}

.tagline {
    margin: 0 0 0.5rem;
    color: var(--coral);
    font-weight: 600;
    font-size: 1.1rem;
}

.lead {
    max-width: 40rem;
    font-size: 1.2rem;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.figure {
    margin: 0;
}

.figure img,
.photo-slot {
    border-radius: var(--radius-lg);
}

.mosaic {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
    aspect-ratio: 1.15 / 1;
    margin: 0;
}

.mosaic figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.mosaic .mosaic-main {
    grid-row: span 2;
}

.mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Emplacement de photo : tant que la photo n'existe pas, un panneau de couleur la remplace. */
.photo-slot {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 1200 / 904;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--ink);
}

/* Trait « courant » discret au centre du panneau, pour qu'il paraisse voulu. */
.photo-slot::before {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: 50%;
    height: 14px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpolyline points='0,10 8,10 14,3 22,11 30,3 38,10 48,10' fill='none' stroke='%23f6efe4' stroke-width='2'/%3E%3C/svg%3E") repeat-x center;
    opacity: 0.6;
}

.photo-slot--wood { background: var(--wood); }
.photo-slot--dark { background: var(--dark-2); color: var(--cream); }
.photo-slot--coral { background: var(--coral-vivid); }

/* Sections de l'accueil */
.section {
    padding-block: clamp(1.75rem, 5vw, 3.25rem);
}

.offers {
    padding-block: clamp(1.75rem, 5vw, 3rem);
}

.key-facts {
    background: var(--cream-2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

.key-facts h2 {
    margin-top: 0;
}

.key-facts .details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem 2rem;
    margin: 0;
}

.key-facts .fact dt {
    margin: 0;
    color: var(--wood-text);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.key-facts .fact dd {
    margin: 0.15rem 0 0;
}

.cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.card {
    background: var(--cream-2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.15s;
}

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

.card h2,
.card h3 {
    margin-bottom: 0.5rem;
}

.card .photo-slot,
.card .figure,
.card picture,
.card > img {
    margin-bottom: 1rem;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
}

.icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price {
    margin: 0;
    color: var(--coral-hover);
    font-weight: 600;
}

/* Sur le crème foncé, le corail ne passe qu'à 4,51:1 : les liens y prennent le ton survolé (6:1 environ). */
.card a,
.key-facts a,
.faq-item a,
.hero a:not(.btn) {
    color: var(--coral-hover);
}

.band {
    background: var(--dark);
    color: var(--cream);
    padding-block: clamp(2.25rem, 6vw, 4rem);
}

.band h2 {
    color: var(--cream);
    margin-top: 0;
}

.band .checklist {
    columns: 2 20rem;
    column-gap: 2.5rem;
}

.band .checklist li {
    break-inside: avoid;
}

.band .checklist li::before {
    color: var(--coral-vivid);
}

.cta-band {
    background: var(--coral);
    color: #fff;
    text-align: center;
    padding-block: clamp(2.25rem, 6vw, 3.5rem);
}

.cta-band h2 {
    color: #fff;
    margin-top: 0;
}

.cta-band p {
    margin-inline: auto;
    max-width: 36rem;
}

/* Pages de contenu */
.page {
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.page h1::after {
    content: "";
    display: block;
    width: 6rem;
    height: 14px;
    margin-top: 0.9rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpolyline points='0,10 8,10 14,3 22,11 30,3 38,10 48,10' fill='none' stroke='%23b83a27' stroke-width='2'/%3E%3C/svg%3E") no-repeat left center;
}

.prose {
    max-width: 52rem;
}

.prose h2 {
    margin-top: 2rem;
}

.prose .cards {
    margin-bottom: 1.5rem;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: 0.45rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 600;
}

.faq-item {
    margin-bottom: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    background: var(--cream-2);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: none;
    color: var(--coral);
    font-size: 1.6rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 0.75rem 0 0;
}

address {
    font-style: normal;
    margin-bottom: 1rem;
}

.details dt {
    margin-top: 0.75rem;
    font-weight: 600;
}

.details dd {
    margin: 0;
}

/* Formulaires, alertes, tableaux */
fieldset {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.5rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fffdf8;
}

legend {
    padding-inline: 0.5rem;
    font-weight: 600;
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.field-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.field-check label {
    margin: 0;
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    max-width: 28rem;
    min-height: 2.75rem;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
}

input[type="checkbox"] {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    accent-color: var(--coral);
}

.help {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.alert {
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.1rem;
    border: 2px solid var(--coral);
    border-radius: var(--radius);
    background: #fff;
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert-info {
    border-color: var(--ink);
}

table.data {
    width: 100%;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    background: #fffdf8;
    overflow: hidden;
}

table.data th,
table.data td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

table.data thead th {
    background: var(--cream-2);
}

table.data tr:last-child > * {
    border-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.table-wrap table.data {
    min-width: 36rem;
    margin-bottom: 0;
}

.refuse {
    margin-top: 2rem;
}

/* Pied de page */
.site-footer {
    background: var(--dark);
    color: var(--cream);
    padding-block: 2.5rem;
}

.site-footer a {
    color: var(--cream);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer p {
    margin: 0 0 0.3rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.footer-brand {
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.footer-brand .brand-five {
    color: var(--coral-vivid);
}

.footer-brand .brand-by {
    display: inline;
    margin-left: 0.4rem;
    color: var(--wood);
    font-size: 0.8rem;
    font-weight: 400;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    max-width: 34rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Utilitaires */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Information légale à renseigner : bien visible tant qu'elle manque. */
.todo {
    padding: 0 0.35rem;
    border: 1px dashed var(--coral);
    border-radius: 0.25rem;
    background: #fff3cd;
    color: var(--ink);
}

/* Champ piège anti-spam : hors écran. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 40rem) {
    .header-inner {
        gap: 0.4rem 1rem;
    }

    .mosaic {
        aspect-ratio: 1 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .card:hover {
        transform: none;
    }
}
