/* Grand écran : lecture contenue, images plus présentes. */
@media (min-width:1600px) {
  :root {
    --container-width: 1380px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-photo {
    height: 610px;
  }

  .solution-media {
    height: 280px;
  }

}

/* Tablette et navigation repliée. */
@media (max-width:1100px) {
  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 88px;
    padding: 11px 16px;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-small);
    background-color: var(--color-white);
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 600;
  }

  .header-shell nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - var(--header-height));
    gap: 4px;
    overflow: auto;
    padding: 20px var(--page-gutter) 28px;
    border-bottom: 1px solid var(--color-line);
    background-color: var(--color-white);
    box-shadow: var(--shadow-card);
    font-size: 16px;
  }

  .header-shell nav.open {
    display: flex;
  }

  .header-shell nav>a:not(.btn) {
    min-height: 52px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .header-shell nav .btn {
    margin: 14px 0 0;
    font-size: 16px;
  }

  .hero {
    gap: 34px;
  }

  .hero h1 {
    font-size: 47px;
    letter-spacing: -1.5px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-photo {
    height: 540px;
  }

  .need-selector {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .need-selector>div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
  }

  .need-selector h2 {
    margin-top: 0;
  }

  .need-links a:first-child {
    border-left: 0;
  }

  .need-links a {
    padding: 12px 15px;
  }

  .ev-grid,.financing-grid,.about-grid,.faq-grid,.contact .wrap {
    gap: 40px;
  }

  .finance-preview {
    flex-wrap: wrap;
  }

  .finance-preview-link {
    margin-left: 134px;
  }

  .gallery {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .faq h2 {
    font-size: 35px;
  }

  .contact .wrap {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
  }

  .contact form {
    padding: 26px;
    gap: 20px;
  }

  .contact-channel {
    padding: 17px;
  }

  .contact-channel strong {
    font-size: 14px;
  }

  .footer-row {
    gap: 30px;
  }

}

/* Mobile : contenu sur une colonne et commandes de 48 pixels minimum. */
@media (max-width:760px) {
  :root {
    --header-height: 84px;
    --page-gutter: 24px;
    --section-space: 60px;
  }

  body {
    padding-bottom: 90px;
  }

  .utility-bar {
    font-size: 12px;
  }

  .utility-bar .wrap {
    gap: 10px;
  }

  .utility-contact {
    gap: 0;
  }

  .utility-email {
    display: none;
  }

  .brand img {
    width: 128px;
    height: 78px;
  }

  .heading {
    display: block;
    margin-bottom: 30px;
  }

  .heading>p {
    max-width: 100%;
    margin-top: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero h1 {
    margin-block: 22px;
    font-size: clamp(40px,8vw,58px);
    letter-spacing: -1.5px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    gap: 12px 20px;
    margin-top: 24px;
  }

  .hero-foot {
    margin-top: 25px;
    padding-top: 20px;
    gap: 10px 18px;
    font-size: 13px;
  }

  .hero-photo {
    height: 390px;
  }

  .photo-label {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 19px;
    font-size: 12px;
  }

  .photo-label small {
    font-size: 13px;
  }

  .need-selector {
    padding-block: 26px;
  }

  .need-selector>div:first-child {
    display: block;
  }

  .need-selector h2 {
    margin-top: 12px;
  }

  .need-links {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .need-links a {
    grid-template-columns: 52px 1fr 12px;
    align-items: center;
    gap: 10px;
    min-height: 88px;
    padding: 16px 13px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background-color: var(--color-soft);
    font-size: 14px;
    line-height: 1.5;
  }

  .need-links a:first-child {
    border-left: 1px solid var(--color-line);
  }

  .need-links a>svg {
    grid-column: auto;
  }

  .need-links a>span:last-child {
    align-self: center;
  }

  .need-links a:last-child {
    grid-column: 1/-1;
    border-color: #a4b89b;
    background-color: var(--color-green-soft);
    color: var(--color-green);
  }

  .services {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .solution-media {
    height: 250px;
  }

  .solution-content {
    padding: 28px;
  }

  .service h3 {
    font-size: 27px;
  }

  .service p {
    font-size: 16px;
  }

  .solution-bottom {
    gap: 16px;
  }

  .solution-bottom>span {
    font-size: 13px;
  }

  .finance-preview {
    padding: 24px;
    gap: 18px;
  }

  .serenity-preview-logo {
    width: 95px;
  }

  .serenity-preview-logo img {
    width: 95px;
    height: 64px;
  }

  .finance-preview>span:nth-child(2) {
    min-width: 0;
    flex: 1;
  }

  .finance-preview strong {
    font-size: 22px;
  }

  .finance-preview small {
    font-size: 14px;
  }

  .finance-preview-link {
    width: 100%;
    margin-left: 0;
  }

  .ev-grid,.financing-grid,.about-grid,.faq-grid,.contact .wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ev h2 {
    font-size: 38px;
  }

  .ev-visual {
    padding: 24px;
  }

  .ev-visual img {
    height: 340px;
  }

  .ev-visual figcaption {
    font-size: 14px;
  }

  .serenity-brand {
    margin-bottom: 22px;
  }

  .serenity-brand img {
    width: 195px;
    height: 131px;
  }

  .financing h2 {
    font-size: 38px;
  }

  .financing-intro {
    font-size: 17px;
  }

  .finance-tags {
    font-size: 13px;
  }

  .finance-condition {
    font-size: 14px;
  }

  .panel-top {
    padding: 24px;
    font-size: 16px;
  }

  .finance-panel ol {
    padding: 8px 24px;
  }

  .finance-panel li {
    padding-block: 24px;
  }

  .finance-panel h3 {
    font-size: 19px;
  }

  .panel-foot {
    padding: 24px;
    font-size: 15px;
  }

  .gallery-filters {
    gap: 10px;
  }

  .gallery-filters button {
    min-height: 48px;
    padding: 10px 15px;
    font-size: 14px;
  }

  .gallery {
    gap: 24px;
  }

  .about-visual img {
    height: 370px;
  }

  .about-visual>span {
    padding: 21px;
    font-size: 12px;
  }

  .about-copy p {
    font-size: 16px;
  }

  .process {
    margin-top: 38px;
    padding-top: 36px;
  }

  .process-heading {
    display: block;
  }

  .process-heading h3 {
    margin-top: 14px;
    font-size: 25px;
  }

  .process-steps {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 26px;
  }

  .process-steps h4 {
    font-size: 21px;
  }

  .process-steps p {
    font-size: 15px;
  }

  .faq h2 {
    font-size: 36px;
  }

  .faq summary {
    font-size: 17px;
    padding-block: 23px;
  }

  .faq details p {
    font-size: 16px;
  }

  .contact h2 {
    font-size: 42px;
  }

  .contact .wrap>div>p {
    max-width: 100%;
    font-size: 16px;
  }

  .contact form {
    padding: 26px;
    gap: 22px;
  }

  .contact-direct {
    max-width: 100%;
    margin-block: 27px;
  }

  .contact-channel strong {
    font-size: 15px;
  }

  .footer-row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-row>div:first-child {
    grid-column: 1/-1;
  }

  .footer-links {
    padding-right: 60px;
    gap: 16px 24px;
    font-size: 13px;
  }

  .footer-links>span {
    width: 100%;
    margin: 0;
  }

  .mobile-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--page-gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-line);
    background-color: var(--color-white);
    box-shadow: 0 -5px 20px rgb(19 43 63 / 8%);
  }

  .mobile-actions a:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    flex: 1;
    padding: 11px 18px;
    border-radius: var(--radius-small);
    background-color: var(--color-blue);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
  }

  .mobile-actions a:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 16px;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-small);
    background-color: var(--color-white);
    color: var(--color-green);
    font-size: 15px;
    font-weight: 600;
  }

  .mobile-actions.in-contact {
    display: none;
  }

  .whatsapp-float {
    right: 18px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 14px;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float.contact-visible {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  dialog {
    max-height: 90dvh;
  }

  .service-dialog-inner {
    padding: 30px 25px 34px;
  }

  .service-dialog h2 {
    font-size: 31px;
  }

  #photo img {
    height: 55dvh;
  }

  .lightbox-caption {
    padding: 22px;
  }

  .lightbox-caption h2 {
    font-size: 22px;
  }

  .photo-prev {
    left: 8px;
  }

  .photo-next {
    right: 8px;
  }

}

/* Petits téléphones : une photo et un champ par ligne. */
@media (max-width:560px) {
  :root {
    --page-gutter: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-photo {
    height: 340px;
  }

  .hero-actions .btn {
    justify-content: space-between;
    width: 100%;
  }

  .hero-actions .text-link {
    padding: 8px 0;
  }

  .need-links a {
    grid-template-columns: 1fr 16px;
    align-items: start;
    padding: 17px 15px;
    font-size: 14px;
  }

  .need-links a>svg {
    grid-column: 1/-1;
  }

  .need-links a>span:last-child {
    align-self: center;
  }

  .solution-media {
    height: 235px;
  }

  .solution-content {
    padding: 25px;
  }

  .solution-bottom {
    align-items: start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .solution-bottom>span {
    flex: 1;
    min-width: 140px;
  }

  .finance-preview {
    padding: 23px;
  }

  .finance-preview>span:nth-child(2) {
    flex-basis: 150px;
  }

  .ev h2,.financing h2 {
    font-size: 35px;
  }

  .ev-visual img {
    height: 290px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .project-info h3 {
    font-size: 19px;
  }

  .gallery-status {
    font-size: 14px;
  }

  .contact form {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .contact form>label {
    grid-column: 1/-1;
  }

  .request-result {
    padding: 20px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-delivery-actions {
    grid-template-columns: 1fr;
  }

  .result-actions .btn {
    justify-content: center;
  }

  .contact-channel {
    padding: 17px 15px;
    gap: 12px;
  }

  .contact-channel strong {
    font-size: 14px;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-row>div:first-child {
    grid-column: auto;
  }

  .footer-nav {
    font-size: 15px;
  }

}

@media (max-width:350px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-foot {
    font-size: 12px;
    gap: 8px 14px;
  }

  .photo-label {
    padding: 16px;
  }

  .need-links {
    grid-template-columns: 1fr;
  }

  .need-links a {
    grid-template-columns: 52px 1fr 16px;
    align-items: center;
    min-height: 72px;
  }

  .need-links a>svg {
    grid-column: auto;
  }

  .mobile-actions {
    gap: 8px;
  }

  .mobile-actions a:first-child {
    padding: 11px 13px;
    font-size: 14px;
  }

  .mobile-actions a:last-child {
    padding: 11px 13px;
    font-size: 14px;
  }

}
