/* Design du site public, style sport. Chargé après app.css. La gestion réutilise ses polices et ses boutons. */
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    --titre: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    --accent: #FF4D4D;
    --noir-2: #15151A;
    --noir-3: #212128;
    --gris-clair: #C9CACE;
}

body { font-family: "Barlow", "Segoe UI", system-ui, sans-serif; font-size: 17px; background: #fff; }
.conteneur { max-width: 1240px; padding: 0 24px; }

h1, h2, .titre-sport {
    font-family: var(--titre);
    font-style: italic;
    font-weight: 800;
    letter-spacing: -.005em;
    line-height: .98;
    text-transform: uppercase;
}

/* Boutons à bords inclinés : la forme est dessinée derrière, le texte reste droit. */
.bouton, .bouton:hover {
    position: relative;
    isolation: isolate;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #fff;
}
.bouton {
    font-family: var(--titre);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.2;
    padding: 13px 28px;
    text-transform: uppercase;
    transition: transform .18s;
}
.bouton::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--rouge);
    transform: skewX(-12deg);
    transition: background .18s;
}
.bouton:hover::before { background: #D42525; }
.bouton:hover { transform: translateX(3px); }
.bouton.large { font-size: 23px; padding: 17px 38px; }
.bouton.petit { font-size: 16px; padding: 9px 20px; }
.bouton.secondaire, .bouton.secondaire:hover { background: transparent; color: var(--noir-doux); }
.bouton.secondaire::before { background: transparent; border: 2px solid var(--noir-doux); }
.bouton.secondaire:hover::before { background: rgba(13,13,15,.07); }
.bouton.fantome, .bouton.fantome:hover { color: #fff; }
.bouton.fantome::before { background: rgba(255,255,255,.04); border: 2px solid rgba(255,255,255,.75); }
.bouton.fantome:hover::before { background: rgba(255,255,255,.16); }

/* En-tête */
html { scroll-padding-top: 92px; }
.entete { position: sticky; top: 0; z-index: 20; background: var(--noir); border-bottom: 0; box-shadow: inset 0 -3px 0 var(--rouge); }
.entete-contenu { min-height: 78px; flex-wrap: nowrap; }
.logo img { height: 54px; }
.nav-principale { gap: 26px; flex-wrap: nowrap; white-space: nowrap; }
.nav-principale a:not(.bouton) {
    font-family: var(--titre);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.nav-principale a:not(.bouton):hover, .nav-principale a.courant { color: var(--accent); }
.nav-principale .bouton { font-size: 17px; padding: 10px 22px; }
.langues { font-family: var(--titre); font-size: 18px; }

/* Bouton du panneau : caché si le script ne tourne pas */
.menu-bouton { display: none; }
.menu-actif .menu-bouton { display: flex; flex-direction: column; justify-content: center; gap: 6px; flex: none; width: 46px; height: 46px; padding: 0 9px; background: none; border: 0; cursor: pointer; }
.menu-bouton span { display: block; height: 3px; background: #fff; transition: background .15s; }
.menu-bouton:hover span { background: var(--accent); }

/* Panneau latéral : s'ouvre et se referme */
.panneau-voile { position: fixed; inset: 0; z-index: 40; background: rgba(13,13,15,.6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.panneau-lateral {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    width: min(330px, 86vw);
    padding: 22px 26px 26px;
    background: var(--noir);
    border-right: 3px solid var(--rouge);
    overflow-y: auto;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
}
.menu-actif .panneau-lateral { display: flex; }
.panneau-lateral.ouvert { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
.menu-ouvert { overflow: hidden; }
.menu-ouvert .panneau-voile { opacity: 1; visibility: visible; }
.panneau-fermer { align-self: flex-end; width: 44px; height: 44px; margin: -6px -10px 4px 0; background: none; border: 0; color: #fff; cursor: pointer; font-size: 38px; line-height: 1; }
.panneau-fermer:hover { color: var(--accent); }
.panneau-logo { width: 100%; height: auto; margin-bottom: 24px; }
.panneau-liens { display: flex; flex-direction: column; margin-bottom: 26px; }
.panneau-liens a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-family: var(--titre);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .15s, padding-left .15s;
}
.panneau-liens a:hover, .panneau-liens a.courant { color: var(--accent); padding-left: 8px; }
.panneau-lateral > .bouton { text-align: center; }
.panneau-infos { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 30px; color: var(--gris-clair); font-size: 15px; }
.panneau-infos a { color: #fff; font-weight: 600; text-decoration: none; }
.panneau-infos a:hover { color: var(--accent); }
.panneau-lateral .langues { margin-top: 14px; }

/* Haut de page : photo entière, voile sombre transparent */
.heros { position: relative; overflow: hidden; background: var(--noir); padding: 0; }
.heros-contenu { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: min(calc(100vh - 160px), 720px); padding-top: 72px; padding-bottom: 80px; }
.heros-photo { position: absolute; inset: 0; }
.heros-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.heros-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,15,.76) 0%, rgba(13,13,15,.5) 55%, rgba(13,13,15,.22) 100%); }
.surtitre {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--titre);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.surtitre::before { content: ""; width: 54px; height: 4px; background: var(--rouge); transform: skewX(-30deg); }
.heros h1 { font-size: clamp(54px, 6.2vw, 96px); max-width: 760px; margin: 0 0 20px; text-shadow: 0 2px 22px rgba(0,0,0,.45); }
.heros h1 em { display: block; color: #fff; font-style: inherit; }
.heros h1 span { color: #FF5A5A; }
.heros p.heros-texte { max-width: 520px; margin: 0 0 32px; color: #fff; font-size: 21px; line-height: 1.45; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.heros-actions { display: flex; flex-wrap: wrap; gap: 20px; }

/* Bande d'arguments */
.atouts { position: relative; z-index: 3; background: var(--rouge); }
.grille-atouts { gap: 0; padding-top: 0; padding-bottom: 0; }
.atout { padding: 26px 28px; gap: 18px; }
.atout + .atout { border-left: 1px solid rgba(255,255,255,.28); }
.atout .icone { width: 40px; height: 40px; color: #fff; }
.atout strong { font-family: var(--titre); font-size: 25px; font-style: italic; font-weight: 800; letter-spacing: .01em; line-height: 1.05; text-transform: uppercase; }
.atout span { color: #FFE3E3; font-size: 16px; }

/* Sections */
.section { padding: 104px 0; }
.section h2 { font-size: clamp(46px, 5.4vw, 76px); margin: 0 0 14px; }
.section-intro { font-size: 19px; margin: 0 0 48px; max-width: 620px; }
.section.sombre { background: var(--noir); }
.section.sombre .section-intro { color: var(--gris-clair); }
.titre-accent { display: block; width: 76px; height: 7px; margin-bottom: 22px; background: var(--rouge); transform: skewX(-30deg); }

/* Services : cartes claires numérotées */
#services { background: #F4F4F6; color: var(--noir-doux); }
#services .section-intro { color: var(--gris-texte); }
.grille-services { gap: 22px; grid-template-columns: repeat(4, 1fr); counter-reset: service; }
#services .carte-service {
    position: relative;
    counter-increment: service;
    gap: 8px;
    min-height: 290px;
    padding: 28px 26px 26px;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(13,13,15,.07);
    color: var(--noir-doux);
    transition: transform .24s ease, box-shadow .24s ease;
}
/* Numéro en filigrane */
#services .carte-service::after {
    content: counter(service, decimal-leading-zero);
    position: absolute;
    top: 14px;
    right: 18px;
    color: rgba(13,13,15,.07);
    font-family: var(--titre);
    font-size: 76px;
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    transition: color .24s;
}
/* Trait rouge qui s'étire au survol */
#services .carte-service::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--rouge), #E8403F);
    transform: scaleX(.18);
    transform-origin: left;
    transition: transform .3s ease;
}
#services .carte-service:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(183,28,28,.2); }
#services .carte-service:hover::before { transform: scaleX(1); }
#services .carte-service:hover::after { color: rgba(183,28,28,.2); }
#services .pastille-icone {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    background: var(--noir);
    border-radius: 0;
    color: #fff;
    clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
    transition: background .24s;
}
#services .pastille-icone .icone { width: 32px; height: 32px; }
#services .carte-service:hover .pastille-icone { background: var(--rouge); color: #fff; }
#services .carte-service strong { font-family: var(--titre); font-size: 27px; font-style: italic; font-weight: 800; line-height: 1.02; text-transform: uppercase; }
#services .carte-texte { color: var(--gris-texte); font-size: 16px; line-height: 1.42; }
#services .carte-lien { color: var(--rouge); font-family: var(--titre); font-size: 18px; letter-spacing: .06em; margin-top: 10px; text-transform: uppercase; }
#services .carte-lien::after { display: inline-block; transition: transform .2s; }
#services .carte-service:hover .carte-lien::after { transform: translateX(6px); }

/* Produits */
#produits { background: #fff; }
#produits .grille-services { grid-template-columns: repeat(6, 1fr); gap: 14px; background: none; border: 0; }
#produits .carte-produit { align-items: center; gap: 12px; padding: 26px 14px; background: #F4F4F6; border: 0; border-bottom: 4px solid var(--rouge); border-radius: 0; text-align: center; }
#produits .carte-produit:hover { border-bottom-color: var(--rouge); }
#produits .carte-produit img { height: 130px; border-radius: 0; }
#produits .pastille-icone { width: 76px; height: 76px; margin: 0; background: var(--noir); border-radius: 0; color: #fff; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
#produits .pastille-icone .icone { width: 38px; height: 38px; }
#produits .carte-produit strong { font-family: var(--titre); font-size: 23px; font-style: italic; font-weight: 800; line-height: 1.05; text-transform: uppercase; }

/* Étapes */
.etapes { gap: 0; margin-top: 44px; }
.etapes li { position: relative; padding: 0 44px 0 0; }
.etapes li::before {
    display: block;
    width: auto;
    height: auto;
    margin-bottom: 14px;
    border-radius: 0;
    background: none;
    color: transparent;
    font-family: var(--titre);
    font-size: 128px;
    font-style: italic;
    font-weight: 800;
    line-height: .9;
    -webkit-text-stroke: 2px var(--accent);
}
.etapes strong { font-family: var(--titre); font-size: 30px; font-style: italic; font-weight: 800; line-height: 1.05; margin-bottom: 8px; text-transform: uppercase; }
.etapes span { font-size: 18px; }

/* Atelier */
.section.grise { background: #fff; }
.atelier-bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.atelier-photo { position: relative; margin: 0 0 24px 24px; }
.atelier-photo::before { content: ""; position: absolute; left: -24px; right: 24px; top: 24px; bottom: -24px; background: var(--rouge); }
.atelier-photo img { position: relative; width: 100%; height: 620px; object-fit: cover; object-position: center 45%; border-radius: 0; }
.atelier-points { list-style: none; margin: 0 0 34px; padding: 0; }
.atelier-points li { position: relative; padding: 15px 0 15px 34px; border-top: 1px solid var(--gris-bord); font-size: 19px; font-weight: 500; }
.atelier-points li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 8px; background: var(--rouge); transform: skewX(-30deg); }

/* Contact */
#contact { background: var(--noir); color: #fff; }
.contact { gap: 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch; }
.contact dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px 20px; margin: 30px 0 36px; }
.contact dt { grid-column: 1; margin: 2px 0 0; color: var(--accent); font-family: var(--titre); font-size: 18px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact dd { grid-column: 2; color: #fff; font-size: 18px; overflow-wrap: anywhere; }
.contact dd + dd { margin-top: -10px; }
.contact dd a { color: #fff; }
.contact dd a:hover { color: var(--accent); }
.contact .actions { display: flex; flex-wrap: wrap; gap: 18px; }
.contact .bouton.secondaire, .contact .bouton.secondaire:hover { color: #fff; }
.contact .bouton.secondaire::before { border-color: rgba(255,255,255,.75); }
.contact .bouton.secondaire:hover::before { background: rgba(255,255,255,.16); }
.carte-garage { height: 100%; min-height: 440px; border-radius: 0; filter: grayscale(.55) contrast(1.05); }
.carte-attente { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 40px;
    border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.05); color: #fff; filter: none; }
.carte-attente p { max-width: 460px; margin: 0; font-size: 18px; }
.carte-attente .actions { display: flex; flex-wrap: wrap; gap: 18px; }
.carte-attente .bouton.secondaire, .carte-attente .bouton.secondaire:hover { color: #fff; }
.carte-attente .bouton.secondaire::before { border-color: rgba(255,255,255,.75); }
.carte-attente .bouton.secondaire:hover::before { background: rgba(255,255,255,.16); }
.carte-attente [hidden] { display: none; }

/* Politique de confidentialité */
.page-politique { max-width: 860px; }
.page-politique .politique-maj { color: var(--gris-texte); font-size: 15px; }
.page-politique h2 { margin-top: 44px; font-size: 30px; }
.page-politique ul { padding-left: 22px; }
.page-politique li { margin: 8px 0; }

/* Pied de page */
.pied { background: var(--noir-2); border-top: 3px solid var(--rouge); padding: 30px 0; font-size: 15px; }
.pied .conteneur { align-items: center; }

/* Petits boutons inclinés : mot de passe et déconnexion */
.barre-compte a, .barre-compte button {
    position: relative;
    isolation: isolate;
    display: inline-block;
    padding: 6px 15px;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    font-family: var(--titre);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}
.barre-compte a::before, .barre-compte button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.55);
    transform: skewX(-12deg);
    transition: background .18s, border-color .18s;
}
.barre-compte a:hover::before, .barre-compte button:hover::before { background: var(--rouge); border-color: var(--rouge); }

/* Formulaire et pages de texte */
main.page-formulaire, main.page-texte { padding-top: 64px; padding-bottom: 96px; }
.page-formulaire h1, .page-texte h1 { position: relative; font-size: clamp(46px, 6vw, 76px); padding-top: 26px; }
.page-formulaire h1::before, .page-texte h1::before { content: ""; position: absolute; top: 0; left: 2px; width: 76px; height: 7px; background: var(--rouge); transform: skewX(-30deg); }
.page-formulaire .section-intro { color: var(--gris-texte); }
.page-formulaire form { max-width: 820px; }
.page-formulaire fieldset { border: 0; border-top: 3px solid var(--noir); border-radius: 0; margin: 0 0 36px; padding: 22px 0 0; }
.page-formulaire legend { padding: 0 16px 0 0; font-family: var(--titre); font-size: 28px; font-style: italic; font-weight: 800; text-transform: uppercase; }
.page-formulaire input:not([type=radio]):not([type=checkbox]), .page-formulaire select, .page-formulaire textarea { border: 1px solid #8D8E96; border-radius: 0; font-size: 17px; padding: 12px 13px; }
.page-formulaire input:focus, .page-formulaire select:focus, .page-formulaire textarea:focus { border-color: var(--rouge); outline: 2px solid var(--rouge); outline-offset: 0; }
.page-formulaire .creneau span { border-radius: 0; font-weight: 600; }
.page-texte { max-width: 820px; }
.page-texte h2 { margin-top: 38px; font-size: 32px; }
.recap { border: 0; border-left: 5px solid var(--rouge); border-radius: 0; background: var(--gris-fond); }

/* Apparition au défilement : seulement si le script tourne et si la personne accepte les animations. */
.anime .reveler { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.anime .reveler.visible { opacity: 1; transform: none; }

@media (max-width: 1320px) {
    .grille-services { grid-template-columns: repeat(3, 1fr); }
    #produits .grille-services { grid-template-columns: repeat(3, 1fr); }
}

/* Sur ordinateur, le menu du haut suffit : pas de bouton ni de panneau */
@media (min-width: 1061px) {
    .menu-actif .menu-bouton, .menu-actif .panneau-lateral, .panneau-voile { display: none; }
    .menu-ouvert { overflow: visible; }
}

/* Tablette et téléphone : les liens du haut passent dans le panneau */
@media (max-width: 1060px) {
    .menu-actif .nav-principale > a:not(.bouton), .menu-actif .nav-principale > .langues { display: none; }
    .entete-contenu { padding-top: 8px; padding-bottom: 8px; }
    html:not(.menu-actif) .entete-contenu, html:not(.menu-actif) .nav-principale { flex-wrap: wrap; white-space: normal; }
}

@media (max-width: 520px) {
    .menu-actif .nav-principale { display: none; }
    .logo img { height: 48px; }
}

@media (max-width: 820px) {
    body { font-size: 16px; }
    .conteneur { padding: 0 16px; }
    .heros-photo::after { background: rgba(13,13,15,.58); }
    /* --hors-heros : hauteur du menu et de la bande rouge, mesurée par public.js. */
    .heros-contenu { min-height: calc(100svh - var(--hors-heros, 268px)); padding-top: 26px; padding-bottom: 26px; }
    .surtitre { font-size: 14px; letter-spacing: .1em; gap: 10px; margin-bottom: 10px; }
    .surtitre::before { width: 30px; height: 3px; }
    .heros h1 { font-size: clamp(38px, 12.4vw, 60px); margin-bottom: 12px; }
    .heros p.heros-texte { font-size: clamp(16px, 4.5vw, 20px); line-height: 1.35; margin-bottom: 20px; }
    .heros-actions { width: 100%; gap: 12px; flex-wrap: nowrap; }
    .heros-actions .bouton { flex: 1; font-size: 16px; padding: 12px 6px; text-align: center; }
    .grille-atouts { grid-template-columns: 1fr; }
    .atout { padding: 8px 2px; gap: 12px; }
    .atout .icone { width: 26px; height: 26px; }
    .atout strong { font-size: 18px; }
    .atout span { font-size: 13px; line-height: 1.25; }
    .atout + .atout { border-left: 0; border-top: 1px solid rgba(255,255,255,.28); }
    .section { padding: 68px 0; }
    .section-intro { margin-bottom: 32px; }
    .grille-services { grid-template-columns: repeat(2, 1fr); }
    .grille-services { gap: 14px; }
    #services .carte-service { min-height: 0; padding: 20px 16px 22px; }
    #services .carte-service strong { font-size: 23px; }
    #services .carte-service::after { font-size: 58px; right: 10px; }
    #produits .grille-services { grid-template-columns: repeat(2, 1fr); }
    .etapes { grid-template-columns: 1fr; gap: 34px; }
    .etapes li { padding: 0; }
    .etapes li::before { font-size: 88px; }
    .atelier-bloc, .contact { grid-template-columns: 1fr; gap: 46px; }
    .atelier-photo { margin: 0 0 16px 16px; }
    .atelier-photo::before { left: -16px; right: 16px; top: 16px; bottom: -16px; }
    .atelier-photo img { height: 420px; }
    .contact dl { grid-template-columns: 105px minmax(0, 1fr); gap: 14px 12px; }
    .carte-garage { min-height: 320px; }
}

@media (max-width: 340px) {
    .heros p.heros-texte { display: none; }
    .heros h1 { margin-bottom: 16px; }
}

@media (max-width: 480px) {
    .grille-services { grid-template-columns: 1fr; }
    #produits .grille-services { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .barre-compte a::before, .barre-compte button::before,
    .bouton, .bouton::before, #services .carte-service, #services .carte-service::after, #services .carte-service::before, #services .pastille-icone, #services .carte-lien::after { transition: none; }
    #services .carte-service:hover, #services .carte-service:hover .carte-lien::after { transform: none; }
    .bouton:hover { transform: none; }
}
